blob: 4273230f0a5d5eaf0255ca94496d8d7edc490334 [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.
Andrew Geisslera9ff2b32020-10-16 10:11:54 -05006FULL_OPTIMIZATION = "-O2 -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