From abe225134dd26bca2e07778693599011844f59dd Mon Sep 17 00:00:00 2001 From: Meng Li Date: Thu, 8 Jun 2023 11:10:30 +0800 Subject: meta-freescale: fmlib: map kernel source path to target path When building package fmlib based on Yocto version mickledore, there is below warning reported: WARNING: fmlib-git-r1 do_package_qa: QA Issue: File /usr/lib64/libfm-arm.a in package fmlib-staticdev contains reference to TMPDIR [buildpaths] Because the KERNEL_SRC is passed into Makefile, and not mapped to a target path like the source of this package. To void this warning, it also needs to add the path map in CFLAGS for kernel source. Signed-off-by: Meng Li --- recipes-dpaa/fmlib/fmlib_git.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-dpaa/fmlib/fmlib_git.bb b/recipes-dpaa/fmlib/fmlib_git.bb index 98f5c0d7e..b24dd7995 100644 --- a/recipes-dpaa/fmlib/fmlib_git.bb +++ b/recipes-dpaa/fmlib/fmlib_git.bb @@ -10,6 +10,9 @@ SRCREV = "69a70474cd8411d5a099c34f40760b6567d781d6" S = "${WORKDIR}/git" +CFLAGS += "-fmacro-prefix-map=${STAGING_KERNEL_DIR}=/usr/src/debug/fmlib/git-r1 \ + -fdebug-prefix-map=${STAGING_KERNEL_DIR}=/usr/src/debug/fmlib/git-r1" + EXTRA_OEMAKE = "DESTDIR=${D} PREFIX=${prefix} LIB_DEST_DIR=${libdir} \ CROSS_COMPILE=${TARGET_PREFIX} KERNEL_SRC=${STAGING_KERNEL_DIR}" -- cgit v1.2.3-54-g00ecf