brcm47xx: image: add helpers for defining devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45180
This commit is contained in:
parent
a709beb4ae
commit
184c0af4e2
1 changed files with 20 additions and 15 deletions
|
@ -151,11 +151,29 @@ define Device/linksys
|
||||||
IMAGE/bin := trx-with-loader | linksys-bin
|
IMAGE/bin := trx-with-loader | linksys-bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define LinksysDevice
|
||||||
|
define Device/linksys-$(1)
|
||||||
|
$$(Device/linksys)
|
||||||
|
DEVICE_ID := $(2)
|
||||||
|
VERSION := $(3)
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += linksys-$(1)
|
||||||
|
endef
|
||||||
|
|
||||||
define Device/netgear
|
define Device/netgear
|
||||||
IMAGES := chk
|
IMAGES := chk
|
||||||
IMAGE/chk := trx-with-loader | netgear-chk
|
IMAGE/chk := trx-with-loader | netgear-chk
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define NetgearDevice
|
||||||
|
define Device/netgear-$(1)
|
||||||
|
$$(Device/netgear)
|
||||||
|
BOARD_ID := $(2)
|
||||||
|
REGION := $(3)
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += netgear-$(1)
|
||||||
|
endef
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
# Subtarget generic
|
# Subtarget generic
|
||||||
#################################################
|
#################################################
|
||||||
|
@ -279,22 +297,9 @@ define Image/Build/mips74k/squashfs
|
||||||
$(call Image/Build/mips74k/devices-with-128k-blocks,$(1))
|
$(call Image/Build/mips74k/devices-with-128k-blocks,$(1))
|
||||||
endef
|
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)
|
ifeq ($(SUBTARGET),mips74k)
|
||||||
TARGET_DEVICES += \
|
$(eval $(call LinksysDevice,e1200-v2-new,E122,1.0.4))
|
||||||
linksys-e1200-v2 \
|
$(eval $(call NetgearDevice,wndr3700-v3,U12H194T00_NETGEAR,2))
|
||||||
netgear-wndr3700-v3
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
Loading…
Reference in a new issue