Author: rmilecki
Date: 2016-03-11 09:54:13 +0100 (Fri, 11 Mar 2016)
New Revision: 49001
Modified:
branches/chaos_calmer/target/linux/brcm47xx/image/Makefile
Log:
brcm47xx: image: switch Netgear WGT634U to the new building system
Signed-off-by: Rafa{U+0142} Mi{U+0142}ecki <[email protected]>
Backport of r48973
Modified: branches/chaos_calmer/target/linux/brcm47xx/image/Makefile
===================================================================
--- branches/chaos_calmer/target/linux/brcm47xx/image/Makefile 2016-03-11
08:54:09 UTC (rev 49000)
+++ branches/chaos_calmer/target/linux/brcm47xx/image/Makefile 2016-03-11
08:54:13 UTC (rev 49001)
@@ -34,11 +34,6 @@
$(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).
@@ -137,6 +132,12 @@
mv [email protected] $@
endef
+define Build/prepend-with-elf
+ mv $@ [email protected]
+ dd if=$(KDIR)/loader.elf of=$@ bs=131072 conv=sync
+ cat [email protected] >> $@
+endef
+
define Build/tailed-bin
echo $(BIN_TAIL) >> $@
endef
@@ -242,7 +243,6 @@
# $(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.
@@ -286,6 +286,12 @@
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
@@ -298,6 +304,7 @@
huawei-e970 \
linksys-wrt54gs \
linksys-wrtsl54gs \
+ netgear-wgt634u \
usrobotics-usr5461
$(eval $(call AsusDevice,wl-300g,WL300g ))
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits