meta-freescale/recipes-kernel/kernel-modules/kernel-module-ar_git.bb
Hongxu Jia 3d39d35586 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 <hongxu.jia@windriver.com>
2021-10-21 15:45:34 +08:00

33 lines
928 B
BlitzBasic

SUMMARY = "Auto Response Control Module"
LICENSE = "GPLv2 & BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287"
inherit module
SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-yocto-sdk/auto-resp;branch=nxp/sdk-v2.0.x"
SRCREV = "9a74743167dcfcfbca5056eedbff9a52337c9712"
S = "${WORKDIR}/git"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} SYSROOT=${STAGING_DIR_TARGET}"
export KERNEL_PATH
INHIBIT_PACKAGE_STRIP = "1"
do_compile:prepend() {
sed -i -e 's,EXTRA_CFLAGS += -I$(PWD),EXTRA_CFLAGS += -I${S},' ${S}/armodule/source/Makefile
}
do_install(){
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}
install -d ${D}${bindir}
install -m 644 ${B}/bin/ar.ko ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/
cp -f ${S}/bin/ar_* ${D}${bindir}/
}
FILES:${PN} += "${bindir}/"
INSANE_SKIP:${PN} = "ldflags"
COMPATIBLE_MACHINE = "(t1040|t1042)"
CLEANBROKEN = "1"