PROGRAMS=ahci at_wini bios_wini cdprobe dev2name floppy loadramdisk mount \
newroot pci sh service sysenv mfs ext2
+
+# acpi is not compiled with ack
+.if ${COMPILER_TYPE} == "gnu"
+PROGRAMS += acpi
+.endif
+
EXTRA=system.conf passwd rs.single
CPPFLAGS+= -I${MINIXSRCDIR}/servers -I${MINIXSRCDIR}
bintoc: bintoc.c
$(CC) -o $@ bintoc.c
-image: proto.gen mtab rc $(PROGRAMS) $(EXTRA)
+image: proto.gen mtab rc $(EXTRA)
mkfs.mfs image proto.gen || { rm -f image; false; }
ahci: ../ahci/ahci
../floppy/floppy:
$(MAKE) -C ../floppy
+acpi: ../acpi/acpi
+ install -s ../$@/$@ $@
+
+../acpi/acpi:
+ $(MAKE) -C ../acpi
+
pci: ../pci/pci
install -s ../$@/$@ $@
rs.single: ../../etc/rs.single
install -s ../../etc/$@ $@
-proto.gen: $(MAKEDEV) proto.sh proto
+proto.gen: $(PROGRAMS) $(MAKEDEV) proto.sh proto
sh -e proto.sh >proto.gen
.include <bsd.prog.mk>
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
-sed -n '1,/@DEV/p' <proto | grep -v @DEV@
+sed -n '1,/@ACPI/p' <proto | grep -v @ACPI@
+if [ -e acpi ]
+then
+echo " acpi ---755 0 0 acpi"
+fi
+sed -n '/@ACPI/,/@DEV/p' <proto | grep -v -e @ACPI@ -e @DEV@
(
cd /dev
ls -aln | grep '^[bc]' | egrep -v ' (fd1|fd0p|tcp|eth|ip|udp|tty[pq]|pty)' | grep -v 13, | \
exec 2>/dev/log
exec </dev/null
+if [ -e /sbin/acpi ]
+then
+ /bin/service -c up /sbin/acpi
+fi
/bin/service -c up /sbin/pci
/bin/service -cn up /sbin/floppy -dev /dev/fd0
if [ X`/bin/sysenv bios_wini` = Xyes ]