depmodwrapper-cross: conditionally inherit nopackages
PATCH 1/1 depmodwrapper-cross: conditionally inherit nopackages
From: Leonardo Sandoval <[email protected]>
The class nopackages deletes tasks needed by the archiver, so in case the latter is globally inherited, do not inherit nopackages. Without this patch, the following error occurs:
ERROR: Task do_deploy_archives in .../meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb depends upon non-existent task do_package_write_rpm in \
.../meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb
ERROR: Command execution failed: 1The solution was suggested by J. Richardson, mentioned on the bugzilla entry.
[YOCTO #11121]
Signed-off-by Leonardo Sandoval <[email protected]>
--- meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb +2 -1
@@ -45,4 +45,5 @@ EOF SYSROOT_DIRS += "${bindir_crossscripts}" -inherit nopackages +# The archiver requires tasks that nopackages deletes. +inherit ${@'nopackages' if not bb.data.inherits_class('archiver', d) else ''}
Signature · 1 line
2.12.0