bcm53xx: build images for Asus devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45790
This commit is contained in:
parent
69aefc771f
commit
9845d729a9
1 changed files with 25 additions and 2 deletions
|
@ -54,13 +54,19 @@ define Build/trx-nand
|
||||||
-A $(KDIR)/ubi_mark -a 0x20000
|
-A $(KDIR)/ubi_mark -a 0x20000
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/asus-trx
|
||||||
|
$(STAGING_DIR_HOST)/bin/asustrx \
|
||||||
|
-p $(PRODUCTID) -i $@ -o $@.new
|
||||||
|
mv $@.new $@
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/netgear-chk
|
define Build/netgear-chk
|
||||||
$(STAGING_DIR_HOST)/bin/mkchkimg \
|
$(STAGING_DIR_HOST)/bin/mkchkimg \
|
||||||
-o $@.new -k $@ -b $(BOARD_ID) -r $(REGION)
|
-o $@.new -k $@ -b $(BOARD_ID) -r $(REGION)
|
||||||
mv $@.new $@
|
mv $@.new $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
DEVICE_VARS += DT BOARD_ID REGION
|
DEVICE_VARS += DT PRODUCTID BOARD_ID REGION
|
||||||
|
|
||||||
define Device/Default
|
define Device/Default
|
||||||
# .dtb files are prefixed by SoC type, e.g. bcm4708- which is not included in device/image names
|
# .dtb files are prefixed by SoC type, e.g. bcm4708- which is not included in device/image names
|
||||||
|
@ -74,6 +80,19 @@ define Device/Default
|
||||||
IMAGE/trx := trx-nand
|
IMAGE/trx := trx-nand
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Device/asus
|
||||||
|
IMAGES := trx
|
||||||
|
IMAGE/trx := trx-nand | asus-trx
|
||||||
|
endef
|
||||||
|
|
||||||
|
define AsusDevice
|
||||||
|
define Device/asus-$(1)
|
||||||
|
$$(Device/asus)
|
||||||
|
PRODUCTID := $(2)
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += asus-$(1)
|
||||||
|
endef
|
||||||
|
|
||||||
define Device/netgear
|
define Device/netgear
|
||||||
IMAGES := chk
|
IMAGES := chk
|
||||||
IMAGE/chk := trx-nand | netgear-chk
|
IMAGE/chk := trx-nand | netgear-chk
|
||||||
|
@ -101,10 +120,14 @@ define Device/smartrg-sr400ac
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_DEVICES += \
|
TARGET_DEVICES += \
|
||||||
asus-rt-ac56u asus-rt-ac68u asus-rt-ac87u asus-rt-n18u \
|
|
||||||
buffalo-wzr-1750dhp buffalo-wzr-600dhp2 buffalo-wzr-900dhp \
|
buffalo-wzr-1750dhp buffalo-wzr-600dhp2 buffalo-wzr-900dhp \
|
||||||
buffalo-wxr-1900dhp \
|
buffalo-wxr-1900dhp \
|
||||||
netgear-r6250 netgear-r6300-v2 netgear-r8000 \
|
netgear-r6250 netgear-r6300-v2 netgear-r8000 \
|
||||||
smartrg-sr400ac
|
smartrg-sr400ac
|
||||||
|
|
||||||
|
$(eval $(call AsusDevice,rt-ac56u,RT-AC56U))
|
||||||
|
$(eval $(call AsusDevice,rt-ac68u,RT-AC68U))
|
||||||
|
$(eval $(call AsusDevice,rt-ac87u,RT-AC87U))
|
||||||
|
$(eval $(call AsusDevice,rt-n18u,RT-N18U))
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
|
Loading…
Reference in a new issue