On 3/13/21 2:15 PM, Daniel Mack wrote: > On 3/12/21 9:04 PM, Mark Hatle wrote: >> On 3/12/21 11:57 AM, Daniel Mack wrote: >>> I'm using Yocto with the gatesgarth branches of poky and meta-xilinx to >>> build a kernel image for a custom MicroBlaze design. This results in >>> kernel images that silently fail to boot. >> >> The compiler in Zeus -02 and Gatesgarth -02 changed the default options. >> Gatesgarth (and newer) now includes -ftree-loop-distribute-patterns by >> default. >> This causes kernel (and baremetal) build failures. >> >> The temporary workaround is to disable that by default, setting >> -fno-tree-loop-distribute-patterns. > > Thanks a lot for the prompt reply! That explains. Now I'm wondering how > to best pass that flag, and to which part of the build exactly. Is there > any example how to do that in Yocto?
Not a proper fix (that is still in progress upstream [kernel]), but you should be able to add this to arch/microblaze/Makefile Look for: head-y := arch/microblaze/kernel/head.o Right before that I added: KBUILD_CFLAGS += -fno-tree-loop-distribute-patterns That fixed the kernel build for me. --Mark > It seems buildroot passed that to its toolchain wrapper, but I don't see > an equivalent of that in Yocto. > > > Best regards, > Daniel > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#4870): https://lists.yoctoproject.org/g/meta-xilinx/message/4870 Mute This Topic: https://lists.yoctoproject.org/mt/81285762/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
