]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
kernel-devsrc: fix RDEPENDS for make
authorClaus Stovgaard <claus.stovgaard@gmail.com>
Thu, 1 Feb 2024 14:25:31 +0000 (15:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Feb 2024 21:41:19 +0000 (21:41 +0000)
Since kernel version 6.6 the debian package rules has been split up into
a separate rules file, resulting in a runtime requirement for make.
See scripts/package/debian/rules

Remove the rules file, for not RDEPENDS on make for something we are
not using for building modules.

For reproducing the issue on a normal qemux86-64 machine, change to the
linux-yocto-dev kernel, add the kernel-devsrc to the toolchain target
task and disable ptest in distro features. (Notice ptest adds make as
RDEPENDS for other packages hiding the issue)

when populating sdk you will see dnf failing.

 Problem: conflicting requests
  - nothing provides /usr/bin/make needed by kernel-devsrc-1.0-r0.qemux86_64 from oe-repo

Signed-off-by: Claus Stovgaard <claus.stovgaard@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/kernel-devsrc.bb

index ce5777fbe9e2454a799edfb4a76d8358091bb30c..4ff751d9f0a3f4a0f35380f47202ff543ed04b2a 100644 (file)
@@ -148,6 +148,10 @@ do_install() {
        # for v6.1+ (otherwise we are missing multiple default targets)
        cp -a --parents Kbuild $kerneldir/build 2>/dev/null || :
 
+       # For v6.6+ the debian packing is moved out to seperate rules file
+       # Remove as we else would ned to RDEPEND on make
+       rm $kerneldir/build/scripts/package/debian/rules 2>/dev/null || :
+
        # if our build dir had objtool, it will also be rebuilt on target, so
        # we copy what is required for that build
        if [ -f ${B}/tools/objtool/objtool ]; then