aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-01-21 16:07:49 +0100
committerRafał Miłecki <rafal@milecki.pl>2021-01-22 20:11:24 +0100
commit6ba3a0e889053475930e9a23a2404d8872eb887a (patch)
treefef8e10740047bf5cc43c76af196e63cd8a851a0 /target/linux
parentc31f7975277b5870ef146fb3ec4eaa829365b727 (diff)
downloadupstream-6ba3a0e889053475930e9a23a2404d8872eb887a.tar.gz
upstream-6ba3a0e889053475930e9a23a2404d8872eb887a.tar.bz2
upstream-6ba3a0e889053475930e9a23a2404d8872eb887a.zip
bcm4908: build valid Asus GT-AC5300 firmware image
Insert Asus specific tail that is required for image identification. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/bcm4908/image/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/target/linux/bcm4908/image/Makefile b/target/linux/bcm4908/image/Makefile
index d6b5f07e2a..b744839e5b 100644
--- a/target/linux/bcm4908/image/Makefile
+++ b/target/linux/bcm4908/image/Makefile
@@ -27,6 +27,12 @@ define Build/bcm4908img
mv $@.new $@
endef
+define Build/bcm4908asus
+ $(STAGING_DIR_HOST)/bin/bcm4908asus create -i $@ -p $(ASUS_PRODUCTID) -b $(ASUS_BUILD_NO) -f $(ASUS_FW_REV) -e $(ASUS_EXT_NO)
+endef
+
+DEVICE_VARS += ASUS_PRODUCTID ASUS_BUILD_NO ASUS_FW_REV ASUS_EXT_NO
+
define Device/Default
KERNEL := kernel-bin | bcm4908lzma | bcm4908kernel
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
@@ -44,7 +50,11 @@ define Device/asus_gt-ac5300
DEVICE_MODEL := GT-AC5300
DEVICE_DTS := broadcom/bcm4908/bcm4908-asus-gt-ac5300
IMAGES := bin
- IMAGE/bin := append-ubi | bcm4908img
+ IMAGE/bin := append-ubi | bcm4908img | bcm4908asus
+ ASUS_PRODUCTID := GT-AC5300
+ ASUS_BUILD_NO := 384
+ ASUS_FW_REV := 3.0.0.4
+ ASUS_EXT_NO := 21140
endef
TARGET_DEVICES += asus_gt-ac5300