--- elwix/Attic/build_cross.sh 2011/11/01 19:37:03 1.2.2.4 +++ elwix/Attic/build_cross.sh 2012/02/15 13:46:10 1.3.2.3 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_cross.sh,v 1.2.2.4 2011/11/01 19:37:03 misho Exp $ +# $Id: build_cross.sh,v 1.3.2.3 2012/02/15 13:46:10 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." } @@ -221,6 +225,13 @@ compile_cross() ${CBUILD} install cd - + cd $CROSS_AITMQTT + ${AITMQTT_CFG} + ${CBUILD} clean + ${CBUILD} + ${CBUILD} install + cd - + cd $CROSS_EMBEDTOOLS ${EMBEDTOOLS_CFG} ${CBUILD} clean @@ -259,6 +270,8 @@ compile_3th() [ $? -ne 0 ] && exit 1 ./build.sh pciutils ${CGBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 + ./build.sh istgt ${CBUILD} ${PKG} ${TARGET_BUILD} + [ $? -ne 0 ] && exit 1 ./build.sh rsync ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh ttcp ${CBUILD} ${PKG} ${TARGET_BUILD} @@ -286,8 +299,6 @@ compile_3th() ./build.sh quagga ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh coova-chilli ${CBUILD} ${PKG} ${TARGET_BUILD} - [ $? -ne 0 ] && exit 1 - ./build.sh ntpd ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1 ./build.sh iftop ${CBUILD} ${PKG} ${TARGET_BUILD} [ $? -ne 0 ] && exit 1