From: Bruce Ashfield <[email protected]> 6.11+ uses truncate as part of the build. While truncate has been added to HOSTTOOLS in oe-core master, it still is possible to build a kernel recipe newer than 6.11+ on a release that doesn't have the HOSTTOOLS tweak.
We can test for truncate and condtionally add the dependency. Signed-off-by: Bruce Ashfield <[email protected]> --- meta/recipes-kernel/linux/linux-yocto-dev.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index 292897ce43..752d108bd8 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb @@ -44,6 +44,10 @@ PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native" # we need the wrappers if validation isn't in the packageconfig DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}" +# 6.11+ uses truncate in the build, so we need to either have it in host tools, or +# build it ourselves +DEPENDS += "${@bb.utils.contains('HOSTTOOLS', 'truncate', '', 'coreutils-native', d)}" + COMPATIBLE_MACHINE = "^(qemuarmv5|qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64|qemuloongarch64)$" KERNEL_DEVICETREE:qemuarmv5 = "arm/versatile-pb.dtb" -- 2.39.2
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#205771): https://lists.openembedded.org/g/openembedded-core/message/205771 Mute This Topic: https://lists.openembedded.org/mt/109001355/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
