version 1.3, 2012/10/12 08:22:43
|
version 1.7, 2013/08/05 13:10:16
|
Line 131 build_image()
|
Line 131 build_image()
|
# mv ${REL}/${ROMFS_IMG}.uzip ${REL}/${ROMFS_IMG} |
# mv ${REL}/${ROMFS_IMG}.uzip ${REL}/${ROMFS_IMG} |
} |
} |
|
|
build_image2() |
|
{ |
|
echo "+++ Build ELWIX Firmware secondary image ..." |
|
|
|
cd ${ROMFS_USR2} |
|
pax -w -z -v -f${REL}/${ROMFS_IMG2} . |
|
cd - |
|
|
|
# Stop using uzip fs |
|
# makefs -ominfree=0,bsize=8192,fsize=1024,optimization=space -s${ROMFS_SIZE2} \ |
|
# ${REL}/${ROMFS_IMG2} ${ROMFS_USR2} |
|
|
|
# MDDEV=$(mdconfig -a -t vnode -f ${REL}/${ROMFS_IMG2}); |
|
# tunefs -L elwixFirmware2 /dev/$MDDEV; |
|
# mdconfig -d -u $MDDEV; |
|
|
|
# mkuzip -s 8192 -o ${REL}/${ROMFS_IMG2}.uzip ${REL}/${ROMFS_IMG2}; |
|
# mv ${REL}/${ROMFS_IMG2}.uzip ${REL}/${ROMFS_IMG2} |
|
} |
|
|
|
install_romfs2() |
|
{ |
|
LIBS="${ROMFS_USR2}/lib" |
|
LIBEXEC="${ROMFS_USR2}/libexec" |
|
LIBDATA="${ROMFS_USR2}/libdata" |
|
BIN="${ROMFS_USR2}/bin" |
|
SBIN="${ROMFS_USR2}/sbin" |
|
|
|
echo "+++ Install ELWIX RomFS secondary software ..." |
|
|
|
install -d ${PKGDIR}/bin |
|
# InstallDir ${PKGDIR}/bin $BIN |
|
install -d ${PKGDIR}/sbin |
|
InstallDir ${PKGDIR}/sbin $SBIN |
|
|
|
InstallFiles \*.so\* ${PKG}/lib $LIBS |
|
InstallFiles \* ${PKG}/libexec $LIBEXEC |
|
InstallFiles \* ${PKG}/libdata $LIBDATA |
|
InstallFiles \* ${PKG}/bin $BIN |
|
InstallFiles \* ${PKG}/sbin $SBIN |
|
|
|
chown -R root:wheel $SBIN $BIN $LIBDATA $LIBEXEC $LIBS |
|
} |
|
|
|
### main() |
### main() |
clean_romfs |
clean_romfs |
build_romfs |
build_romfs |
|
|
install_romfs |
install_romfs |
build_image |
build_image |
|
|
install_romfs2 |
|
build_image2 |
|
|
|
echo "+++ Complete build ELWIX RomFS" |
echo "+++ Complete build ELWIX RomFS" |