9152e1c5a7
The tested targets are the followgin ones: * tools * distribution * sets * release The remaining NetBSD targets have not been disabled nor tested *at all*. Try them at your own risk, they may reboot the earth. For all compliant Makefiles, objects and generated files are put in MAKEOBJDIR, which means you can now keep objects between two branch switching. Same for DESTDIR, please refer to build.sh options. Regarding new or modifications of Makefiles a few things: * Read share/mk/bsd.README * If you add a subdirectory, add a Makefile in it, and have it called by the parent through the SUBDIR variable. * Do not add arbitrary inclusion which crosses to another branch of the hierarchy; If you can't do without it, put a comment on why. If possible, do not use inclusion at all. * Use as much as possible the infrastructure, it is here to make life easier, do not fight it. Sets and package are now used to track files. We have one set called "minix", composed of one package called "minix-sys"
65 lines
1.6 KiB
Bash
Executable file
65 lines
1.6 KiB
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
exec >/dev/log
|
|
exec 2>/dev/log
|
|
exec </dev/null
|
|
|
|
FSCK=/bin/fsck.mfs
|
|
ACPI=/usr/sbin/acpi
|
|
if [ -e $ACPI -a -n "`sysenv acpi`" ]
|
|
then
|
|
/bin/service -c up $ACPI
|
|
fi
|
|
/bin/service -c up /usr/sbin/pci
|
|
/bin/service -cn up /sbin/floppy -dev /dev/fd0
|
|
if [ X`/bin/sysenv ahci` = Xyes ]
|
|
then
|
|
# this is here temporarily, for testing purposes
|
|
/bin/service -c up /sbin/ahci -dev /dev/c0d0 -label ahci_0 -args instance=0
|
|
else
|
|
/bin/service -c up /sbin/at_wini -dev /dev/c0d0 -label at_wini_0
|
|
/bin/service -cr up /sbin/at_wini -dev /dev/c1d0 -label at_wini_1 -args instance=1
|
|
fi
|
|
/bin/service up /sbin/procfs || echo "WARNING: couldn't start procfs"
|
|
|
|
if /bin/sysenv rootdevname >/dev/null
|
|
then rootdevname=/dev/`/bin/sysenv rootdevname`
|
|
else echo "rootdevname not set"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "`sysenv bin_img`" = 1 ]
|
|
then
|
|
bin_img="-i "
|
|
fi
|
|
|
|
if sysenv cdproberoot >/dev/null
|
|
then
|
|
echo
|
|
echo 'Looking for boot CD. This may take a minute.'
|
|
echo 'Please ignore any error messages.'
|
|
echo
|
|
cddev=`cdprobe` || { echo 'No CD found'; exit 1; }
|
|
export cddev
|
|
echo "Loading ramdisk from ${cddev}p1"
|
|
loadramdisk "$cddev"p1
|
|
elif [ "$rootdevname" = "/dev/ram" ]
|
|
then
|
|
ramimagename=/dev/`/bin/sysenv ramimagename`
|
|
echo "Loading ramdisk from $ramimagename"
|
|
loadramdisk "$ramimagename" || echo "WARNING: loadramdisk failed"
|
|
fi
|
|
|
|
echo "Root device name is $rootdevname"
|
|
if [ -e $FSCK ]
|
|
then $FSCK -p $rootdevname
|
|
fi
|
|
|
|
# Change root from temporary boot ramdisk to the configure
|
|
# root device
|
|
/bin/mount -n $bin_img"$rootdevname" /
|
|
|
|
/bin/mount -e -n -t procfs none /proc || echo "WARNING: couldn't mount procfs"
|
|
|
|
exec /bin/sh /etc/rc "$@"
|