summaryrefslogtreecommitdiff
path: root/src/arch/esp8266/Makefile.inc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-15 09:20:30 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-15 09:20:30 +0100
commitbfcfa4cf67bad25ccba5ff735967d4c6abff899c (patch)
treeef153eb55f025f31fdb8abddb57d33e3131624d4 /src/arch/esp8266/Makefile.inc
parent62bb7da1740d7d4aaef3cbcc1261fc5ab62960ae (diff)
Add support for ESP8266 secondary LED
Diffstat (limited to 'src/arch/esp8266/Makefile.inc')
-rw-r--r--src/arch/esp8266/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index 0484985..a4b9831 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -21,6 +21,10 @@ TARGETS += src/arch/esp8266/driver/stdout.cc src/arch/esp8266/driver/uptime.cc
OBJECTS = ${TARGETS:.cc=.o}
+ifeq (${esp8266_led2}, 1)
+ COMMON_FLAGS += -DLED_ON_GPIO16
+endif
+
.cc.o:
${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc}
${OBJCOPY} --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $@