mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-07 01:41:25 +01:00
-------------------------------------------------------------------------------
* 4763b55 If state is the same as what has already been applied, don't do anything.
* 27b0656 sk9822: Add brightness capability
* 44a458c Add advanced LED indicators for button-press
-------------------------------------------------------------------------------
commit 4763b55173a50c572ef91ae4c9889d37200a3997
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-02-19 13:15:03 +0100
If state is the same as what has already been applied, don't do anything.
This is a workaround for a bug in the Broadcom CLED driver which causes
flickering of LED:s when brightness is repeatedly set.
Base directory -> /
src/gpio_led.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 27b06566339f22ec0fdc3c71bb9e45c7b22cad86
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-01-29 10:38:07 +0100
sk9822: Add brightness capability
When using the sk9822 interface we can set the brightness via an updated
kernel module.
This commit adds support for using the updated API.
Base directory -> /
src/gpio_led.c | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 44a458c77543da8f7b97cc5e7c11fa16b986831e
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-01-29 10:42:27 +0100
Add advanced LED indicators for button-press
On some products it's necessary to disable the button indicators for certain
buttons or only enable a short-press indicator when the long-press event
occurs.
This commit adds a third state to solve this as well as options to disable
the press indicators for a specific button.
Base directory -> /
src/button.c | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
71 lines
2 KiB
Makefile
71 lines
2 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.5
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_VERSION:=4763b55173a50c572ef91ae4c9889d37200a3997
|
|
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_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 @+PACKAGE_bcmkernel:bcmkernel PACKAGE_bcmkernel:bcmkernel
|
|
endef
|
|
|
|
define Package/peripheral_manager/description
|
|
Application handling peripheral
|
|
endef
|
|
|
|
TARGET_CFLAGS := \
|
|
-I$(STAGING_DIR)/usr/include/bcm963xx/shared/opensource/include/bcm963xx \
|
|
-I$(STAGING_DIR)/usr/include/bcm963xx/bcmdrivers/opensource/include/bcm963xx \
|
|
$(TARGET_CFLAGS)
|
|
|
|
PERIPHERAL_OPTONS:=-DSELECT_BRCM_BOARD=0
|
|
|
|
ifneq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),)
|
|
PERIPHERAL_OPTONS:= -DSELECT_BRCM_BOARD=1
|
|
endif
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DCMAKE_BUILD_TYPE:String="Release" \
|
|
$(PERIPHERAL_OPTONS) \
|
|
|
|
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))
|