Skip to content

Commit

Permalink
brcm47xx: image: switch Netgear WGT634U to the new building system
Browse files Browse the repository at this point in the history
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

Backport of r48973

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49001 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
rmilecki committed Mar 11, 2016
1 parent 6123f91 commit d9aa46c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions target/linux/brcm47xx/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ endif
$(call prepare_generic_squashfs,$(KDIR)/fs_mark)
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.
# $(2): device model (used for output file).
# $(3): pattern (device specific magic).
Expand Down Expand Up @@ -137,6 +132,12 @@ define Build/netgear-chk
mv $@.new $@
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
echo $(BIN_TAIL) >> $@
endef
Expand Down Expand Up @@ -242,7 +243,6 @@ endif
# $(1): filesystem type.
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/wgt634u,$(1),$(patsubst jffs2-%,jffs2,$(1)))
endef

# $(1): filesystem type.
Expand Down Expand Up @@ -286,6 +286,12 @@ define Device/linksys-wrtsl54gs
VERSION := 2.08.1
endef

define Device/netgear-wgt634u
FILESYSTEMS := $(FS_128K)
IMAGES := bin
IMAGE/bin := trx-with-loader | prepend-with-elf
endef

define Device/usrobotics-usr5461
IMAGES := bin
IMAGE/bin := trx-with-loader | usrobotics-bin
Expand All @@ -298,6 +304,7 @@ ifeq ($(SUBTARGET),legacy)
huawei-e970 \
linksys-wrt54gs \
linksys-wrtsl54gs \
netgear-wgt634u \
usrobotics-usr5461

$(eval $(call AsusDevice,wl-300g,WL300g ))
Expand Down

0 comments on commit d9aa46c

Please sign in to comment.