diff options
author | Patrick Georgi <pgeorgi@google.com> | 2021-01-25 21:51:49 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-26 11:07:52 +0000 |
commit | e40faf973d39a9d30d1333a482ee60943dcf8283 (patch) | |
tree | 2397661527170b6bab09ab0898bd2717f28c89e2 /zephyr/shim/src/CMakeLists.txt | |
parent | 774e4bfab7119909e04ecec6c34b6cc85d979c22 (diff) | |
download | chrome-ec-e40faf973d39a9d30d1333a482ee60943dcf8283.tar.gz |
zephyr: Use Chrome EC's libgcc implementation over the compiler's
gcc's libgcc is built with a compile time notion of what an
architecture's ABI will look like. If that happens to be wrong, you're
out of luck.
Instead, use our own implementation which, while written in assembly
(and as such not as flexible as it could be) is processed with the
right set of flags.
BUG=b:178363068
BRANCH=none
TEST=zephyr boots on kohaku when built with coreboot-sdk.
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Change-Id: I6d27bb48478081b6c2ff8927734492282e55e898
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2648666
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Patrick Georgi <pgeorgi@chromium.org>
Diffstat (limited to 'zephyr/shim/src/CMakeLists.txt')
-rw-r--r-- | zephyr/shim/src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/shim/src/CMakeLists.txt b/zephyr/shim/src/CMakeLists.txt index e5101e8dbd..be283829cc 100644 --- a/zephyr/shim/src/CMakeLists.txt +++ b/zephyr/shim/src/CMakeLists.txt @@ -7,6 +7,8 @@ zephyr_sources(gpio.c) zephyr_sources(util.c) zephyr_sources(crc.c) +zephyr_sources_ifdef(no_libgcc libgcc_${ARCH}.S) + zephyr_sources_ifdef(CONFIG_PLATFORM_EC_ESPI espi.c) zephyr_sources_ifdef(CONFIG_PLATFORM_EC_FLASH flash.c) zephyr_sources_ifdef(CONFIG_PLATFORM_EC_HOOKS hooks.c) |