Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame^] | 1 | require conf/distro/xilinx-standalone.inc |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame^] | 3 | DISTRO_NAME_append = " (lto)" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame^] | 5 | # By default we want to optimize for size. |
| 6 | FULL_OPTIMIZATION = "-Os -pipe ${DEBUG_FLAGS}" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame^] | 8 | # Workaround for microblaze -Os bug |
| 9 | FULL_OPTIMIZATION_microblaze = "-O2 -pipe ${DEBUG_FLAGS}" |
| 10 | |
| 11 | # We also need to use Link Time Optimization for many items, make this the |
| 12 | # default. |
| 13 | ESW_CFLAGS += " -flto -ffat-lto-objects" |
| 14 | |