aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-03-09 11:22:09 -0500
committerTom Rini <trini@konsulko.com>2023-03-22 15:22:48 -0400
commit332f48022f642ed06541009d06f71105f81d3c80 (patch)
tree1a6c7ba20519163aaafef87b38c6a722b7f6e0b4 /examples
parent16d82d7bfac87bd3f670bf2388dff6354f8f0eac (diff)
downloadu-boot-332f48022f642ed06541009d06f71105f81d3c80.zip
u-boot-332f48022f642ed06541009d06f71105f81d3c80.tar.gz
u-boot-332f48022f642ed06541009d06f71105f81d3c80.tar.bz2
examples: Don't use LTO for hello_world
If we're building U-Boot with LTO, we don't want to use that for examples as it's more work than required. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/standalone/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile
index 5b48a9d..559170d 100644
--- a/examples/standalone/Makefile
+++ b/examples/standalone/Makefile
@@ -29,6 +29,10 @@ targets += $(patsubst $(obj)/%,%,$(LIB)) $(COBJS) $(LIBOBJS-y)
LIBOBJS := $(addprefix $(obj)/,$(LIBOBJS-y))
ELF := $(addprefix $(obj)/,$(ELF))
+# Disable LTO for these builds
+CFLAGS_REMOVE_hello_world.o := $(LTO_CFLAGS)
+CFLAGS_REMOVE_stubs.o := $(LTO_CFLAGS)
+
# For PowerPC there's no need to compile standalone applications as a
# relocatable executable. The relocation data is not needed, and
# also causes the entry point of the standalone application to be