string
option env="XEN_CONFIG_EXPERT"
+config LTO
+ bool "Link Time Optimisation"
+ depends on BROKEN
+ ---help---
+ Enable Link Time Optimisation.
+
+ If unsure, say N.
+
source "Kconfig.debug"
-#
-# If you change any of these configuration options then you must
-# 'make clean' before rebuilding.
-#
-lto ?= n
-
-include $(BASEDIR)/include/config/auto.conf
include $(XEN_ROOT)/Config.mk
$(filter-out %.init.o $(nogcov-y),$(obj-y) $(obj-bin-y) $(extra-y)): CFLAGS += -fprofile-arcs -ftest-coverage
endif
-ifeq ($(lto),y)
+ifeq ($(CONFIG_LTO),y)
# Would like to handle all object files as bitcode, but objects made from
# pure asm are in a different format and have to be collected separately.
# Mirror the directory tree, collecting them as built_in_bin.o.
ifeq ($(obj-y),)
$(CC) $(CFLAGS) -c -x c /dev/null -o $@
else
-ifeq ($(lto),y)
+ifeq ($(CONFIG_LTO),y)
$(LD_LTO) -r -o $@ $^
else
$(LD) $(LDFLAGS) -r -o $@ $^
ALL_OBJS := $(BASEDIR)/arch/x86/boot/built_in.o $(BASEDIR)/arch/x86/efi/built_in.o $(ALL_OBJS)
-ifeq ($(lto),y)
+ifeq ($(CONFIG_LTO),y)
# Gather all LTO objects together
prelink_lto.o: $(ALL_OBJS)
$(LD_LTO) -r -o $@ $^