brcm47xx: image: switch Netgear WGT634U to the new building system

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48973
This commit is contained in:
Rafał Miłecki 2016-03-08 18:33:25 +00:00
parent 0d3da888d2
commit ee76a07fbf

View File

@ -34,11 +34,6 @@ endif
$(call prepare_generic_squashfs,$(KDIR)/fs_mark) $(call prepare_generic_squashfs,$(KDIR)/fs_mark)
endef endef
define Image/Build/wgt634u
dd if=$(KDIR)/loader.elf of=$(BIN_DIR)/$(IMG_PREFIX)-wgt634u-$(2).bin bs=131072 conv=sync
cat $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx >> $(BIN_DIR)/$(IMG_PREFIX)-wgt634u-$(2).bin
endef
# $(1): filesystem type. # $(1): filesystem type.
# $(2): device model (used for output file). # $(2): device model (used for output file).
# $(3): pattern (device specific magic). # $(3): pattern (device specific magic).
@ -133,6 +128,12 @@ define Build/motorola-bin
mv $@.new $@ mv $@.new $@
endef endef
define Build/prepend-with-elf
mv $@ $@.old
dd if=$(KDIR)/loader.elf of=$@ bs=131072 conv=sync
cat $@.old >> $@
endef
define Build/tailed-bin define Build/tailed-bin
echo $(BIN_TAIL) >> $@ echo $(BIN_TAIL) >> $@
endef endef
@ -238,7 +239,6 @@ endif
# $(1): filesystem type. # $(1): filesystem type.
define Image/Build/legacy/devices-with-128k-blocks define Image/Build/legacy/devices-with-128k-blocks
$(call Image/Build/trxV2,$(1),wrt54g3gv2-vf,3G2V,3.00.24,$(patsubst jffs2-%,jffs2,$(1)),6) $(call Image/Build/trxV2,$(1),wrt54g3gv2-vf,3G2V,3.00.24,$(patsubst jffs2-%,jffs2,$(1)),6)
$(call Image/Build/wgt634u,$(1),$(patsubst jffs2-%,jffs2,$(1)))
endef endef
# $(1): filesystem type. # $(1): filesystem type.
@ -282,6 +282,12 @@ define Device/linksys-wrtsl54gs
VERSION := 2.08.1 VERSION := 2.08.1
endef endef
define Device/netgear-wgt634u
FILESYSTEMS := $(FS_128K)
IMAGES := bin
IMAGE/bin := trx-with-loader | prepend-with-elf
endef
define Device/usrobotics-usr5461 define Device/usrobotics-usr5461
IMAGES := bin IMAGES := bin
IMAGE/bin := trx-with-loader | usrobotics-bin IMAGE/bin := trx-with-loader | usrobotics-bin
@ -294,6 +300,7 @@ ifeq ($(SUBTARGET),legacy)
huawei-e970 \ huawei-e970 \
linksys-wrt54gs \ linksys-wrt54gs \
linksys-wrtsl54gs \ linksys-wrtsl54gs \
netgear-wgt634u \
usrobotics-usr5461 usrobotics-usr5461
$(eval $(call AsusDevice,wl-300g,WL300g )) $(eval $(call AsusDevice,wl-300g,WL300g ))