From 43dd045696543131a81f18055fdafa01d5707827 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Wed, 8 Jun 2022 17:06:41 +0200 Subject: [PATCH] linux-netmodule: Remove latest dependencies to MACHINE variable These dependencies lead to a partial rebuild of the kernel when switching machine, even where they are actually using the exact same kernel sources and config. BugzID: 80015 --- recipes-kernel/linux/linux-netmodule.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/recipes-kernel/linux/linux-netmodule.inc b/recipes-kernel/linux/linux-netmodule.inc index 3afa4a6..4be5695 100644 --- a/recipes-kernel/linux/linux-netmodule.inc +++ b/recipes-kernel/linux/linux-netmodule.inc @@ -13,10 +13,20 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" # We are building one kernel for all machines with the same architecture PACKAGE_ARCH = "${TUNE_PKGARCH}" +# This variable is using MACHINE by default. Since we don't use it, +# overwrite with dummy value not using MACHINE variable +INITRAMFS_IMAGE_NAME = "-" + S = "${WORKDIR}/git" INSANE_SKIP_${PN} += "version-going-backwards" +copy_initramfs () { + # We do not use this feature and it is depending on MACHINE variable + # So to avoid this dependency we overwrite it with an empty function + true +} + #If a KERNEL_DEFCONFIG is specified, the defconfig specified in SRC_URI will be overwritten! do_configure_append(){ if [ "${KERNEL_DEFCONFIG}" != "" ]; then