On Mon, 2024-10-14 at 09:45 -0400, [email protected] wrote: > 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"
This is for master so truncate should always be in HOSTTOOLS? I don't understand why we need this there? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#205918): https://lists.openembedded.org/g/openembedded-core/message/205918 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]] -=-=-=-=-=-=-=-=-=-=-=-
