From d161de0b00b91cd0c286fbbc1190f87cf20fe088 Mon Sep 17 00:00:00 2001 From: Yoann Congal Date: Tue, 21 May 2024 10:08:05 +0200 Subject: mdio-tools: fix mdio-netlink kernel module reproducibility mdio-netlink source make reference to ${S}/.. which breaks -fdebug-prefix-map and results in the full TMPDIR path being present in the -dbg package and, also, change a related CRC in the main package. This changes ${S} to enclose the whole SRC_URI repo and adapt relative paths to build (MODULES_MODULE_SYMVERS_LOCATION) This make mdio-netlink reproducible and fixes this warning: WARNING: mdio-netlink-1.3.1-r0 do_package_qa: QA Issue: File /lib/modules/6.6.29-yocto-standard/updates/.debug/mdio-netlink.ko in package mdio-netlink-dbg contains reference to TMPDIR [buildpaths] Signed-off-by: Yoann Congal Reviewed-by: Alexandre Truong Signed-off-by: Khem Raj --- meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meta-networking/recipes-support') diff --git a/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb b/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb index b50d33f908..3867b89052 100644 --- a/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb +++ b/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb @@ -3,11 +3,12 @@ require mdio-tools.inc DEPENDS += "virtual/kernel libmnl" # This module requires Linux 5.6 higher -S = "${WORKDIR}/git/kernel" +S = "${WORKDIR}/git" inherit module -EXTRA_OEMAKE = "KDIR=${STAGING_KERNEL_DIR}" +EXTRA_OEMAKE = "-C kernel/ KDIR=${STAGING_KERNEL_DIR}" +MODULES_MODULE_SYMVERS_LOCATION="kernel" MODULES_INSTALL_TARGET = "install" RPROVIDES:${PN} += "kernel-module-mdio-netlink" -- cgit v1.2.3-54-g00ecf