On Wed, 2021-01-20 at 10:20 -0800, Oleksiy Obitotskyy via lists.openembedded.org wrote: > Makefile override CFLAGS, so -fmacro/debug-prefix-map > optiions was omitted and binaries contains absolute > patch to sources. > > Signed-off-by: Oleksiy Obitotskyy <oobit...@cisco.com> > --- > meta/recipes-kernel/dtc/dtc.inc | 10 +++++- > ...-Makefile-to-add-CFLAGS-not-override.patch | 36 +++++++++++++++++++ > 2 files changed, 45 insertions(+), 1 deletion(-) > create mode 100644 > meta/recipes-kernel/dtc/dtc/0001-dtc-Fix-Makefile-to-add-CFLAGS-not-override.patch > > diff --git a/meta/recipes-kernel/dtc/dtc.inc b/meta/recipes-kernel/dtc/dtc.inc > index 0650e3c82e..59badd4951 100644 > --- a/meta/recipes-kernel/dtc/dtc.inc > +++ b/meta/recipes-kernel/dtc/dtc.inc > @@ -8,6 +8,14 @@ DEPENDS = "flex-native bison-native" > SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \ > file://make_install.patch \ > " > + > +def get_reproducibility_patches(d): > + if bb.data.inherits_class("reproducible_build", d): > + return > "file://0001-dtc-Fix-Makefile-to-add-CFLAGS-not-override.patch" > + return "" > + > +SRC_URI += "${@get_reproducibility_patches(d)}" > + > UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
Thanks for looking at this, its good to get some of the remaining issues sorted! Is there a reason we can't always apply this patch? Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#147039): https://lists.openembedded.org/g/openembedded-core/message/147039 Mute This Topic: https://lists.openembedded.org/mt/79984766/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-