--- elwix/Attic/build_cross.sh 2011/10/31 13:42:03 1.2.2.3 +++ elwix/Attic/build_cross.sh 2011/11/02 01:04:56 1.2.2.5 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_cross.sh,v 1.2.2.3 2011/10/31 13:42:03 misho Exp $ +# $Id: build_cross.sh,v 1.2.2.5 2011/11/02 01:04:56 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -57,19 +57,23 @@ build_cross() # _EOF env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ - buildenvvars >> ${DEST}/cross_build.sh + buildenvvars >> ${CBUILD} + cat >>${CBUILD} <<_EOF +PATH=$PKG/bin:$PKG/sbin:\$PATH:$PATH +_EOF cd - cp ${CBUILD} ${CGBUILD} cp ${CBUILD} ${CENV} cat >>${CBUILD} <<_EOF -PATH=$PATH:/usr/local/bin:/usr/local/sbin make \$* _EOF cat >>${CGBUILD} <<_EOF -PATH=$PATH:/usr/local/bin:/usr/local/sbin /usr/local/bin/gmake \$* _EOF - chmod +x ${CBUILD} ${CGBUILD} + cat >>${CENV} <<_EOF +exec \$* +_EOF + chmod +x ${CBUILD} ${CGBUILD} ${CENV} echo "Done." } @@ -247,8 +251,6 @@ compile_3th() [ $? -ne 0 ] && exit 1 ./build.sh libevent ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 - ./build.sh lzo ${CBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 ./build.sh libiconv ${CGBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh pcre ${CBUILD} ${PKG} ${TARGET_BUILD} @@ -273,28 +275,16 @@ compile_3th() [ $? -ne 0 ] && exit 1 ./build.sh sudo ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 - ./build.sh pwgen ${CGBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 ./build.sh bmon ${CGBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh mtr ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh ipguard ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 - ./build.sh miniupnpd ${CBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 - ./build.sh miniupnpc ${CGBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 ./build.sh iperf ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 - ./build.sh strobe ${CBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 ./build.sh smartmontools ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 - ./build.sh conserver ${CBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 - ./build.sh openvpn ${CBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 ./build.sh sqlite3 ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh quagga ${CBUILD} ${PKG} ${TARGET_BUILD} @@ -314,8 +304,6 @@ compile_3th() ./build.sh ipsec-tools ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh dhcp ${CBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 - ./build.sh dhcping ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh dhcdrop ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1