summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2024-10-19 23:48:57 +0000
committerDaniel Golle2024-10-20 23:49:22 +0000
commite550c6d3817c11fcd74f01fb9a7a62c9f733d490 (patch)
tree5a79e3d9d1ad0b8b384e5350e759ae4045c56531
parenta85e18b53f0f645d72806cc6fe46f1603bbdb355 (diff)
downloadopenwrt-e550c6d3817c11fcd74f01fb9a7a62c9f733d490.tar.gz
mediatek: fix OpenWrt One ubinized image in IB
The ImageBuilder when using the profile for the OpenWrt One has been failing because the initramfs image included in the ubinized image could not be found. Fix that by using the staged initramfs instead when using the ImageBuilder. Fixes: 797904b3cb ("mediatek/filogic: add OpenWrt One support") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--target/linux/mediatek/image/filogic.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 83f1336444..ac535aeaa0 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -1090,7 +1090,9 @@ define Device/openwrt_one
UBINIZE_OPTS := -E 5
BLOCKSIZE := 128k
PAGESIZE := 2048
- UBINIZE_PARTS := fip=:$(STAGING_DIR_IMAGE)/mt7981_openwrt_one-snand-u-boot.fip recovery=:$(KDIR)/tmp/openwrt-mediatek-filogic-openwrt_one-initramfs.itb \
+ UBINIZE_PARTS := fip=:$(STAGING_DIR_IMAGE)/mt7981_openwrt_one-snand-u-boot.fip \
+ $(if $(IB),recovery=:$(STAGING_DIR_IMAGE)/mediatek-filogic-openwrt_one-initramfs.itb,\
+ recovery=:$(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE)) \
$(if $(wildcard $(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb), calibration=:$(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb)
endef
TARGET_DEVICES += openwrt_one