From patchwork Thu Dec 3 14:30:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 107210 Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net [185.136.64.226]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.15326.1796308258760458571 for ; Thu, 03 Dec 2026 06:30:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=g8zU4rd3; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.226, mailfrom: fm-1329275-2026120314305683d0b06de7000207a9-ndbmkj@rts-flowmailer.siemens.com) Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 2026120314305683d0b06de7000207a9 for ; Thu, 03 Dec 2026 15:30:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=from:from:sender:to:to:cc:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=SvKWpZ7wmCxQBaMIwjLh8YmIR661/VrMPZr8qCCfe/0=; b=g8zU4rd3FkrWXiEljroToSrtY/LKmSLrrwElNIiMzXt0HCbGLkOufUDgeZOLQ/WLkNnDDr zI5Yp1NXuA3SncHJP+QQDa+3YE/xHf59Bp9+MSo+kcDzTrmPyKyShHf0K9Oxeg5G3US0vQf+ R31qAf14V2PQwWTmDN1FTM4MHlCo8oyPXjF7t4Z51Ht/Nsk+KFttBrtFi+wj7YWmJEa7Xznn VY0rDdCGCcYVY8QsArgjrmz7OwYhvCOGEFmh+bCL1qIrMhT056fokvM0IwzfDYYV8dEGxELa VE2ILKoKI0//AykVZD/7ppHMX0B6YcDcKvSioB5aboTKr9aKbHcj/wcQ==; From: AdrianF To: openembedded-core@lists.openembedded.org Cc: marex@nabladev.com, Adrian Freihofer Subject: [PATCH 4/8] conf/uboot.conf: move shared U-Boot defaults out of uboot-config Date: Thu, 3 Dec 2026 15:30:07 +0100 Message-ID: <20261203143044.592073-5-adrian.freihofer@siemens.com> In-Reply-To: <20261203143044.592073-1-adrian.freihofer@siemens.com> References: <20261203143044.592073-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 14:31:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251901 From: Adrian Freihofer kernel-fit-image.bbclass inherits uboot-config only for a few mkimage, load address and signing defaults, which also pulls in the U-Boot build configuration logic (UBOOT_CONFIG handling and its sanity checks). Move those defaults unchanged into conf/uboot.conf, required by both uboot-config.bbclass and kernel-fit-image.bbclass, and drop the uboot-config inherit from kernel-fit-image. No change for U-Boot recipes. Kernel FIT recipes no longer get the remaining uboot-config defaults or run its anonymous python; none of these are used by kernel-fit-image. Signed-off-by: Adrian Freihofer --- meta/classes-recipe/kernel-fit-image.bbclass | 3 ++- meta/classes-recipe/uboot-config.bbclass | 21 +--------------- meta/conf/uboot.conf | 26 ++++++++++++++++++++ 3 files changed, 29 insertions(+), 21 deletions(-) create mode 100644 meta/conf/uboot.conf diff --git a/meta/classes-recipe/kernel-fit-image.bbclass b/meta/classes-recipe/kernel-fit-image.bbclass index c167fc8c64..3098573560 100644 --- a/meta/classes-recipe/kernel-fit-image.bbclass +++ b/meta/classes-recipe/kernel-fit-image.bbclass @@ -1,5 +1,6 @@ -inherit kernel-artifact-names uboot-config deploy +inherit kernel-artifact-names deploy +require conf/uboot.conf require conf/image-fitimage.conf S = "${UNPACKDIR}" diff --git a/meta/classes-recipe/uboot-config.bbclass b/meta/classes-recipe/uboot-config.bbclass index 5459430dee..e39d1bce7f 100644 --- a/meta/classes-recipe/uboot-config.bbclass +++ b/meta/classes-recipe/uboot-config.bbclass @@ -45,9 +45,6 @@ def removesuffix(s, suffix): return s[:-len(suffix)] return s -UBOOT_ENTRYPOINT ?= "0x20008000" -UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" - # When naming the files we install/deploy, the package version and revision # are part of the filename. Create a single variable to represent this and # allow it to be customized if desired. @@ -112,28 +109,12 @@ UBOOT_EXTLINUX_INSTALL_DIR ?= "/boot/extlinux" UBOOT_EXTLINUX_CONF_NAME ?= "extlinux.conf" UBOOT_EXTLINUX_SYMLINK ?= "${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}-${UBOOT_VERSION}" -# Options for the device tree compiler passed to mkimage '-D' feature: -UBOOT_MKIMAGE_DTCOPTS ??= "" -SPL_MKIMAGE_DTCOPTS ??= "" - -# mkimage command -UBOOT_MKIMAGE ?= "uboot-mkimage" -UBOOT_MKIMAGE_SIGN ?= "${UBOOT_MKIMAGE}" - -# Signature activation -UBOOT_SIGN_ENABLE ?= "0" - -# Arguments passed to mkimage for signing -UBOOT_MKIMAGE_SIGN_ARGS ?= "" -SPL_MKIMAGE_SIGN_ARGS ?= "" +require conf/uboot.conf # Options to deploy the u-boot device tree UBOOT_DTB ?= "" UBOOT_DTB_BINARY ??= "" -# uboot-fit_check_sign command -UBOOT_FIT_CHECK_SIGN ?= "uboot-fit_check_sign" - python () { if bb.utils.to_boolean(d.getVar('UBOOT_INITIAL_ENV_BINARY')) and d.getVar('UBOOT_INITIAL_ENV_BINARY_SIZE') == "": bb.fatal("UBOOT_INITIAL_ENV_BINARY requires setting the U-Boot partition environment size with the UBOOT_INITIAL_ENV_BINARY_SIZE variable") diff --git a/meta/conf/uboot.conf b/meta/conf/uboot.conf new file mode 100644 index 0000000000..ef71edc3d1 --- /dev/null +++ b/meta/conf/uboot.conf @@ -0,0 +1,26 @@ +# Variables shared by U-Boot and FIT image generation. +# Required by uboot-config.bbclass and by classes and recipes that need these +# defaults without the U-Boot build logic, e.g. kernel-fit-image.bbclass. + +# Default kernel load address and entry point for FIT images. +# Machine configurations typically override these in their .conf files. +UBOOT_ENTRYPOINT ?= "0x20008000" +UBOOT_LOADADDRESS ?= "${UBOOT_ENTRYPOINT}" + +# Options for the device tree compiler passed to mkimage '-D' feature: +UBOOT_MKIMAGE_DTCOPTS ??= "" +SPL_MKIMAGE_DTCOPTS ??= "" + +# mkimage command +UBOOT_MKIMAGE ?= "uboot-mkimage" +UBOOT_MKIMAGE_SIGN ?= "${UBOOT_MKIMAGE}" + +# Signature activation +UBOOT_SIGN_ENABLE ?= "0" + +# Arguments passed to mkimage for signing +UBOOT_MKIMAGE_SIGN_ARGS ?= "" +SPL_MKIMAGE_SIGN_ARGS ?= "" + +# uboot-fit_check_sign command +UBOOT_FIT_CHECK_SIGN ?= "uboot-fit_check_sign"