On Tue, Jul 12, 2022 at 7:50 AM Richard Purdie <[email protected]> wrote: > > Building external kernel modules like lttng-modules was showing build paths > inside the debug symbols for the modules and breaking build reproducibility. > > Fix this by adding in the mapping needed to map the kernel build directory > to something more approriate on target.
Aha. Yes, this makes sense. Looks good to me (as a logical step, even if more pops up later!) Bruce > > Signed-off-by: Richard Purdie <[email protected]> > --- > meta/classes/kernel-arch.bbclass | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/classes/kernel-arch.bbclass > b/meta/classes/kernel-arch.bbclass > index 07ec242e63b..348a3adf225 100644 > --- a/meta/classes/kernel-arch.bbclass > +++ b/meta/classes/kernel-arch.bbclass > @@ -61,7 +61,7 @@ HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" > TARGET_AR_KERNEL_ARCH ?= "" > HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}" > > -KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH} -fuse-ld=bfd > ${DEBUG_PREFIX_MAP} > -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH}" > +KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH} -fuse-ld=bfd > ${DEBUG_PREFIX_MAP} > -fdebug-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH} > -fdebug-prefix-map=${STAGING_KERNEL_BUILDDIR}=${KERNEL_SRC_PATH}" > KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld.bfd ${HOST_LD_KERNEL_ARCH}" > KERNEL_AR = "${CCACHE}${HOST_PREFIX}ar ${HOST_AR_KERNEL_ARCH}" > TOOLCHAIN = "gcc" > -- > 2.34.1 > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#167926): https://lists.openembedded.org/g/openembedded-core/message/167926 Mute This Topic: https://lists.openembedded.org/mt/92331002/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
