Re: [RFC PATCH] allow choosing -Os/-O2 separately for SPL and TPL

2020-06-16 Thread Simon Glass
On Fri, 5 Jun 2020 at 02:37, Rasmus Villemoes wrote: > > It can be useful to build U-Boot proper with -O2, but still optimize > the SPL for size. So add separate config options for SPL and TPL. > > I had to move the Makefile logic to config.mk, since otherwise > SPL_TPL_ didn't seem to be known. U

[RFC PATCH] allow choosing -Os/-O2 separately for SPL and TPL

2020-06-05 Thread Rasmus Villemoes
It can be useful to build U-Boot proper with -O2, but still optimize the SPL for size. So add separate config options for SPL and TPL. I had to move the Makefile logic to config.mk, since otherwise SPL_TPL_ didn't seem to be known. Unfortunately, the SPL translation units end up getting both -O2 a