Browse Source

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 <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
bdfa075902
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
1 changed files with 13 additions and 12 deletions
  1. +13
    -12
      utils/acpid/Makefile

+ 13
- 12
utils/acpid/Makefile View File

@ -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 <heil@terminal-consulting.de>
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


Loading…
Cancel
Save