version 1.1.2.3, 2014/01/21 09:21:55
|
version 1.1.2.20, 2014/02/25 22:45:14
|
Line 75 build_ubfs()
|
Line 75 build_ubfs()
|
ln -fs /usr/lib lib; |
ln -fs /usr/lib lib; |
install -d usr/lib/engines; |
install -d usr/lib/engines; |
install -d usr/lib/geom; |
install -d usr/lib/geom; |
|
install -d usr/libdata; |
install -d usr/libexec; |
install -d usr/libexec; |
|
install -d usr/libexec/casper; |
ln -fs /usr/libexec libexec; |
ln -fs /usr/libexec libexec; |
install -d usr/local; |
install -d usr/local; |
install -d usr/local/bin; |
install -d usr/local/bin; |
Line 124 install_ubfs()
|
Line 126 install_ubfs()
|
|
|
find ${WORLD}/libexec -type f -name ld-elf.so\* -exec install {} $LIBEXEC \; |
find ${WORLD}/libexec -type f -name ld-elf.so\* -exec install {} $LIBEXEC \; |
|
|
# find ${WORLD}/lib -type f -name \*.so.\* -exec install {} $LIBS \; |
|
# find ${WORLD}/lib -type f -name libalias_\*.so -exec install {} $LIBS \; |
|
# find ${WORLD}/lib/geom -type f -name \*.so -exec install {} $LIBS/geom \; |
|
# find ${WORLD}/usr/lib -type f -name \*.so.\* -exec install {} $LIBS \; |
|
# find ${WORLD}/usr/lib/engines -type f -name \*.so -exec install {} $LIBS/engines \; |
|
|
|
InstallList ${ELWIX_UBFS} ${WORLD} ${UBFS} |
InstallList ${ELWIX_UBFS} ${WORLD} ${UBFS} |
|
InstallLibs ${WORLD} ${UBFS} |
|
InstallDir ${WORLD}/libexec/casper $LIBEXEC/casper |
|
|
InstallDir ${WORLD}/usr/local/bin $UBIN |
|
InstallDir ${WORLD}/usr/local/sbin $USBIN |
|
InstallFiles \*.so\* ${WORLD}/usr/local/lib $LIBS |
|
InstallDir ${WORLD}/usr/local/libdata $LIBDATA |
|
|
|
chown -R root:wheel $SBIN $BIN $USBIN $UBIN $LIBDATA $LIBEXEC $LIBS |
chown -R root:wheel $SBIN $BIN $USBIN $UBIN $LIBDATA $LIBEXEC $LIBS |
} |
} |
|
|
Line 157 create_etc_fstab()
|
Line 150 create_etc_fstab()
|
cat >$1/etc/fstab <<_EOF |
cat >$1/etc/fstab <<_EOF |
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# Automatic generated fstab for ELWIX $2 at ${BUILD_DATE} |
# |
# |
/dev/map/rootfs / ufs ro 0 0 | /dev/map/rootfs.uncompress / ufs ro 0 0 |
md0 /tmp mfs rw,-s8m,-oasync,-S 0 0 | md0 /tmp mfs rw,-s1m,-oasync,-S 0 0 |
md1 /var mfs rw,-s16m,-S 0 0 | md1 /var mfs rw,-s2m,-S 0 0 |
| /var/db /elwix/etc unionfs rw,noauto,-onoatime 0 0 |
_EOF |
_EOF |
} |
} |
|
|
install_fs() |
install_fs() |
{ |
{ |
echo "+++ Install ELWIX u-boot $1 in bundle OS install file ..." |
|
OSZ="" |
|
|
|
case "$2" in |
|
*) |
|
OSZ=${REL}/${UBOOT_OS} |
|
;; |
|
esac |
|
|
|
cd $1 |
cd $1 |
tar -czvf $OSZ . | echo "+++ Install ELWIX u-boot $1 in bundle OS install file ..." |
| tar -czvf ${REL}/${UBOOT_OS} . |
| cd - |
} |
} |
|
|
### main() |
### main() |
Line 190 MakeFS_home ${UBOOT_FS}/elwix
|
Line 177 MakeFS_home ${UBOOT_FS}/elwix
|
MakeFS_var ${UBOOT_FS}/elwix ${UBOOT_ETC} |
MakeFS_var ${UBOOT_FS}/elwix ${UBOOT_ETC} |
MakeFS_etc ${UBOOT_FS}/elwix ${UBOOT_ETC} uboot |
MakeFS_etc ${UBOOT_FS}/elwix ${UBOOT_ETC} uboot |
create_etc_fstab ${UBOOT_FS}/elwix uboot |
create_etc_fstab ${UBOOT_FS}/elwix uboot |
MakeFS_backup ${UBOOT_FS}/elwix | install_fs ${UBOOT_FS} |
#install_fs ${UBOOT_FS} | |
|
|
echo "+++ Complete build ELWIX u-boot" |
echo "+++ Complete build ELWIX u-boot" |