Skip to content

Commit

Permalink
Merge branch 'thingos' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrisan committed Dec 9, 2018
2 parents 223d2fd + 147cfe3 commit 270d2c9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,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"
Expand Down
23 changes: 23 additions & 0 deletions package/lan951x-led-ctl/0001-fix-cross-compile.patch
Original file line number Diff line number Diff line change
@@ -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

3 changes: 3 additions & 0 deletions package/lan951x-led-ctl/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config BR2_PACKAGE_LAN951X_LED_CTL
bool "lan951x-led-ctl"

13 changes: 13 additions & 0 deletions package/lan951x-led-ctl/lan951x-led-ctl.mk
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 270d2c9

Please sign in to comment.