From bdfa075902e0acf508712c09d236f88c98597bd3 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 30 Oct 2019 10:14:52 -0700 Subject: [PATCH] acpid: Update to 2.0.32 Switched compilation to standard PKG_INSTALL. Added extra binary. Added size optimizations. Miscellaneous cleanups. Signed-off-by: Rosen Penev --- utils/acpid/Makefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/utils/acpid/Makefile b/utils/acpid/Makefile index 7c9b32228f..97f9c51d83 100644 --- a/utils/acpid/Makefile +++ b/utils/acpid/Makefile @@ -8,17 +8,21 @@ include $(TOPDIR)/rules.mk PKG_NAME:=acpid -PKG_VERSION:=2.0.30 +PKG_VERSION:=2.0.32 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@SF/acpid2 -PKG_HASH:=28b77b62d3f64ebd1c2a3d16bccc6d4333b4e24a86aeacebec255fad223cf4cb +PKG_HASH:=f2d2d30b3edc3234bd82f6f7186699a6aa3c85c8d20bc4e30e9b3c68a1ed157e + PKG_MAINTAINER:=Thomas Heil -PKG_LICENSE:=GPL-2.0 +PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE_FILES:=COPYING PKG_CPE_ID:=cpe:/a:tedfelix:acpid +PKG_INSTALL:=1 +PKG_BUILD_PARALLEL:=1 + include $(INCLUDE_DIR)/package.mk define Package/acpid @@ -33,18 +37,15 @@ define Package/acpid/description The ACPI Daemon (acpid) With Netlink Support endef -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - CC="$(TARGET_CC)" \ - LD="$(TARGET_CC)" \ - LDFLAGS="$(TARGET_LDFLAGS)" \ - all -endef +TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto +TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed define Package/acpid/install $(INSTALL_DIR) $(1)/usr/sbin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/acpid $(1)/usr/sbin/ - $(INSTALL_BIN) $(PKG_BUILD_DIR)/acpi_listen $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/acpid $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/kacpimon $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/acpi_listen $(1)/usr/sbin/ $(INSTALL_DIR) $(1)/etc/acpi/events $(INSTALL_CONF) ./files/default $(1)/etc/acpi/events/default $(INSTALL_DIR) $(1)/etc/init.d -- 2.30.2