[PATCH v3] Makefile: Tell compiler to generate bare-metal code

Mark Rutland mark.rutland at arm.com
Mon Jan 17 09:24:03 PST 2022


On Mon, Jan 17, 2022 at 04:53:10PM +0000, Andre Przywara wrote:
> On Mon, 17 Jan 2022 16:47:20 +0000
> Mark Rutland <mark.rutland at arm.com> wrote:
> 
> > Hi Andre,
> > 
> > On Mon, Jan 17, 2022 at 03:33:48PM +0000, Andre Przywara wrote:
> > > Our GCC invocation does not provide many parameters, which lets the
> > > toolchain fill in its own default setup.
> > > In case of a native build or when using a full-featured cross-compiler,
> > > this probably means Linux userland, which is not what we want for a
> > > bare-metal application like boot-wrapper.
> > > 
> > > Tell the compiler to forget about those standard settings, and only use
> > > what we explicitly ask for. In particular that means to not use toolchain
> > > provided libraries, since they might pull in more code than we want, and
> > > might not run well in the boot-wrapper environment.  
> > 
> > Thanks for splitting this out; I'd like to apply this with two minor
> > fixups (which I'll apply locally if you agree).
> 
> Yes, I am fine with those changes, please go ahead!

Thanks; I've applied those and pushed that out.

Mark.



More information about the linux-arm-kernel mailing list