summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/image/lzma-loader/src
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-02 09:54:33 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-02 09:54:33 +0000
commit70b3c1262bec05f587d0ea43cbcccd487d0dc46f (patch)
tree9de893250eaaa5a42fd9925ee2680d42ce0db71b /target/linux/ar71xx/image/lzma-loader/src
parent58aa6ee58f5b456acf9c5d72f567cd7fdffa1db8 (diff)
ar71xx: image: allow to use board specific code in the lzma-loader
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32945 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/image/lzma-loader/src')
-rw-r--r--target/linux/ar71xx/image/lzma-loader/src/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/target/linux/ar71xx/image/lzma-loader/src/Makefile b/target/linux/ar71xx/image/lzma-loader/src/Makefile
index c5965c9bde..3e6839c7c3 100644
--- a/target/linux/ar71xx/image/lzma-loader/src/Makefile
+++ b/target/linux/ar71xx/image/lzma-loader/src/Makefile
@@ -18,7 +18,7 @@
LOADADDR :=
LZMA_TEXT_START := 0x80a00000
LOADER_DATA :=
-CONFIG_BOARD :=
+BOARD :=
FLASH_OFFS :=
FLASH_MAX :=
@@ -63,6 +63,11 @@ ifneq ($(strip $(FLASH_MAX)),)
CFLAGS += -DCONFIG_FLASH_MAX=$(FLASH_MAX)
endif
+BOARD_DEF := $(shell echo $(strip $(BOARD)) | tr a-z A-Z | tr - _)
+ifneq ($(BOARD_DEF),)
+CFLAGS += -DCONFIG_BOARD_$(BOARD_DEF)
+endif
+
all: loader.bin
# Don't build dependencies, this may die if $(CC) isn't gcc