version 1.6.6.7, 2014/01/21 16:33:40
|
version 1.7.2.3, 2016/09/29 14:38:29
|
Line 120 compile_fbsdtools()
|
Line 120 compile_fbsdtools()
|
{ |
{ |
echo "+++ Compile ELWIX FreeBSD tools ..." |
echo "+++ Compile ELWIX FreeBSD tools ..." |
|
|
|
if [ "$(uname -m)" != ${TARGET} ]; then |
|
BSDSTATDIR="${BSDOBJ}/${TARGET}.${TARGET_ARCH}${BSDSRC}/lib/libbsdstat" |
|
else |
|
BSDSTATDIR="${BSDOBJ}${BSDSRC}/lib/libbsdstat" |
|
fi |
|
|
cd $CROSS_FT_VIMAGE |
cd $CROSS_FT_VIMAGE |
${CBUILD} DESTDIR=${WORLD} clean | ${CBUILD} DESTDIR=${WORLD} clean || exit 1 |
${CBUILD} DESTDIR=${WORLD} | ${CBUILD} DESTDIR=${WORLD} || exit 1 |
${CBUILD} DESTDIR=${WORLD} install | ${CBUILD} DESTDIR=${WORLD} install || exit 1 |
cd - |
cd - |
|
|
cd $CROSS_FT_ATH |
cd $CROSS_FT_ATH |
${CBUILD} DESTDIR=${WORLD} clean | ${CBUILD} DESTDIR=${WORLD} clean || exit 1 |
${CBUILD} DESTDIR=${WORLD} | cp ${CROSSTOOLDIR}/usr/include/private/bsdstat/bsdstat.h ${BSDTOOLS}/ath/common || exit 1 |
${CBUILD} DESTDIR=${WORLD} install | ${CBUILD} DESTDIR=${WORLD} LIBBSDSTATDIR="${BSDSTATDIR}" || exit 1 |
| ${CBUILD} DESTDIR=${WORLD} install || exit 1 |
cd - |
cd - |
|
|
cd $CROSS_FT_IPW | # cd $CROSS_FT_IPW |
${CBUILD} DESTDIR=${WORLD} clean | # ${CBUILD} DESTDIR=${WORLD} clean || exit 1 |
${CBUILD} DESTDIR=${WORLD} | # ${CBUILD} DESTDIR=${WORLD} || exit 1 |
${CBUILD} DESTDIR=${WORLD}/usr/local/bin install | # ${CBUILD} DESTDIR=${WORLD}/usr/local/bin install || exit 1 |
cd - | # cd - |
|
|
cd $CROSS_FT_IWI | # cd $CROSS_FT_IWI |
${CBUILD} DESTDIR=${WORLD} clean | # ${CBUILD} DESTDIR=${WORLD} clean || exit 1 |
${CBUILD} DESTDIR=${WORLD} | # ${CBUILD} DESTDIR=${WORLD} || exit 1 |
${CBUILD} DESTDIR=${WORLD}/usr/local/bin install | # ${CBUILD} DESTDIR=${WORLD}/usr/local/bin install || exit 1 |
cd - | # cd - |
|
|
cd $CROSS_FT_MWL | # cd $CROSS_FT_MWL |
${CBUILD} DESTDIR=${WORLD} clean | # ${CBUILD} DESTDIR=${WORLD} clean || exit 1 |
${CBUILD} DESTDIR=${WORLD} | # cp ${CROSSTOOLDIR}/usr/include/private/bsdstat/bsdstat.h ${BSDTOOLS}/mwl/mwlstats || exit 1 |
${CBUILD} DESTDIR=${WORLD} install | # ${CBUILD} DESTDIR=${WORLD} LIBBSDSTATDIR="${BSDSTATDIR}" || exit 1 |
cd - | # ${CBUILD} DESTDIR=${WORLD} install || exit 1 |
| # cd - |
} |
} |
|
|
compile_files() |
compile_files() |
{ |
{ |
cd files |
cd files |
${CBUILD} DESTDIR=${WORLD} clean | ${CBUILD} DESTDIR=${WORLD} clean || exit 1 |
${CBUILD} DESTDIR=${WORLD} obj | ${CBUILD} DESTDIR=${WORLD} obj || exit 1 |
${CBUILD} DESTDIR=${WORLD} depend | ${CBUILD} DESTDIR=${WORLD} depend || exit 1 |
${CBUILD} DESTDIR=${WORLD} | ${CBUILD} DESTDIR=${WORLD} || exit 1 |
${CBUILD} DESTDIR=${WORLD} install | ${CBUILD} DESTDIR=${WORLD} install || exit 1 |
cd - |
cd - |
} |
} |
|
|
Line 166 compile_tools()
|
Line 174 compile_tools()
|
{ |
{ |
echo "+++ Compile ELWIX Cross ..." |
echo "+++ Compile ELWIX Cross ..." |
|
|
# cd $CROSS_AXL |
|
# ${AXL_CFG} |
|
# ${CBUILD} clean |
|
# ${CBUILD} |
|
# ${CBUILD} install |
|
# cd - |
|
|
|
cd $CROSS_ELWIX |
cd $CROSS_ELWIX |
${ELWIX_CFG} |
${ELWIX_CFG} |
${CBUILD} clean |
${CBUILD} clean |
Line 270 compile_tools()
|
Line 271 compile_tools()
|
${CBUILD} |
${CBUILD} |
${CBUILD} install |
${CBUILD} install |
cd - |
cd - |
|
|
|
cd $CROSS_TFTPD |
|
${TFTPD_CFG} |
|
${CBUILD} clean |
|
${CBUILD} |
|
${CBUILD} install |
|
cd - |
} |
} |
|
|
install_tools() |
install_tools() |
Line 301 build_tools()
|
Line 309 build_tools()
|
echo "+++ Build ELWIX core firmware image ..." |
echo "+++ Build ELWIX core firmware image ..." |
|
|
cd ${WORLD}/usr/local |
cd ${WORLD}/usr/local |
|
find . -name ".debug" -exec rm -rf {} \; |
pax -w -z -v -f${REL}/${LOCALFS_IMG} . |
pax -w -z -v -f${REL}/${LOCALFS_IMG} . |
cd - |
cd - |
} |
} |
|
|
### main() |
### main() |
compile_deps || exit 1 | if [ "${COMPILE_DEPTOOLS}" = "YES" ]; then |
| compile_deps || exit 1 |
| fi |
|
|
#if ! SnitVer ${WORLD}/elwix/elwix.ver; then |
#if ! SnitVer ${WORLD}/elwix/elwix.ver; then |
# clean_bootstrap |
# clean_bootstrap |
Line 318 compile_deps || exit 1
|
Line 329 compile_deps || exit 1
|
#fi |
#fi |
|
|
if ! SnitVer ${WORLD}/usr/local/elwix.ver; then |
if ! SnitVer ${WORLD}/usr/local/elwix.ver; then |
clean_tools | clean_tools || exit 1 |
|
|
compile_fbsdtools | compile_fbsdtools || exit 1 |
compile_files | compile_files || exit 1 |
compile_tools | compile_tools || exit 1 |
|
|
build_tools | build_tools || exit 1 |
|
|
echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/usr/local/elwix.ver |
echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/usr/local/elwix.ver |
else |
else |