version 1.1.1.1.2.5, 2011/07/20 08:25:52
|
version 1.1.1.1.2.7, 2011/07/20 16:29:01
|
Line 73 _EOF
|
Line 73 _EOF
|
echo "Done." |
echo "Done." |
} |
} |
|
|
|
compile_fbsdtools() |
|
{ |
|
echo "+++ Compile ELWIX Cross FreeBSD tools ..." |
|
|
|
rm -rf ${WORLD}/usr/local |
|
install -d ${WORLD}/usr/local |
|
install -d ${WORLD}/usr/local/bin |
|
install -d ${WORLD}/usr/local/sbin |
|
install -d ${WORLD}/usr/local/lib |
|
install -d ${WORLD}/usr/local/libdata |
|
|
|
cd $CROSS_FT_ATH |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
clean DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
install DESTDIR=${WORLD} |
|
cd - |
|
|
|
cd $CROSS_FT_IPW |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
clean DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
install DESTDIR=${WORLD}/usr/local/bin |
|
cd - |
|
|
|
cd $CROSS_FT_IWI |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
clean DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
install DESTDIR=${WORLD}/usr/local/bin |
|
cd - |
|
|
|
cd $CROSS_FT_MWL |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
clean DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
install DESTDIR=${WORLD} |
|
cd - |
|
|
|
cd $CROSS_FT_NET80211 |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
clean DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
install DESTDIR=${WORLD} |
|
cd - |
|
|
|
cd $CROSS_FT_VIMAGE |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
clean DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
DESTDIR=${WORLD} |
|
env MAKEOBJDIRPREFIX=${BSDOBJ} make TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ |
|
install DESTDIR=${WORLD} |
|
cd - |
|
|
|
echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${PKG}/elwix0.ver |
|
} |
|
|
compile_cross() |
compile_cross() |
{ |
{ |
echo "+++ Compile ELWIX Cross ..." |
echo "+++ Compile ELWIX Cross ..." |
Line 161 compile_3th()
|
Line 229 compile_3th()
|
echo "+++ Compile ELWIX 3th party ..." |
echo "+++ Compile ELWIX 3th party ..." |
|
|
cd $CROSS_3TH |
cd $CROSS_3TH |
# ./build.sh expat ${CBUILD} ${PKG} | ./build.sh expat ${CBUILD} ${PKG} |
# ./build.sh libevent ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
# ./build.sh mini_sendmail ${CBUILD} ${PKG} | ./build.sh libevent ${CBUILD} ${PKG} |
# ./build.sh choparp ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
# ./build.sh ttcp ${CBUILD} ${PKG} | ./build.sh lzo ${CBUILD} ${PKG} |
# ./build.sh ifstated ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
# ./build.sh mpd ${CBUILD} ${PKG} | ./build.sh libiconv ${CGBUILD} ${PKG} |
# ./build.sh mrouted ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
# ./build.sh igmpproxy ${CBUILD} ${PKG} | ./build.sh libgcrypt ${CGBUILD} ${PKG} |
# ./build.sh sudo ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
# ./build.sh bmon ${CGBUILD} ${PKG} | ./build.sh curl ${CBUILD} ${PKG} |
# ./build.sh ntpd ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
| ./build.sh pcre ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh mini_sendmail ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh choparp ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh scan_ffs ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh pciutils ${CGBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh rsync ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh ttcp ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh ifstated ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh mpd ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh mrouted ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh igmpproxy ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh sudo ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh pwgen ${CGBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh ladvd ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh bmon ${CGBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh mtr ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh ipguard ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh ishell ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh miniupnpd ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh miniupnpc ${CGBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh iperf ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh strobe ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh smartmontools ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh conserver ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh sqlite3 ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh openvpn ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh quagga ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh coova-chilli ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh ntpd ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
./build.sh iftop ${CBUILD} ${PKG} |
./build.sh iftop ${CBUILD} ${PKG} |
# ./build.sh trafshow ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
# ./build.sh ipsec-tools ${CBUILD} ${PKG} | ./build.sh arping ${CBUILD} ${PKG} |
# ./build.sh dhcp ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
# ./build.sh dhcping ${CBUILD} ${PKG} | ./build.sh hping2 ${CGBUILD} ${PKG} |
# ./build.sh dhcdrop ${CBUILD} ${PKG} | [ $? -ne 0 ] && exit 1 |
| ./build.sh trafshow ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh ipsec-tools ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh dhcp ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh dhcping ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh dhcdrop ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh pure-ftpd ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh spawn-fcgi ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh lighttpd ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
| ./build.sh php ${CBUILD} ${PKG} |
| [ $? -ne 0 ] && exit 1 |
cd - |
cd - |
|
|
# echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${PKG}/elwix1.ver | echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${PKG}/elwix1.ver |
} |
} |
|
|
### main() |
### main() |
|
if ! SnitVer ${PKG}/elwix0.ver; then |
|
compile_fbsdtools |
|
else |
|
echo "Skipped ELWIX Cross FreeBSD tools build ..." |
|
fi |
|
|
if ! SnitVer ${PKG}/elwix.ver; then |
if ! SnitVer ${PKG}/elwix.ver; then |
clean_cross |
clean_cross |
build_cross |
build_cross |
Line 195 fi
|
Line 345 fi
|
|
|
if ! SnitVer ${PKG}/elwix1.ver; then |
if ! SnitVer ${PKG}/elwix1.ver; then |
compile_3th |
compile_3th |
|
else |
|
echo "Skipped ELWIX Cross 3th party build ..." |
fi |
fi |
|
|
echo "+++ Complete build ELWIX Cross" |
echo "+++ Complete build ELWIX Cross" |