forked from Openwrt/openwrt
e8725a932e
Different from OPKG, APK uses a deterministic version schema which chips the version into chunks and compares them individually. This enforces a certain schema which was previously entirely flexible. - Releases are added at the very and end prefixed with an `r` like `1.2.3-r3`. - Hashes are prefixed with a `~` like `1.2.3~abc123`. - Dates become semantic versions, like `2024.04.01` - Extra tags are possible like `_git`, `_alpha` and more. For full details see the APK test list: https://gitlab.alpinelinux.org/alpine/apk-tools/-/blob/master/test/version.data Signed-off-by: Paul Spooren <mail@aparcar.org>
74 lines
1.8 KiB
Makefile
74 lines
1.8 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=leds
|
|
PKG_VERSION:=$(LINUX_VERSION)
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/leds/default
|
|
SECTION:=devel
|
|
CATEGORY:=Development
|
|
URL:=http://www.kernel.org
|
|
endef
|
|
|
|
define Package/ledumon
|
|
$(Package/leds/default)
|
|
TITLE:=Monitoring userspace LEDs
|
|
DEPENDS:=+kmod-leds-uleds
|
|
endef
|
|
|
|
define Package/ledumon/description
|
|
This program creates a new userspace LED class device and monitors it.
|
|
A timestamp and brightness value is printed each time the brightness
|
|
changes.
|
|
endef
|
|
|
|
define Package/ledhwbmon
|
|
$(Package/leds/default)
|
|
TITLE:=Monitoring hardware controlled LED brightness
|
|
endef
|
|
|
|
define Package/ledhwbmon/description
|
|
This program monitors LED brightness level changes having its origin
|
|
in hardware/firmware, i.e. outside of kernel control. A timestamp and
|
|
brightness value is printed each time the brightness changes.
|
|
endef
|
|
|
|
MAKE_FLAGS = \
|
|
ARCH="$(LINUX_KARCH)" \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
CC="$(TARGET_CC)" \
|
|
LD="$(TARGET_CROSS)ld" \
|
|
EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS) -static" \
|
|
$(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='') \
|
|
prefix=/usr
|
|
|
|
define Build/Compile
|
|
-$(MAKE) clean \
|
|
-C $(LINUX_DIR)/tools/leds
|
|
+$(MAKE_FLAGS) $(MAKE) \
|
|
-C $(LINUX_DIR)/tools/leds
|
|
endef
|
|
|
|
define Package/ledumon/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(LINUX_DIR)/tools/leds/uledmon \
|
|
$(1)/usr/bin/ledumon
|
|
endef
|
|
|
|
define Package/ledhwbmon/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(LINUX_DIR)/tools/leds/led_hw_brightness_mon \
|
|
$(1)/usr/bin/ledhwbmon
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ledumon))
|
|
$(eval $(call BuildPackage,ledhwbmon))
|