diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-03-29 19:53:11 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-03-29 19:53:11 +0000 |
commit | 9ccaa113ab7de9f76161cb9b36b068dd6c7e8d74 (patch) | |
tree | 38ec4745a82dc6a4a8715ef26a96802dfd3b7f23 /target/linux | |
parent | f3524e5d5c92d604f7a525870b2017a150d2160a (diff) | |
download | upstream-9ccaa113ab7de9f76161cb9b36b068dd6c7e8d74.tar.gz upstream-9ccaa113ab7de9f76161cb9b36b068dd6c7e8d74.tar.bz2 upstream-9ccaa113ab7de9f76161cb9b36b068dd6c7e8d74.zip |
brcm47xx: convert Netgear WNDR3700 V3 to the new image building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45144 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/brcm47xx/image/Makefile | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/target/linux/brcm47xx/image/Makefile b/target/linux/brcm47xx/image/Makefile index 386f42c333..5410ed3560 100644 --- a/target/linux/brcm47xx/image/Makefile +++ b/target/linux/brcm47xx/image/Makefile @@ -121,18 +121,28 @@ define Build/linksys-bin mv $@.new $@ endef +define Build/netgear-chk + $(STAGING_DIR_HOST)/bin/mkchkimg \ + -o $@.new \ + -k $@ \ + -b $(BOARD_ID) \ + -r $(REGION) + mv $@.new $@ +endef + ################################################# # Devices ################################################# DEVICE_VARS += DEVICE_ID VERSION +DEVICE_VARS += BOARD_ID REGION define Device/Default IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1).$$(2) KERNEL_IMAGE = vmlinux.lzma FILESYSTEMS := $(FS_64K) IMAGES := trx - IMAGE/bin := trx-with-loader + IMAGE/trx := trx-with-loader endef define Device/linksys @@ -140,6 +150,11 @@ define Device/linksys IMAGE/bin := trx-with-loader | linksys-bin endef +define Device/netgear + IMAGES := chk + IMAGE/chk := trx-with-loader | netgear-chk +endef + ################################################# # Subtarget generic ################################################# @@ -222,7 +237,6 @@ define Image/Build/mips74k/devices-with-64k-blocks $(call Image/Build/Chk,$(1),wndr3400_v1,U12H155T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Chk,$(1),wndr3400_v2,U12H187T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Chk,$(1),wndr3400_v3,U12H208T00_NETGEAR,1,$(patsubst jffs2-%,jffs2,$(1))) - $(call Image/Build/Chk,$(1),wndr3700_v3,U12H194T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Chk,$(1),wndr4000,U12H181T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Chk,$(1),wnr1000_v3,U12H139T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) $(call Image/Build/Chk,$(1),wnr2000v2,U12H114T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1))) @@ -267,8 +281,16 @@ define Device/linksys-e1200-v2 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 + TARGET_DEVICES += \ + linksys-e1200-v2 \ + netgear-wndr3700-v3 endif ################################################# |