From 3d39d355867caaee00c42614f7eb4a9b0830b84b Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Wed, 20 Oct 2021 14:47:55 +0800 Subject: odp-module/odp-counters/kernel-module-ar: fix QA Issue during usermerge While enabling usermerge, there is a QA issue: ... ERROR: odp-counters-git-r0 do_package: QA Issue: odp-counters: Files/directories were installed but not shipped in any package: /lib /lib/modules /lib/modules/5.10.70-yocto-standard /lib/modules/5.10.70-yocto-standard/odp /lib/modules/5.10.70-yocto-standard/odp/odpfsl_perfcounters.ko Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install. odp-counters: 5 installed and not shipped files. [installed-vs-shipped] ... Use Yocto nonarch_base_libdir to replace hardcode /lib Signed-off-by: Hongxu Jia --- recipes-kernel/kernel-modules/kernel-module-ar_git.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes-kernel') diff --git a/recipes-kernel/kernel-modules/kernel-module-ar_git.bb b/recipes-kernel/kernel-modules/kernel-module-ar_git.bb index f2cd1a579..898afeb2f 100644 --- a/recipes-kernel/kernel-modules/kernel-module-ar_git.bb +++ b/recipes-kernel/kernel-modules/kernel-module-ar_git.bb @@ -19,9 +19,9 @@ do_compile:prepend() { } do_install(){ - install -d ${D}/lib/modules/${KERNEL_VERSION} + install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION} install -d ${D}${bindir} - install -m 644 ${B}/bin/ar.ko ${D}/lib/modules/${KERNEL_VERSION}/ + install -m 644 ${B}/bin/ar.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/ cp -f ${S}/bin/ar_* ${D}${bindir}/ } -- cgit v1.2.3-54-g00ecf