2005-06-23 06:48:02 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# acpid
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-01-13 19:44:32 +01:00
|
|
|
ACPID_VERSION:=1.0.8
|
2007-07-11 16:06:06 +02:00
|
|
|
ACPID_DIR=$(BUILD_DIR)/acpid-$(ACPID_VERSION)
|
2009-01-13 19:44:32 +01:00
|
|
|
ACPID_SOURCE=acpid_$(ACPID_VERSION).orig.tar.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
ACPID_SITE=$(BR2_DEBIAN_MIRROR)/debian/pool/main/a/acpid
|
2005-06-23 06:48:02 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(ACPID_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(ACPID_SITE),$(ACPID_SOURCE))
|
2005-06-23 06:48:02 +02:00
|
|
|
|
2006-11-29 09:42:37 +01:00
|
|
|
$(ACPID_DIR)/.unpacked: $(DL_DIR)/$(ACPID_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(ACPID_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2009-01-15 00:54:02 +01:00
|
|
|
toolchain/patch-kernel.sh $(ACPID_DIR) package/acpid/ acpid-$(ACPID_VERSION)\*.patch
|
2006-11-29 09:42:37 +01:00
|
|
|
touch $(ACPID_DIR)/.unpacked
|
2005-06-23 06:48:02 +02:00
|
|
|
|
2006-11-29 09:42:37 +01:00
|
|
|
$(ACPID_DIR)/acpid: $(ACPID_DIR)/.unpacked
|
2005-06-23 06:48:02 +02:00
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(ACPID_DIR)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(ACPID_DIR)/acpid
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(ACPID_DIR)/acpi_listen
|
2005-06-23 06:48:02 +02:00
|
|
|
touch -c $(ACPID_DIR)/acpid $(ACPID_DIR)/acpi_listen
|
|
|
|
|
|
|
|
$(TARGET_DIR)/usr/sbin/acpid: $(ACPID_DIR)/acpid
|
|
|
|
cp -a $(ACPID_DIR)/acpid $(TARGET_DIR)/usr/sbin/acpid
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/acpi/events
|
2006-12-08 06:23:08 +01:00
|
|
|
/bin/echo -e "event=button[ /]power\naction=/sbin/poweroff" > $(TARGET_DIR)/etc/acpi/events/powerbtn
|
2005-06-23 06:48:02 +02:00
|
|
|
touch -c $(TARGET_DIR)/usr/sbin/acpid
|
|
|
|
|
|
|
|
acpid: $(TARGET_DIR)/usr/sbin/acpid
|
|
|
|
|
|
|
|
acpid-source: $(DL_DIR)/$(ACPID_SOURCE)
|
|
|
|
|
|
|
|
acpid-clean:
|
2008-10-19 09:44:30 +02:00
|
|
|
-$(MAKE) -C $(ACPID_DIR) clean
|
2005-06-23 06:48:02 +02:00
|
|
|
|
|
|
|
acpid-dirclean:
|
|
|
|
rm -rf $(ACPID_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ACPID),y)
|
2005-06-23 06:48:02 +02:00
|
|
|
TARGETS+=acpid
|
|
|
|
endif
|