From patchwork Wed Oct 17 16:36:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Alternative,v2,2/7] OpenWrt: Use the tiny target and update names From: Fabian Blaese X-Patchwork-Id: 939 Message-Id: <20181017163615.9248-2-fabian@blaese.de> To: franken-dev@freifunk.net Date: Wed, 17 Oct 2018 18:36:10 +0200 From: Tim Niemeyer Signed-off-by: Tim Niemeyer [fabian@blaese.de: Add missing ATH79 MACHs] Signed-off-by: Fabian Bläse --- Changes in v2: - Fix bootloop of previously-generic devices because of missing kernel options --- bsp/ar71xx/.config | 135 +++++++++--------- bsp/board_ar71xx.bsp | 68 ++++----- bsp/board_wdr4900.bsp | 2 +- ...5-allow-building-all-devives-as-tiny.patch | 51 +++++++ buildscript | 3 +- 5 files changed, 156 insertions(+), 103 deletions(-) create mode 100644 build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config index 278d424..77b74e3 100644 --- a/bsp/ar71xx/.config +++ b/bsp/ar71xx/.config @@ -2,74 +2,74 @@ # Do no edit manually # CONFIG_TARGET_ar71xx=y -CONFIG_TARGET_ar71xx_generic=y +CONFIG_TARGET_ar71xx_tiny=y CONFIG_TARGET_MULTI_PROFILE=y -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_gl-ar150=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_gl-ar150="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_archer-c25-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_archer-c25-v1="-kmod-ath10k kmod-ath10k-ct" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_archer-c7-v2=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_archer-c7-v2="-kmod-ath10k kmod-ath10k-ct" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe210-220=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_cpe210-220="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_cpe510-520=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_cpe510-520="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-mr3020-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-mr3020-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wa850re-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wa850re-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wa860re-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wa860re-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wa901nd-v2=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wa901nd-v2="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wdr3500-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wdr3500-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wdr3600-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wdr3600-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wdr4300-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wdr4300-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wdr4310-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wdr4310-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043nd-v1=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043nd-v1="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043nd-v2=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043nd-v2="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043nd-v3=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043nd-v3="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043nd-v4=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043nd-v4="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr1043n-v5=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr1043n-v5="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr740n-v4=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr740n-v4="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr741nd-v2=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr741nd-v2="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr741nd-v4=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr741nd-v4="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr841-v10=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr841-v10="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr841-v11=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr841-v11="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr841-v12=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr841-v12="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr841-v7=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr841-v7="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr841-v8=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr841-v8="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr841-v9=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr841-v9="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_tl-wr842n-v2=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_tl-wr842n-v2="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-bullet-m=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_ubnt-bullet-m="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-loco-m-xw=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_ubnt-loco-m-xw="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-nano-m=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_ubnt-nano-m="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-unifi=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_ubnt-unifi="" -CONFIG_TARGET_DEVICE_ar71xx_generic_DEVICE_ubnt-unifiac-lite=y -CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_generic_DEVICE_ubnt-unifiac-lite="-kmod-ath10k kmod-ath10k-ct" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_gl-ar150=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_gl-ar150="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c25-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c25-v1="-kmod-ath10k kmod-ath10k-ct" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c7-v2=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v2="-kmod-ath10k kmod-ath10k-ct" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe210-220-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe510-520-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe510-520-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-mr3020-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-mr3020-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wa850re-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wa850re-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wa860re-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wa860re-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wa901nd-v2=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wa901nd-v2="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wdr3500-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wdr3500-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wdr3600-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wdr3600-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wdr4300-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wdr4300-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wdr4310-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wdr4310-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr1043n-v5=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr1043n-v5="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr1043nd-v1=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr1043nd-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr1043nd-v2=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr1043nd-v2="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr1043nd-v3=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr1043nd-v3="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr1043nd-v4=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr1043nd-v4="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr740n-v4=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr740n-v4="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr741nd-v2=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr741nd-v2="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr741nd-v4=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr741nd-v4="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v10=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr841-v10="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v11=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr841-v11="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v12=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr841-v12="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v7=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr841-v7="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v8=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr841-v8="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr841-v9=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr841-v9="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_tl-wr842n-v2=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_tl-wr842n-v2="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_ubnt-bullet-m=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_ubnt-bullet-m="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_ubnt-loco-m-xw=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_ubnt-loco-m-xw="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_ubnt-nano-m=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_ubnt-nano-m="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_ubnt-unifi=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_ubnt-unifi="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_ubnt-unifiac-lite=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_ubnt-unifiac-lite="-kmod-ath10k kmod-ath10k-ct" CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set @@ -99,6 +99,7 @@ CONFIG_PACKAGE_kmod-ledtrig-netdev=y CONFIG_PACKAGE_kmod-nls-base=y CONFIG_PACKAGE_kmod-sched-connmark=y CONFIG_PACKAGE_kmod-usb-core=y +CONFIG_PACKAGE_kmod-usb-ehci=y CONFIG_PACKAGE_kmod-usb-ledtrig-usbport=y CONFIG_PACKAGE_kmod-usb-ohci=y CONFIG_PACKAGE_kmod-usb2=y diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp index 56d7c9f..6663194 100644 --- a/bsp/board_ar71xx.bsp +++ b/bsp/board_ar71xx.bsp @@ -1,38 +1,38 @@ machine=ar71xx chipset=ar71xx -subtarget=generic +subtarget=tiny target=$builddir/$machine -images=("lede-ar71xx-generic-cpe210-220-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-cpe510-520-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-ubnt-nano-m-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-ubnt-loco-m-xw-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr740n-v4-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr741nd-v2-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr741nd-v4-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr841-v7-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr841-v8-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr841-v9-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr841-v10-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr841-v11-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr841-v12-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr842n-v2-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr1043nd-v3-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr1043nd-v4-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wr1043n-v5-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wa860re-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wa850re-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wa901nd-v2-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-gl-ar150-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-ubnt-bullet-m-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-ubnt-unifi-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wdr3500-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wdr3600-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wdr4300-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-tl-wdr4310-v1-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-archer-c7-v2-squashfs-sysupgrade.bin" - "lede-ar71xx-generic-archer-c25-v1-squashfs-sysupgrade.bin" +images=("openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-cpe510-520-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-ubnt-nano-m-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-ubnt-loco-m-xw-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr740n-v4-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr741nd-v2-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr741nd-v4-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr841-v7-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr841-v8-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr841-v9-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr841-v10-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr841-v11-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr841-v12-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr842n-v2-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr1043nd-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr1043nd-v2-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr1043nd-v3-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr1043nd-v4-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wr1043n-v5-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wa860re-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wa850re-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wa901nd-v2-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-gl-ar150-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-mr3020-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-ubnt-bullet-m-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-ubnt-unifi-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-ubnt-unifiac-lite-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wdr3500-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wdr3600-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wdr4300-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wdr4310-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-archer-c7-v2-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-archer-c25-v1-squashfs-sysupgrade.bin" ) diff --git a/bsp/board_wdr4900.bsp b/bsp/board_wdr4900.bsp index 30791e4..8520c6e 100644 --- a/bsp/board_wdr4900.bsp +++ b/bsp/board_wdr4900.bsp @@ -4,5 +4,5 @@ subtarget=generic target=$builddir/$machine images=( - "lede-mpc85xx-generic-tl-wdr4900-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-tl-wdr4900-v1-squashfs-sysupgrade.bin" ) diff --git a/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch new file mode 100644 index 0000000..447f067 --- /dev/null +++ b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch @@ -0,0 +1,51 @@ +From a90784d1eb5eff968d6d2ced5c33b980dcfe40d0 Mon Sep 17 00:00:00 2001 +From: Tim Niemeyer +Date: Mon, 6 Aug 2018 18:39:04 +0200 +Subject: [PATCH] allow building all devives as tiny + +--- + target/linux/ar71xx/image/Makefile | 5 +++++ + target/linux/ar71xx/tiny/config-default | 14 ++++++++++++++ + 2 files changed, 19 insertions(+) + +diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile +index 1eaf1e457c..602323bba2 100644 +--- a/target/linux/ar71xx/image/Makefile ++++ b/target/linux/ar71xx/image/Makefile +@@ -22,6 +22,11 @@ endif + ifeq ($(SUBTARGET),tiny) + include ./tiny-tp-link.mk + include ./tiny-legacy-devices.mk ++include ./generic.mk ++include ./generic-legacy-devices.mk ++include ./generic-senao.mk ++include ./generic-tp-link.mk ++include ./generic-ubnt.mk + endif + ifeq ($(SUBTARGET),nand) + include ./nand.mk +diff --git a/target/linux/ar71xx/tiny/config-default b/target/linux/ar71xx/tiny/config-default +index 2e9031a24c..fa62b41047 100644 +--- a/target/linux/ar71xx/tiny/config-default ++++ b/target/linux/ar71xx/tiny/config-default +@@ -70,3 +70,17 @@ CONFIG_SOC_AR933X=y + CONFIG_SOC_AR934X=y + CONFIG_SOC_QCA953X=y + CONFIG_SOC_QCA956X=y ++# FFF ++CONFIG_ATH79_MACH_ARCHER_C25_V1=y ++CONFIG_ATH79_MACH_ARCHER_C7=y ++CONFIG_ATH79_MACH_CPE510=y ++CONFIG_ATH79_MACH_GL_AR150=y ++CONFIG_ATH79_MACH_TL_WDR3500=y ++CONFIG_ATH79_MACH_TL_WDR4300=y ++CONFIG_ATH79_MACH_TL_WR1043ND=y ++CONFIG_ATH79_MACH_TL_WR1043ND_V2=y ++CONFIG_ATH79_MACH_TL_WR1043ND_V4=y ++CONFIG_ATH79_MACH_TL_WR1043N_V5=y ++CONFIG_ATH79_MACH_UBNT=y ++CONFIG_ATH79_MACH_UBNT_UNIFIAC=y ++CONFIG_ATH79_MACH_UBNT_XM=y +-- +2.11.0 + diff --git a/buildscript b/buildscript index 29918a2..f8d435c 100755 --- a/buildscript +++ b/buildscript @@ -274,8 +274,9 @@ cp_firmware() { [ -n "$subtarget" ] || subtarget="generic" for image in ${images[@]}; do - filename_build=${image//lede/fff-${version}} + filename_build=${image//openwrt/fff-${version}} filename_build=${filename_build//generic/g} + filename_build=${filename_build//tiny/t} cp "$target/bin/targets/${chipset}/${subtarget}/$image" "./bin/$filename_build" for region in "" "-eu" "-us"; do