diff options
author | Yuval Peress <peress@chromium.org> | 2020-10-21 22:48:14 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-22 22:47:12 +0000 |
commit | ddec094f2369633b4ebdf750a8f143123be9e692 (patch) | |
tree | 400a117aaeb2ce7541122d8fd8e89ccdf73362f5 /include/common.h | |
parent | 80cf1a6e9453a3eb00bb316e6b519df238db0f9f (diff) | |
download | chrome-ec-ddec094f2369633b4ebdf750a8f143123be9e692.tar.gz |
Add shim for system.c (implementing jump data functions)
This change adds the system.h/system.c shim layer to import jump data
passing between images.
BRANCH=none
BUG=b:167392037
TEST=Added tests in zephyr-chrome/tests/
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: I8c6ae2cf579be063c5b3f7219c440aadad3eefa1
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2491430
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index cd586465cf..c013d83d16 100644 --- a/include/common.h +++ b/include/common.h @@ -16,7 +16,10 @@ #ifdef CONFIG_ZEPHYR #include <sys/util.h> #include <toolchain.h> -#endif +#ifdef CONFIG_ZTEST +#define TEST_BUILD +#endif /* CONFIG_ZTEST */ +#endif /* CONFIG_ZEPHYR */ /* * Macros to concatenate 2 - 4 tokens together to form a single token. |