Bring back the lan951x-led-ctl package lost after merge

This commit is contained in:
Calin Crisan 2018-12-09 12:17:11 +02:00
parent b68e39986b
commit 147cfe379d
4 changed files with 40 additions and 0 deletions

View File

@ -452,6 +452,7 @@ endmenu
source "package/irda-utils/Config.in"
source "package/iucode-tool/Config.in"
source "package/kbd/Config.in"
source "package/lan951x-led-ctl/Config.in"
source "package/lcdproc/Config.in"
source "package/libuio/Config.in"
source "package/libump/Config.in"

View File

@ -0,0 +1,23 @@
diff -uNr lan951x-led-ctl-master/Makefile lan951x-led-ctl-fix/Makefile
--- lan951x-led-ctl-master/Makefile 2017-02-11 22:50:52.000000000 +0200
+++ lan951x-led-ctl-fix/Makefile 2018-06-24 23:45:57.925879678 +0300
@@ -1,12 +1,12 @@
-ECHO = /bin/echo -e
-SHELL = /bin/sh
-RM = /bin/rm -f
-CC = gcc
-STRIP = strip
+ECHO ?= /bin/echo -e
+SHELL ?= /bin/sh
+RM ?= /bin/rm -f
+CC ?= gcc
+STRIP ?= strip
-CFLAGS = -g -Os -std=c11 -I./include -Wall -Wstrict-prototypes -Wconversion
+CFLAGS ?= -g -Os -std=c11 -I./include -Wall -Wstrict-prototypes -Wconversion
CFLAGS += -Wmissing-prototypes -Wshadow -Wextra -Wunused
-LDFLAGS = -lusb-1.0
+LDFLAGS += -lusb-1.0
PROGS = lan951x-led-ctl

View File

@ -0,0 +1,3 @@
config BR2_PACKAGE_LAN951X_LED_CTL
bool "lan951x-led-ctl"

View File

@ -0,0 +1,13 @@
LAN951X_LED_CTL_VERSION = 0291b91702f5742fa56aa5e0942c28261777de7c
LAN951X_LED_CTL_SITE = $(call github,dumpsite,lan951x-led-ctl,$(LAN951X_LED_CTL_VERSION))
LAN951X_LED_CTL_DEPENDENCIES = libusb
define LAN951X_LED_CTL_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) CFLAGS="$(TARGET_CLFAGS) -Iinclude -std=c99"
endef
define LAN951X_LED_CTL_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/lan951x-led-ctl $(TARGET_DIR)/usr/bin/lan951x-led-ctl
endef
$(eval $(generic-package))