summaryrefslogtreecommitdiff
path: root/zephyr/projects/kohaku
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-03-19 16:14:22 -0600
committerCommit Bot <commit-bot@chromium.org>2021-03-24 20:19:49 +0000
commitdc76e389faf2442399c1d5bc3c69800767091fa1 (patch)
treeed2f8e5435cc9b79c01ad3413ff8828682edbceb /zephyr/projects/kohaku
parentd3468b111247e43ffdc1855f1c07ad802f1c3cc2 (diff)
downloadchrome-ec-dc76e389faf2442399c1d5bc3c69800767091fa1.tar.gz
zephyr: Enable link time optimization for board files
Move the baseboard and board files into the zephyr_ec library to take advantage of the LTO compiler option enabled for the zephyr_ec library. On Volteer, this reduces the image size by 832 bytes. Total LTO saving is just over 10,000 bytes. BUG=none BRANCH=none TEST=zmake testall TEST=boot zephry-ec on Volteer, verify AP boots Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I2f3aa7f6c400a5b5cd1b346fcf52160b834e66a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2776218 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/projects/kohaku')
-rw-r--r--zephyr/projects/kohaku/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/projects/kohaku/CMakeLists.txt b/zephyr/projects/kohaku/CMakeLists.txt
index 8d618ef6b2..5a8c045731 100644
--- a/zephyr/projects/kohaku/CMakeLists.txt
+++ b/zephyr/projects/kohaku/CMakeLists.txt
@@ -7,4 +7,4 @@ cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(kohaku)
-zephyr_include_directories(include)
+zephyr_library_include_directories(include)