summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Baltieri <fabiobaltieri@google.com>2022-08-01 07:08:11 +0100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-03 05:08:27 +0000
commit3c0d6d04919b8454c4aa8d9af877d251200b6061 (patch)
treef6ad980ce232010d4da2225444f2b0cc472e189a
parentcc5f0bf1ddb75eead035a3e187e62ffcda571e6a (diff)
downloadchrome-ec-3c0d6d04919b8454c4aa8d9af877d251200b6061.tar.gz
zephyr: shim: add default to PLATFORM_EC_USB_PID
All Kconfig symbols are added to the binary with the GEN_ABSOLUTE_SYM_KCONFIG. This is a problem with hex symbols with a default empty value, as they end up defined to "0x", causing an obscure build failure such as: FAILED: zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj /tmp/cc5ZD1EK.s: Assembler messages: /tmp/cc5ZD1EK.s:1345: Error: missing expression Setting a default for the option so that that would not break the build. BUG=none BRANCH=none TEST=drop the config for a board, build it, no assembler errors Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com> Change-Id: Ib886cafdccf7d7da21b0fe90b03aa40cc55c2715 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3801901 Reviewed-by: Madhu P <mparuchuri@google.com> Reviewed-by: Scott Collyer <scollyer@chromium.org>
-rw-r--r--zephyr/Kconfig.usbc1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 1cb4088475..c23de7c79c 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -56,6 +56,7 @@ config PLATFORM_EC_USBC_OCP
config PLATFORM_EC_USB_PID
hex "USB Product ID"
+ default 0
help
Each platform (e.g. baseboard set) should have a single VID/PID
combination. If there is a big enough change within a platform,