-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
config BR2_PACKAGE_LAN951X_LED_CTL | ||
bool "lan951x-led-ctl" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |