[RFC PATCH v1 1/3] image: allow setting FIT compatible per device
Phil Taylor
phil at m0vse.uk
Sun Sep 20 15:51:54 PDT 2026
The FIT generation helper already accepts a compatible string, but the
image recipes cannot pass one on a per-device basis.
Add DEVICE_FIT_COMPATIBLE and forward it to mkits.sh. This allows devices
with bootloaders that use FIT compatible matching to describe the board
without replacing the common FIT recipe.
Signed-off-by: Phil Taylor <phil at m0vse.uk>
---
include/image-commands.mk | 1 +
include/image.mk | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/image-commands.mk b/include/image-commands.mk
index e6b526d..14dfe34 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -449,6 +449,7 @@ define Build/fit-its
$(if $(DEVICE_FDT_NUM),-n $(DEVICE_FDT_NUM)) \
$(if $(DEVICE_DTS_DELIMITER),-l $(DEVICE_DTS_DELIMITER)) \
$(if $(DEVICE_DTS_LOADADDR),-s $(DEVICE_DTS_LOADADDR)) \
+ $(if $(DEVICE_FIT_COMPATIBLE),-f $(DEVICE_FIT_COMPATIBLE)) \
$(if $(DEVICE_DTS_OVERLAY),$(foreach dtso,$(DEVICE_DTS_OVERLAY), -O $(dtso):$(KERNEL_BUILD_DIR)/image-$(dtso).dtbo)) \
-c $(if $(DEVICE_DTS_CONFIG),$(DEVICE_DTS_CONFIG),"config-1") \
-A $(LINUX_KARCH) -v $(LINUX_VERSION)
diff --git a/include/image.mk b/include/image.mk
index 3f5268e..6ac649d 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -537,6 +537,7 @@ define Device/Init
DEVICE_DTS_DIR :=
DEVICE_DTS_LOADADDR :=
DEVICE_DTS_OVERLAY :=
+ DEVICE_FIT_COMPATIBLE :=
DEVICE_FDT_NUM :=
DEVICE_DTC_FLAGS :=
DEVICE_DTCO_FLAGS :=
@@ -565,7 +566,7 @@ DEFAULT_DEVICE_VARS := \
VID_HDR_OFFSET UBINIZE_OPTS UBINIZE_PARTS MKUBIFS_OPTS DEVICE_DTC_FLAGS \
DEVICE_DTCO_FLAGS DEVICE_DTS DEVICE_DTS_CONFIG DEVICE_DTS_DELIMITER \
DEVICE_DTS_DIR DEVICE_DTS_OVERLAY DEVICE_DTS_LOADADDR \
- DEVICE_FDT_NUM DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \
+ DEVICE_FIT_COMPATIBLE DEVICE_FDT_NUM DEVICE_IMG_PREFIX SOC BOARD_NAME UIMAGE_MAGIC UIMAGE_NAME \
UIMAGE_TIME SUPPORTED_DEVICES IMAGE_METADATA KERNEL_ENTRY KERNEL_LOADADDR \
UBOOT_PATH IMAGE_SIZE NAND_SIZE \
FACTORY_IMG_NAME FACTORY_SIZE \
--
2.54.0 (Apple Git-157)
More information about the openwrt-devel
mailing list