Question Regarding MACHINE_EXTRA_RDEPENDS vs MACHINE_EXTRA_RRECOMMENDS
Hi,
I have a question regarding the use of MACHINE_EXTRA_RDEPENDS and MACHINE_EXTRA_RRECOMMENDS.
I've written a kernel module to handle a specific aspect of our custom hardware, and I added it to MACHINE_EXTRA_RDEPENDS to ensure it's always installed. However, this triggered the following SPDX error:
ERROR:[...] do_rootfs: Unable to find package with name 'kernel-module-my-module' in SPDX file [...]/kernel-module-my-module-6.6.23-lf-6.6.y-lf-6.6.y-06244-g79c903fdc910.spdx.json
ERROR: Logfile of failure stored in: [...]/1.0/temp/log.do_rootfs.725497
ERROR: Task ([...]:do_rootfs) failed with exit code '1'
It seems that create-spdx is confusing the kernel-module-my-module package with kernel-module-my-module-$KERNEL_VERSION. The error disappears when I use MACHINE_EXTRA_RRECOMMENDS instead.
So my question is: is this a bug, or am I misusing MACHINE_EXTRA_RDEPENDS?
Kind regards
Marcus
I guess you need to investigate why one triggers the error and the other does not by grepping where those are actually used during do_rootfs. Basically take the whole poky tree and check all mentions of it.
Alex
Quoted 29 lines · Marcus Flyckt via lists.yoctoproject.org
Hi,
I have a question regarding the use of
MACHINE_EXTRA_RDEPENDSandMACHINE_EXTRA_RRECOMMENDS.I've written a kernel module to handle a specific aspect of our custom hardware, and I added it to
MACHINE_EXTRA_RDEPENDSto ensure it's always installed. However, this triggered the following SPDX error:ERROR:[...]
do_rootfs: Unable to find package with name 'kernel-module-my-module' in SPDX file [...]/kernel-module-my-module-6.6.23-lf-6.6.y-lf-6.6.y-06244-g79c903fdc910.spdx.json
ERROR: Logfile of failure stored in: [...]/1.0/temp/log.do_rootfs.725497
ERROR: Task ([...]:do_rootfs) failed with exit code '1'It seems that
create-spdxis confusing thekernel-module-my-modulepackage withkernel-module-my-module-$KERNEL_VERSION. The error disappears when I useMACHINE_EXTRA_RRECOMMENDSinstead.So my question is: is this a bug, or am I misusing
MACHINE_EXTRA_RDEPENDS?Kind regards
Marcus-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64056): https://lists.yoctoproject.org/g/yocto/message/64056
Mute This Topic: https://lists.yoctoproject.org/mt/109128269/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-