mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-02-15 04:19:07 +01:00
-------------------------------------------------------------------------------
* 15ba90f Add support for external LED application.
* da6eb1d Add functionality to change default brightness for SK9822 LEDs.
-------------------------------------------------------------------------------
commit 15ba90f01914113e7c5e8f8a6df6279c882e8265
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:52:55 +0200
Add support for external LED application.
Add support for a callback script/application to control LEDs.
This commits adds the ability to control a LED via an external application.
The API is simple and is described in
'iopsys-brcm63xx-arm/tiger/base-files/sbin/external_led_ctrl.sh'.
To avoid unnecessary execution of the callback-script, logic has been added
to keep track on when to update the LEDs.
Base directory -> /
src/gpio_led.c | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 132 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit da6eb1d6c0fd03d45cbf5213acd5c2ff07b45bf5
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:40:00 +0200
Add functionality to change default brightness for SK9822 LEDs.
This commit adds the 'sk9822_brightness_file' option. The option can be used
to adjust the default maximum brightness for the SK9822 LED driver.
Base directory -> /
src/gpio_led.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2019 iopsys
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=peripheral_manager
|
|
PKG_VERSION:=1.0.6
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_VERSION:=15ba90f01914113e7c5e8f8a6df6279c882e8265
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/peripheral-manager
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MIRROR_HASH:=skip
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_LICENSE:=GPLv2
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
# support parallel build
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
# run install target when cross compiling. basically, make install DESTDIR=$(PKG_INSTALL_DIR)
|
|
# this way we don't need to pick out the resulting files from the build dir.
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/peripheral_manager
|
|
CATEGORY:=Utilities
|
|
TITLE:=Application deamon for handling of peripheral
|
|
URL:=
|
|
DEPENDS:=+libuci +libubus +libblobmsg-json
|
|
endef
|
|
|
|
define Package/peripheral_manager/description
|
|
Application handling peripheral
|
|
endef
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DCMAKE_BUILD_TYPE:String="Release" \
|
|
|
|
define Package/peripheral_manager/install
|
|
$(CP) ./files/* $(1)/
|
|
$(INSTALL_DIR) $(1)/etc/
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/peripheral_manager $(1)/sbin/
|
|
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gpio_test $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,peripheral_manager))
|