From dc76e389faf2442399c1d5bc3c69800767091fa1 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Fri, 19 Mar 2021 16:14:22 -0600 Subject: 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 Change-Id: I2f3aa7f6c400a5b5cd1b346fcf52160b834e66a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2776218 Reviewed-by: Jack Rosenthal Commit-Queue: Jack Rosenthal --- zephyr/projects/kohaku/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zephyr/projects/kohaku') 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) -- cgit v1.2.1