blob: 8f53e99b30023d0f6e7fa001cb7b62449d620c55 [file] [log] [blame]
Andrew Geissler84ad7c52020-06-27 00:00:16 -05001require conf/distro/xilinx-standalone.inc
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002
Andrew Geissler84ad7c52020-06-27 00:00:16 -05003DISTRO_NAME_append = " (lto)"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08004
Andrew Geissler84ad7c52020-06-27 00:00:16 -05005# By default we want to optimize for size.
6FULL_OPTIMIZATION = "-Os -pipe ${DEBUG_FLAGS}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08007
Andrew Geissler84ad7c52020-06-27 00:00:16 -05008# Workaround for microblaze -Os bug
9FULL_OPTIMIZATION_microblaze = "-O2 -pipe ${DEBUG_FLAGS}"
10
11# We also need to use Link Time Optimization for many items, make this the
12# default.
13ESW_CFLAGS += " -flto -ffat-lto-objects"
14