Skip to content

Commit 4ead112

Browse files
efahlrobimarko
authored andcommitted
targetwide: imagebuilder: add explicit guards around initramfs rules
Additional work building upon f6e0f57 Add more explict guards around the unsupported generation of the initramfs images and suppress requirement for certain others. Fixes: openwrt/openwrt#20151 Fixes: openwrt/asu#1499 Signed-off-by: Eric Fahlgren <[email protected]> Link: openwrt/openwrt#20460 Signed-off-by: Robert Marko <[email protected]> (cherry picked from commit f5fd7ef)
1 parent 859ff7a commit 4ead112

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

target/linux/mediatek/image/filogic.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,11 +864,11 @@ define Device/dlink_aquila-pro-ai-m30-a1
864864
DEVICE_DTS_DIR := ../dts
865865
DEVICE_PACKAGES := kmod-leds-gca230718 kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
866866
KERNEL_IN_UBI := 1
867-
IMAGES += recovery.bin
868867
IMAGE_SIZE := 51200k
869868
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
870869
ifeq ($(IB),)
871870
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
871+
IMAGES += recovery.bin
872872
IMAGE/recovery.bin := append-image-stage initramfs-kernel.bin | sysupgrade-tar kernel=$$$$@ |\
873873
pad-to $$(IMAGE_SIZE) | dlink-ai-recovery-header DLK6E6110001 \x6A\x28\xEE\x0B \x00\x00\x2C\x00 \x00\x00\x20\x03 \x61\x6E
874874
endif
@@ -883,11 +883,11 @@ define Device/dlink_aquila-pro-ai-m60-a1
883883
DEVICE_DTS := mt7986a-dlink-aquila-pro-ai-m60-a1
884884
DEVICE_DTS_DIR := ../dts
885885
DEVICE_PACKAGES := kmod-leds-gca230718 kmod-mt7915e kmod-mt7986-firmware mt7986-wo-firmware
886-
IMAGES += recovery.bin
887886
IMAGE_SIZE := 51200k
888887
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
889888
ifeq ($(IB),)
890889
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
890+
IMAGES += recovery.bin
891891
IMAGE/recovery.bin := append-image-stage initramfs-kernel.bin | sysupgrade-tar kernel=$$$$@ |\
892892
pad-to $$(IMAGE_SIZE) | dlink-ai-recovery-header DLK6E8202001 \x30\x6C\x19\x0C \x00\x00\x2C\x00 \x00\x00\x20\x03 \x82\x6E
893893
endif

target/linux/qualcommax/image/ipq807x.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,12 @@ define Device/netgear_wax218
298298
BLOCKSIZE := 128k
299299
PAGESIZE := 2048
300300
SOC := ipq8072
301+
ifeq ($(IB),)
301302
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
302303
ARTIFACTS := web-ui-factory.fit
303304
ARTIFACT/web-ui-factory.fit := append-image initramfs-uImage.itb | \
304305
ubinize-kernel | qsdk-ipq-factory-nand
306+
endif
305307
endif
306308
DEVICE_PACKAGES := kmod-spi-gpio kmod-spi-bitbang kmod-gpio-nxp-74hc164 \
307309
ipq-wifi-netgear_wax218
@@ -406,10 +408,12 @@ define Device/xiaomi_ax3600
406408
SOC := ipq8071
407409
KERNEL_SIZE := 36608k
408410
DEVICE_PACKAGES := ipq-wifi-xiaomi_ax3600 kmod-ath10k-ct-smallbuffers ath10k-firmware-qca9887-ct
411+
ifeq ($(IB),)
409412
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
410413
ARTIFACTS := initramfs-factory.ubi
411414
ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
412415
endif
416+
endif
413417
endef
414418
TARGET_DEVICES += xiaomi_ax3600
415419

@@ -425,10 +429,12 @@ define Device/xiaomi_ax9000
425429
KERNEL_SIZE := 57344k
426430
DEVICE_PACKAGES := ipq-wifi-xiaomi_ax9000 kmod-ath11k-pci ath11k-firmware-qcn9074 \
427431
kmod-ath10k-ct ath10k-firmware-qca9887-ct
432+
ifeq ($(IB),)
428433
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
429434
ARTIFACTS := initramfs-factory.ubi
430435
ARTIFACT/initramfs-factory.ubi := append-image-stage initramfs-uImage.itb | ubinize-kernel
431436
endif
437+
endif
432438
endef
433439
TARGET_DEVICES += xiaomi_ax9000
434440

target/linux/ramips/image/common-sercomm.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ define Device/sercomm_cpj
182182
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | \
183183
sercomm-sysupgrade-cpj | pad-rootfs | check-size | \
184184
append-metadata
185+
ifeq ($(IB),)
185186
ARTIFACTS := initramfs-factory.img
187+
endif
186188
DEVICE_PACKAGES := kmod-mt76x2
187189
endef
188190

target/linux/ramips/image/mt7621.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,9 +1588,11 @@ define Device/iodata_wn-ax1167gr
15881588
IMAGE_SIZE := 15552k
15891589
DEVICE_VENDOR := I-O DATA
15901590
DEVICE_MODEL := WN-AX1167GR
1591+
ifeq ($(IB),)
15911592
ARTIFACTS := initramfs-factory.bin
15921593
ARTIFACT/initramfs-factory.bin := append-image-stage initramfs-kernel.bin | \
15931594
check-size 7680k | senao-header -r 0x30a -p 0x1055 -t 4
1595+
endif
15941596
DEVICE_PACKAGES := kmod-mt7603 kmod-mt76x2 -uboot-envtools
15951597
endef
15961598
TARGET_DEVICES += iodata_wn-ax1167gr
@@ -1640,10 +1642,12 @@ define Device/iodata_wn-deax1800gr
16401642
KERNEL := kernel-bin | relocate-kernel $(loadaddr-y) | lzma | \
16411643
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
16421644
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
1645+
ifeq ($(IB),)
16431646
ARTIFACTS := initramfs-factory.bin
16441647
ARTIFACT/initramfs-factory.bin := append-image-stage initramfs-kernel.bin | \
16451648
check-size | xor-image -p 29944a25120984c2 -x | \
16461649
iodata-mstc-header2 WN-DEAX1800GR 00021003
1650+
endif
16471651
DEVICE_PACKAGES := kmod-mt7915-firmware
16481652
endef
16491653
TARGET_DEVICES += iodata_wn-deax1800gr
@@ -1771,9 +1775,11 @@ define Device/iptime_ax2004m
17711775
KERNEL_LOADADDR := 0x82000000
17721776
KERNEL := kernel-bin | relocate-kernel $(loadaddr-y) | lzma | \
17731777
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb
1778+
ifeq ($(IB),)
17741779
ARTIFACTS := initramfs-factory.bin
17751780
ARTIFACT/initramfs-factory.bin := append-image-stage initramfs-kernel.bin | \
17761781
check-size | iptime-crc32 ax2004m
1782+
endif
17771783
DEVICE_VENDOR := ipTIME
17781784
DEVICE_MODEL := AX2004M
17791785
DEVICE_PACKAGES := kmod-mt7915-firmware kmod-usb3

0 commit comments

Comments
 (0)