summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorroot <root@europa5.lan>2009-08-23 13:57:14 +0200
committerroot <root@europa5.lan>2009-08-23 13:57:14 +0200
commitda2f0620a3b4ca216e9e4457a3153eec92954142 (patch)
treea927957537929f2891ce8232179162876215136b /Makefile
parent0b39b9c645046896610779dcef0fb6cc0ebe4022 (diff)
downloadminilinux-da2f0620a3b4ca216e9e4457a3153eec92954142.tar.gz
minilinux-da2f0620a3b4ca216e9e4457a3153eec92954142.tar.bz2
added acpid in user land with a simple script being able to to a ACPI powerbutton shutdown (needed for VirtualBox tests)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 24 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 166a268..b01a6b7 100644
--- a/Makefile
+++ b/Makefile
@@ -46,14 +46,19 @@ qemu: clean step1 step2 step3 step4 step5 umount-root
step1:
+# step2: initial setup, image, directory layout, device inodes
step2: disk-image mount-root directory-layout initial-devices
+# step3: boot loader
step3: grub grub-loader
-#step4: kernel uclibc busybox
-step4: kernel busybox gpm
+# step4: kernel, uclibc C-library, busybox, basic tools, ACPI daemon
+step4: kernel busybox acpid
-step5: perl
+# step5: additional user space tools:
+# - GPM for mouse copy-pate
+# - Miniperl
+step5: gpm perl
# disk image and directories
@@ -185,6 +190,21 @@ gpm:
gpm-clean:
-rm -rf gpm-$(GPM_VERSION)
+acpid:
+ -rm -rf acpid-$(ACPID_VERSION)
+ -rm -rf target/etc/acpi
+ tar zxf tarballs/acpid-$(ACPID_VERSION).tar.gz
+ cd acpid-$(ACPID_VERSION) && make
+ cd acpid-$(ACPID_VERSION) && cp acpid ../target/usr/sbin/acpid
+ mkdir target/etc/acpi
+ mkdir target/etc/acpi/events
+ cp acpid-anything target/etc/acpi/events
+ cp acpid-handler.sh target/etc/acpi/handler.sh
+ chmod 775 target/etc/acpi/handler.sh
+
+acpid-clean:
+ -rm -rf acpid-$(ACPID_VERSION)
+
perl:
-rm -rf perl-$(PERL_VERSION)
tar zxf tarballs/perl-$(PERL_VERSION).tar.gz
@@ -212,7 +232,7 @@ umount-root:
# global clean
-clean: grub-clean uclibc-clean kernel-clean busybox-clean gpm-clean perl-clean
+clean: grub-clean uclibc-clean kernel-clean busybox-clean acpid-clean gpm-clean perl-clean
-umount target
-/sbin/losetup -d /dev/loop0
-rm minilinux.img