--- elwix/build_tools.sh 2013/07/21 16:50:58 1.5.2.2 +++ elwix/build_tools.sh 2013/08/02 14:46:04 1.5.2.3 @@ -5,7 +5,7 @@ # (C) AITNET ltd - Sofia/Bulgaria # by Michael Pounov # -# $Id: build_tools.sh,v 1.5.2.2 2013/07/21 16:50:58 misho Exp $ +# $Id: build_tools.sh,v 1.5.2.3 2013/08/02 14:46:04 misho Exp $ # [ -r ./config/rc.elwix ] && . ./config/rc.elwix @@ -195,7 +195,7 @@ compile_files() TARGET_ARCH=${TARGET_ARCH} install DESTDIR=${WORLD} cd - -# strip -s ${WORLD}/usr/bin/csh + strip -s ${WORLD}/usr/bin/csh } compile_tools() @@ -308,6 +308,39 @@ compile_tools() cd - } +install_tools() +{ + LIBS="${ROMFS_USR2}/lib" + LIBEXEC="${ROMFS_USR2}/libexec" + BIN="${ROMFS_USR2}/bin" + SBIN="${ROMFS_USR2}/sbin" + ETC="${ROMFS_USR2}/etc" + + echo "+++ Install ELWIX RomFS secondary firmware ..." + + StripFiles \*.so\* ${PKG}/lib + InstallFiles \*.so\* ${PKG}/lib $LIBS + StripFiles \* ${PKG}/libexec + InstallFiles \* ${PKG}/libexec $LIBEXEC + StripFiles \* ${PKG}/bin + InstallFiles \* ${PKG}/bin $BIN + StripFiles \* ${PKG}/sbin + InstallFiles \* ${PKG}/sbin $SBIN + + InstallFiles \* ${PKG}/etc $ETC + + chown -R root:wheel $SBIN $BIN $LIBDATA $LIBEXEC $LIBS +} + +build_tools() +{ + echo "+++ Build ELWIX core firmware image ..." + + cd ${WORLD}/usr/local + pax -w -z -v -f${REL}/${LOCALFS_IMG} . + cd - +} + ### main() if ! SnitVer ${WORLD}/elwix/elwix.ver; then compile_deps || exit 1 @@ -324,6 +357,7 @@ if ! SnitVer ${WORLD}/usr/local/elwix.ver; then compile_fbsdtools compile_files compile_tools + build_tools echo "ELWIX Platform:${PLATFORM} Version:${VERSION} TargetArch:${TARGET_ARCH}" >${WORLD}/usr/local/elwix.ver else