]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
u-boot: Pass in prefix mapping variables to the compiler
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Feb 2024 13:43:13 +0000 (13:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 17 Feb 2024 18:17:48 +0000 (18:17 +0000)
Avoid:

u-boot-1_2024.01-r0 do_package_qa: QA Issue: File /boot/u-boot-qemuriscv64-2024.01-r0.elf in package u-boot contains reference to TMPDIR [buildpaths]

by ensuring the compiler has the prefix mapping options passed in to it
to correctly remap the source paths and avoid the warning.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/u-boot/u-boot.inc

index b3482dcef31947ea3f3b372cbdc7a0bb80d2ac63..79f84b0672e3b1d46af2639f01ed7e86043228a9 100644 (file)
@@ -9,7 +9,7 @@ inherit uboot-config uboot-extlinux-config uboot-sign deploy python3native kerne
 
 DEPENDS += "swig-native"
 
-EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
+EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${DEBUG_PREFIX_MAP}" V=1'
 EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
 EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}'