aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-03-31 11:26:45 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-03-31 11:26:45 +0000
commit7e7dbbab82e6a739c5654d2e5fbe2a6efe247b74 (patch)
tree4d7546a2d6e32831de6a69ab12c5ee4033012e28 /target
parentac90ac82d4f9ea7e18152d1928e46971bd8b0fba (diff)
downloadupstream-7e7dbbab82e6a739c5654d2e5fbe2a6efe247b74.tar.gz
upstream-7e7dbbab82e6a739c5654d2e5fbe2a6efe247b74.tar.bz2
upstream-7e7dbbab82e6a739c5654d2e5fbe2a6efe247b74.zip
brcm47xx: image: add helpers for defining devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45180 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm47xx/image/Makefile35
1 files changed, 20 insertions, 15 deletions
diff --git a/target/linux/brcm47xx/image/Makefile b/target/linux/brcm47xx/image/Makefile
index 89ea89393a..686b611dcb 100644
--- a/target/linux/brcm47xx/image/Makefile
+++ b/target/linux/brcm47xx/image/Makefile
@@ -151,11 +151,29 @@ define Device/linksys
IMAGE/bin := trx-with-loader | linksys-bin
endef
+define LinksysDevice
+ define Device/linksys-$(1)
+ $$(Device/linksys)
+ DEVICE_ID := $(2)
+ VERSION := $(3)
+ endef
+ TARGET_DEVICES += linksys-$(1)
+endef
+
define Device/netgear
IMAGES := chk
IMAGE/chk := trx-with-loader | netgear-chk
endef
+define NetgearDevice
+ define Device/netgear-$(1)
+ $$(Device/netgear)
+ BOARD_ID := $(2)
+ REGION := $(3)
+ endef
+ TARGET_DEVICES += netgear-$(1)
+endef
+
#################################################
# Subtarget generic
#################################################
@@ -279,22 +297,9 @@ define Image/Build/mips74k/squashfs
$(call Image/Build/mips74k/devices-with-128k-blocks,$(1))
endef
-define Device/linksys-e1200-v2
- $(Device/linksys)
- DEVICE_ID := E122
- VERSION := 1.0.4
-endef
-
-define Device/netgear-wndr3700-v3
- $(Device/netgear)
- BOARD_ID := U12H194T00_NETGEAR
- REGION := 2
-endef
-
ifeq ($(SUBTARGET),mips74k)
- TARGET_DEVICES += \
- linksys-e1200-v2 \
- netgear-wndr3700-v3
+ $(eval $(call LinksysDevice,e1200-v2-new,E122,1.0.4))
+ $(eval $(call NetgearDevice,wndr3700-v3,U12H194T00_NETGEAR,2))
endif
#################################################