Andrew Jeffery 668cf43b21 mdio-tools: Add virtual/kernel dependency to avoid stale SPDX reference
OpenBMC enables SPDX SBOM generation by default. For Meta's Bletchley
platform we found that mdio-tools and its relationships with both
mdio-netlink and the mdio-netlink kernel module break SPDX processing
while generating the rootfs after a kernel bump. For example, the
following output was generated by `bitbake obmc-phosphor-image`:

    ERROR: obmc-phosphor-image-1.0-r0 do_rootfs: Cannot find any SPDX file for document http://spdx.org/spdxdoc/kernel-module-mdio-netlink-6.5.4-da279e9-00089-gda279e98c07f-89187488-3164-50cb-94c5-8b76a30ea093

The error occurred after the following patch was applied (again, in the
context of OpenBMC):

    diff --git a/meta-aspeed/recipes-kernel/linux/linux-aspeed_git.bb b/meta-aspeed/recipes-kernel/linux/linux-aspeed_git.bb
    index e6f98297c540..b852e993f0f6 100644
    --- a/meta-aspeed/recipes-kernel/linux/linux-aspeed_git.bb
    +++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed_git.bb
    @@ -1,6 +1,6 @@
     KBRANCH ?= "dev-6.5"
    -LINUX_VERSION ?= "6.5.4"
    +LINUX_VERSION ?= "6.5.9"

    -SRCREV="da279e98c07f9c948c60a434ab0043a55c26ea1d"
    +SRCREV="fc8d4fdba5bd2b9b1cea2aa8a731531943c45aa7"

     require linux-aspeed.inc

With the lack of a dependency the mdio-tools package is not rebuilt
subsequent to the kernel bump and the package information remains stale,
leading to an incorrect SPDX path being generated.

Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-10-29 21:49:04 -07:00
..
2021-12-10 09:11:56 -08:00
2021-08-03 10:21:25 -07:00
2023-08-15 20:07:54 -07:00
2022-08-15 16:27:53 -07:00
2021-08-03 10:21:25 -07:00
2023-09-20 15:34:02 -07:00
2023-04-02 10:06:48 -07:00
2023-02-16 19:33:29 -08:00
2023-08-03 09:14:20 -07:00
2023-06-14 09:41:35 -07:00
2023-10-17 21:42:56 -07:00
2023-10-12 08:06:57 -07:00
2020-11-09 20:49:52 -08:00
2023-10-17 21:42:56 -07:00
2023-02-18 13:19:36 -08:00
2023-10-12 08:06:57 -07:00
2023-04-17 09:53:31 -07:00
2022-08-30 00:14:58 -07:00
2022-05-24 08:39:45 -07:00
2023-04-04 13:39:46 -07:00
2022-08-30 00:14:58 -07:00
2023-09-07 08:22:43 -07:00
2023-09-22 07:36:16 -07:00
2023-03-22 09:10:39 -07:00
2023-10-23 17:00:49 -07:00
2023-05-28 16:34:59 -07:00
2022-12-05 09:16:24 -08:00
2022-08-25 23:08:11 -07:00
2023-03-09 23:45:17 -08:00
2023-04-17 09:53:32 -07:00
2022-08-15 16:27:53 -07:00
2023-09-07 08:22:44 -07:00