[openwrt/openwrt] qualcommax: ipq807x: fix build error with no initramfs for RAX120v2

LEDE Commits lede-commits at lists.infradead.org
Mon Jul 8 04:23:30 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/2bae9d04af2f4722fc0156632169fe2ab75fccf0

commit 2bae9d04af2f4722fc0156632169fe2ab75fccf0
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Mon Jul 8 13:21:13 2024 +0200

    qualcommax: ipq807x: fix build error with no initramfs for RAX120v2
    
    Exclude additional initramfs image for Netgear RAX120v2 when no
    initramfs image are compiled to fix build error.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 target/linux/qualcommax/image/ipq807x.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/qualcommax/image/ipq807x.mk b/target/linux/qualcommax/image/ipq807x.mk
index d75cf3dd3c..e2a6da569c 100644
--- a/target/linux/qualcommax/image/ipq807x.mk
+++ b/target/linux/qualcommax/image/ipq807x.mk
@@ -162,10 +162,12 @@ define Device/netgear_rax120v2
 	NETGEAR_HW_ID := 29765589+0+512+1024+4x4+8x8
 	DEVICE_PACKAGES := ipq-wifi-netgear_rax120v2 kmod-spi-gpio \
 		kmod-spi-bitbang kmod-gpio-nxp-74hc164 kmod-hwmon-g762
+ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
 	IMAGES += web-ui-factory.img
 	IMAGE/web-ui-factory.img := append-image initramfs-uImage.itb | \
 		pad-offset $$$$(BLOCKSIZE) 64 | append-uImage-fakehdr filesystem | \
 		netgear-dni
+endif
 	IMAGE/sysupgrade.bin := append-kernel | pad-offset $$$$(BLOCKSIZE) 64 | \
 		append-uImage-fakehdr filesystem | sysupgrade-tar kernel=$$$$@ | \
 		append-metadata




More information about the lede-commits mailing list