summaryrefslogtreecommitdiff
path: root/zephyr/linker
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2021-07-08 17:36:16 +0000
committerCommit Bot <commit-bot@chromium.org>2021-08-10 21:53:27 +0000
commit2e9af0c566b905d2aa5c5d1bd7c692e549929ff1 (patch)
treea69bd06f06f5d450bb13bf11f61dd75551219855 /zephyr/linker
parente3ded643c83a1fd87d800b37dc4b7a7f7f3f137f (diff)
downloadchrome-ec-2e9af0c566b905d2aa5c5d1bd7c692e549929ff1.tar.gz
zephyr: shim: reimplement mkbp_event using iterables
Rewrite the MKBP events shim using iterable sections. BRANCH=none BUG=b:195521227 TEST=build and run on volteer Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ia96fb9ec06b1a86b1be293209db317a361ae4741 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3069398 Reviewed-by: Keith Short <keithshort@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/linker')
-rw-r--r--zephyr/linker/iterables-rom.ld4
1 files changed, 4 insertions, 0 deletions
diff --git a/zephyr/linker/iterables-rom.ld b/zephyr/linker/iterables-rom.ld
index dea5731465..b8e451a085 100644
--- a/zephyr/linker/iterables-rom.ld
+++ b/zephyr/linker/iterables-rom.ld
@@ -1,3 +1,7 @@
#ifdef CONFIG_PLATFORM_EC_HOSTCMD
ITERABLE_SECTION_ROM(host_command, 4)
#endif
+
+#ifdef CONFIG_PLATFORM_EC_MKBP_EVENT
+ITERABLE_SECTION_ROM(mkbp_event_source, 4)
+#endif