diff options
author | Mark Hatle <mark.hatle@xilinx.com> | 2019-12-17 14:34:51 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-02-27 08:33:25 -0800 |
commit | c5ce034522e331c596db457139c11d0ac7344eae (patch) | |
tree | edd96a0837ddd9a3f79a39a2c4c23d139a3642aa /meta-xilinx-standalone/conf/distro/xilinx-standalone.conf | |
parent | 3645a86366ba43dc6708584d0660685f18bd400a (diff) | |
download | meta-xilinx-c5ce034522e331c596db457139c11d0ac7344eae.tar.gz |
distr/xilinx-standalone: Switch default optimization from ESW to Distro
Instead of using ESW_CFLAGS for the optimization level, fall back to the
default Yocto Project method of 'FULL_OPTIMIZATION' and
'SELECTED_OPTIMIZATION'.
FULL_OPTIMIZATION is moved from -O2 to -Os, the other components retain
the default Yocto Project setitng of '-pipe ${DEBUG_FLAGS}'.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone/conf/distro/xilinx-standalone.conf')
-rw-r--r-- | meta-xilinx-standalone/conf/distro/xilinx-standalone.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.conf b/meta-xilinx-standalone/conf/distro/xilinx-standalone.conf index 3acbffa3..7bb352d0 100644 --- a/meta-xilinx-standalone/conf/distro/xilinx-standalone.conf +++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.conf | |||
@@ -10,6 +10,9 @@ TOOLCHAIN_NEED_CONFIGSITE_CACHE = "" | |||
10 | 10 | ||
11 | TOOLCHAIN_HOST_TASK_append = " nativesdk-qemu-xilinx" | 11 | TOOLCHAIN_HOST_TASK_append = " nativesdk-qemu-xilinx" |
12 | 12 | ||
13 | # By default we want to optimize for size. | ||
14 | FULL_OPTIMIZATION = "-Os -pipe ${DEBUG_FLAGS}" | ||
15 | |||
13 | # We also need to use Link Time Optimization for many items, make this the | 16 | # We also need to use Link Time Optimization for many items, make this the |
14 | # default. | 17 | # default. |
15 | ESW_CFLAGS += " -flto -ffat-lto-objects" | 18 | ESW_CFLAGS += " -flto -ffat-lto-objects" |