From da2f0620a3b4ca216e9e4457a3153eec92954142 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 23 Aug 2009 13:57:14 +0200 Subject: added acpid in user land with a simple script being able to to a ACPI powerbutton shutdown (needed for VirtualBox tests) --- Makefile | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-54-g00ecf