version 1.2.4.4, 2012/02/10 01:54:03
|
version 1.3, 2012/10/12 08:22:43
|
Line 34 NEWKERN="${REL}/kernel"
|
Line 34 NEWKERN="${REL}/kernel"
|
|
|
clean_elwix() |
clean_elwix() |
{ |
{ |
echo "+++ Clean csh from ELWIX World ..." | echo "+++ Clean elwix binary from ELWIX World ..." |
rm -rf ${BSDOBJ}/usr/src/bin/csh/* | rm -rf $BSDOBJ/elwix |
|
|
echo "+++ Clean ELWIX RootFS firmware ..." |
echo "+++ Clean ELWIX RootFS firmware ..." |
rm -rf $MKDIR |
rm -rf $MKDIR |
mkdir $MKDIR |
mkdir $MKDIR |
|
|
echo "+++ Clean RootFS directory ..." |
echo "+++ Clean RootFS directory ..." |
|
chflags -R noschg $ROOTFS |
rm -rf $ROOTFS |
rm -rf $ROOTFS |
mkdir $ROOTFS |
mkdir $ROOTFS |
|
|
Line 57 prepare_elwix()
|
Line 58 prepare_elwix()
|
# Auto-generated Makefile include for crungegen |
# Auto-generated Makefile include for crungegen |
# !!! Dont edit by hand !!! |
# !!! Dont edit by hand !!! |
# |
# |
#BUILDOPTS += TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ} | |
CRUNCH_SUPPRESS_LINK_-sh= 1 | |
CRUNCH_SUPPRESS_LINK_-csh= 1 | |
CRUNCH_SUPPRESS_LINK_-tcsh= 1 | |
LIBS += -L${WORLD}/lib -L${WORLD}/usr/lib |
LIBS += -L${WORLD}/lib -L${WORLD}/usr/lib |
_EOF |
_EOF |
cat >$ROOTFS_CONF <<_EOF |
cat >$ROOTFS_CONF <<_EOF |
|
srcdirs ${BSDSRC}/tools/tools ${BSDSRC}/tools/tools/ath |
|
srcdirs ${BSDSRC}/release/picobsd/tinyware |
srcdirs ${BSDSRC}/bin ${BSDSRC}/sbin ${BSDSRC}/libexec ${BSDSRC}/cddl/sbin ${BSDSRC}/sbin/ggate |
srcdirs ${BSDSRC}/bin ${BSDSRC}/sbin ${BSDSRC}/libexec ${BSDSRC}/cddl/sbin ${BSDSRC}/sbin/ggate |
srcdirs ${BSDSRC}/usr.bin ${BSDSRC}/usr.sbin ${BSDSRC}/usr.sbin/wpa |
srcdirs ${BSDSRC}/usr.bin ${BSDSRC}/usr.sbin ${BSDSRC}/usr.sbin/wpa |
|
srcdirs ${BSDSRC}/secure/usr.bin ${BSDSRC}/secure/usr.sbin ${BSDSRC}/secure/libexec |
|
|
#buildopts -DRESCUE CRUNCH_CFLAGS=-DRESCUE TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ} | buildopts -DNO_PAM -DNO_KERBEROS WITHOUT_PAM_SUPPORT=yes WITHOUT_KERBEROS_SUPPORT=yes WITHOUT_KERBEROS=yes |
buildopts TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ} | buildopts TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} MAKEOBJDIRPREFIX=${BSDOBJ}/elwix |
_EOF |
_EOF |
cat $CFGDIR/$ROOTFS_CONF >>$ROOTFS_CONF |
cat $CFGDIR/$ROOTFS_CONF >>$ROOTFS_CONF |
|
|
crunchgen -f -p $BSDOBJ -h $MKDIR/$MKH -m $MKF -c elwix.c -e elwix $ROOTFS_CONF | . ${CENV} |
| install -d ${BSDOBJ}/elwix |
| crunchgen -f -o -p ${BSDOBJ}/elwix -h $MKDIR/$MKH -m $MKF -c elwix.c -e elwix $ROOTFS_CONF |
cd - |
cd - |
} |
} |
|
|
Line 80 build_elwix()
|
Line 83 build_elwix()
|
{ |
{ |
echo "+++ Build ELWIX RootFS firmware ..." |
echo "+++ Build ELWIX RootFS firmware ..." |
cd $MKDIR |
cd $MKDIR |
|
. ${CENV} |
|
MAKEOBJDIRPREFIX=${BSDOBJ}/elwix |
make -f $MKF clean |
make -f $MKF clean |
make -f $MKF |
make -f $MKF |
|
if [ $? -ne 0 ]; then |
|
exit 1 |
|
fi |
cd - |
cd - |
} |
} |
|
|
Line 94 build_rootdir()
|
Line 102 build_rootdir()
|
install -d dev; |
install -d dev; |
install -d elwix; |
install -d elwix; |
install -d elwix/etc; |
install -d elwix/etc; |
|
install -d libexec; |
install -d mnt; |
install -d mnt; |
install -d -m 0555 proc; |
install -d -m 0555 proc; |
install -d sbin; |
install -d sbin; |
install -d system; |
|
install -d -m 1777 tmp; |
install -d -m 1777 tmp; |
install -d usr; |
install -d usr; |
|
install -d usr/bin; |
|
install -d usr/lib; |
|
install -d usr/libexec; |
|
install -d usr/sbin; |
install -d var; |
install -d var; |
|
install -d var/sys; |
|
|
ln -fs /usr/lib lib; |
ln -fs /usr/lib lib; |
ln -fs /usr/libexec libexec; |
|
|
|
ln -fs /elwix/etc etc; |
ln -fs /elwix/etc etc; |
ln -fs /elwix/exports exports; |
ln -fs /elwix/exports exports; |
Line 116 build_rootdir()
|
Line 128 build_rootdir()
|
|
|
install_rootfs() |
install_rootfs() |
{ |
{ |
PRG="/sbin/elwix" |
|
BIN="${ROOTFS}/bin" |
BIN="${ROOTFS}/bin" |
SBIN="${ROOTFS}/sbin" |
SBIN="${ROOTFS}/sbin" |
LIBEXEC="${ROOTFS}/libexec" | UBIN="${ROOTFS}/usr/bin" |
| LIBEXEC="${ROOTFS}/usr/libexec" |
ETC="${ROOTFS}/elwix/etc" |
ETC="${ROOTFS}/elwix/etc" |
|
|
|
PRG="/sbin/elwix" |
|
LNPRG="${SBIN}/elwix" |
|
|
echo "+++ Install ELWIX into RootFS directory ..." |
echo "+++ Install ELWIX into RootFS directory ..." |
install $MKDIR/elwix $SBIN |
install $MKDIR/elwix $SBIN |
|
|
Line 138 install_rootfs()
|
Line 153 install_rootfs()
|
ln -s $PRG $BIN/chio |
ln -s $PRG $BIN/chio |
ln -s $PRG $BIN/chmod |
ln -s $PRG $BIN/chmod |
ln -s $PRG $BIN/cp |
ln -s $PRG $BIN/cp |
# ln -s $PRG $BIN/csh |
|
# ln -s $PRG $BIN/tcsh |
|
ln -s /bin/tcsh $BIN/-tcsh |
|
ln -s /bin/csh $BIN/-csh |
|
ln -s $PRG $BIN/date |
ln -s $PRG $BIN/date |
ln -s $PRG $BIN/dd |
ln -s $PRG $BIN/dd |
ln -s $PRG $BIN/df |
ln -s $PRG $BIN/df |
ln -s $PRG $BIN/domainname |
ln -s $PRG $BIN/domainname |
ln -s $PRG $BIN/echo |
ln -s $PRG $BIN/echo |
ln -s $PRG $BIN/expr |
ln -s $PRG $BIN/expr |
ln -s $PRG $BIN/getfacl |
|
ln -s $PRG $BIN/hostname |
ln -s $PRG $BIN/hostname |
ln -s $PRG $BIN/kenv |
ln -s $PRG $BIN/kenv |
ln -s $PRG $BIN/kill |
ln -s $PRG $BIN/kill |
Line 169 install_rootfs()
|
Line 179 install_rootfs()
|
ln -s $PRG $BIN/rm |
ln -s $PRG $BIN/rm |
ln -s $PRG $BIN/unlink |
ln -s $PRG $BIN/unlink |
ln -s $PRG $BIN/rmdir |
ln -s $PRG $BIN/rmdir |
ln -s $PRG $BIN/setfacl |
|
ln -s $PRG $BIN/sleep |
ln -s $PRG $BIN/sleep |
ln -s $PRG $BIN/stty |
ln -s $PRG $BIN/stty |
ln -s $PRG $BIN/sync |
ln -s $PRG $BIN/sync |
Line 214 install_rootfs()
|
Line 223 install_rootfs()
|
ln -s $PRG $BIN/cpio |
ln -s $PRG $BIN/cpio |
ln -s $PRG $BIN/nawk |
ln -s $PRG $BIN/nawk |
ln -s $PRG $BIN/gunzip |
ln -s $PRG $BIN/gunzip |
|
ln -s $PRG $BIN/gzcat |
|
ln -s $PRG $BIN/zcat |
ln -s $PRG $BIN/more |
ln -s $PRG $BIN/more |
ln -s $PRG $BIN/reset |
ln -s $PRG $BIN/reset |
ln -s $PRG $BIN/readlink |
ln -s $PRG $BIN/readlink |
ln -s $PRG $BIN/uptime |
ln -s $PRG $BIN/uptime |
|
ln -s $PRG $BIN/bzip2 |
|
ln -s $PRG $BIN/bunzip2 |
|
ln -s $PRG $BIN/bzcat |
|
|
ln -s $PRG $SBIN/adjkerntz |
|
ln -s $PRG $SBIN/atacontrol |
|
ln -s $PRG $SBIN/badsect |
|
ln -s $PRG $SBIN/bsdlabel |
ln -s $PRG $SBIN/bsdlabel |
ln -s $PRG $SBIN/disklabel |
ln -s $PRG $SBIN/disklabel |
ln -s $PRG $SBIN/camcontrol |
ln -s $PRG $SBIN/camcontrol |
ln -s $PRG $SBIN/ccdconfig |
|
ln -s $PRG $SBIN/comcontrol |
ln -s $PRG $SBIN/comcontrol |
ln -s $PRG $SBIN/conscontrol |
ln -s $PRG $SBIN/conscontrol |
ln -s $PRG $SBIN/devfs |
ln -s $PRG $SBIN/devfs |
Line 233 install_rootfs()
|
Line 243 install_rootfs()
|
ln -s $PRG $SBIN/dmesg |
ln -s $PRG $SBIN/dmesg |
ln -s $PRG $SBIN/dump |
ln -s $PRG $SBIN/dump |
ln -s $PRG $SBIN/rdump |
ln -s $PRG $SBIN/rdump |
ln -s $PRG $SBIN/dumpfs |
|
ln -s $PRG $SBIN/dumpon |
ln -s $PRG $SBIN/dumpon |
ln -s $PRG $SBIN/fdisk |
ln -s $PRG $SBIN/fdisk |
ln -s $PRG $SBIN/ffsinfo |
|
ln -s $PRG $SBIN/fsck |
ln -s $PRG $SBIN/fsck |
ln -s $PRG $SBIN/fsck_ffs |
ln -s $PRG $SBIN/fsck_ffs |
ln -s $PRG $SBIN/fsck_ufs |
ln -s $PRG $SBIN/fsck_ufs |
ln -s $PRG $SBIN/fsck_4.2bsd |
ln -s $PRG $SBIN/fsck_4.2bsd |
ln -s $PRG $SBIN/fsck_msdosfs |
ln -s $PRG $SBIN/fsck_msdosfs |
ln -s $PRG $SBIN/gbde | ln -s $PRG $SBIN/etherswitchcfg |
ln -s $PRG $SBIN/ggatec | |
ln -s $PRG $SBIN/ggated | |
ln -s $PRG $SBIN/ggatel | |
ln -s $PRG $SBIN/-geom |
ln -s $PRG $SBIN/-geom |
ln -s $PRG $SBIN/glabel |
ln -s $PRG $SBIN/glabel |
ln -s $PRG $SBIN/gpart |
ln -s $PRG $SBIN/gpart |
|
ln -s $PRG $SBIN/graid |
ln -s $PRG $SBIN/growfs |
ln -s $PRG $SBIN/growfs |
ln -s $PRG $SBIN/hastctl |
ln -s $PRG $SBIN/hastctl |
ln -s $PRG $SBIN/hastd |
ln -s $PRG $SBIN/hastd |
Line 278 install_rootfs()
|
Line 284 install_rootfs()
|
ln -s $PRG $SBIN/mount_nullfs |
ln -s $PRG $SBIN/mount_nullfs |
ln -s $PRG $SBIN/mount_udf |
ln -s $PRG $SBIN/mount_udf |
ln -s $PRG $SBIN/mount_unionfs |
ln -s $PRG $SBIN/mount_unionfs |
ln -s $PRG $SBIN/natd |
|
ln -s $PRG $SBIN/newfs |
ln -s $PRG $SBIN/newfs |
ln -s $PRG $SBIN/newfs_msdos |
ln -s $PRG $SBIN/newfs_msdos |
ln -s $PRG $SBIN/nfsiod |
ln -s $PRG $SBIN/nfsiod |
ln -s $PRG $SBIN/nos-tun |
ln -s $PRG $SBIN/nos-tun |
|
ln -s $PRG $SBIN/nvmecontrol |
ln -s $PRG $SBIN/pfctl |
ln -s $PRG $SBIN/pfctl |
ln -s $PRG $SBIN/ping |
|
ln -s $PRG $SBIN/ping6 |
|
ln -s $PRG $SBIN/pflogd |
ln -s $PRG $SBIN/pflogd |
ln -s $PRG $SBIN/quotacheck |
ln -s $PRG $SBIN/quotacheck |
ln -s $PRG $SBIN/reboot |
ln -s $PRG $SBIN/reboot |
Line 299 install_rootfs()
|
Line 303 install_rootfs()
|
ln -s $PRG $SBIN/rtsol |
ln -s $PRG $SBIN/rtsol |
ln -s $PRG $SBIN/shutdown |
ln -s $PRG $SBIN/shutdown |
ln -s $PRG $SBIN/savecore |
ln -s $PRG $SBIN/savecore |
ln -s $PRG $SBIN/setkey |
|
ln -s $PRG $SBIN/spppcontrol |
|
ln -s $PRG $SBIN/swapon |
ln -s $PRG $SBIN/swapon |
ln -s $PRG $SBIN/swapoff |
ln -s $PRG $SBIN/swapoff |
ln -s $PRG $SBIN/swapctl |
ln -s $PRG $SBIN/swapctl |
Line 310 install_rootfs()
|
Line 312 install_rootfs()
|
ln -s $PRG $SBIN/zfs |
ln -s $PRG $SBIN/zfs |
ln -s $PRG $SBIN/zpool |
ln -s $PRG $SBIN/zpool |
|
|
|
ln -s $PRG $SBIN/ping |
|
ln -s $PRG $SBIN/ping6 |
ln -s $PRG $SBIN/traceroute |
ln -s $PRG $SBIN/traceroute |
ln -s $PRG $SBIN/traceroute6 |
ln -s $PRG $SBIN/traceroute6 |
|
|
ln -s $PRG $SBIN/chown |
ln -s $PRG $SBIN/chown |
ln -s $PRG $SBIN/pwd_mkdb |
ln -s $PRG $SBIN/pwd_mkdb |
ln -s $PRG $SBIN/arp |
ln -s $PRG $SBIN/arp |
Line 344 install_rootfs()
|
Line 349 install_rootfs()
|
ln -s $PRG $SBIN/swapinfo |
ln -s $PRG $SBIN/swapinfo |
ln -s $PRG $SBIN/chgrp |
ln -s $PRG $SBIN/chgrp |
|
|
ln -s $PRG $SBIN/getty | ln -s $PRG $UBIN/login |
ln -s $PRG $SBIN/tftpd | ln -s $PRG $UBIN/passwd |
|
|
|
ln -s $PRG $LIBEXEC/getty |
|
ln -s $PRG $LIBEXEC/tftpd |
|
|
|
strip -s $LNPRG |
|
|
chown -hR root:wheel $ROOTFS |
chown -hR root:wheel $ROOTFS |
|
|
echo "+++ ELWIX clean CVS tags ..." |
echo "+++ ELWIX clean CVS tags ..." |
Line 385 if SnitVer ${WORLD}/elwix.ver; then
|
Line 395 if SnitVer ${WORLD}/elwix.ver; then
|
build_rootdir |
build_rootdir |
install_rootfs |
install_rootfs |
|
|
build_image && install_image | build_image |
| install_image |
else |
else |
echo "Skipped ELWIX RootFS build ..." |
echo "Skipped ELWIX RootFS build ..." |
fi |
fi |