summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Hajec <lha@semihalf.com>2022-01-21 12:35:07 +0100
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-02 20:57:07 +0000
commit13b3f5540f594152a488d168fe46a542a8daf040 (patch)
tree8ceaf05c7e33d10772a033b632699a2889256b0a
parent3c99b2b354aa943ae286e5ec4ba22d62c992032b (diff)
downloadchrome-ec-13b3f5540f594152a488d168fe46a542a8daf040.tar.gz
servo_v4: Undefine CONFIG_USB_PD_TCPMV1_DEBUG to save space
The servo_v4 is almost out of flash space in RO. Undefine CONFIG_USB_PD_TCPMV1_DEBUG to save space. It disables PD protocol state names in the TPCMv1 console and saves ~900 bytes in RO flash space. Applying to RO only since space is most limited there. This is to keep servo_v4 buildig at ToT. TCPMv1 is deprecated and probably would not be developed in future. BUG=b:212683593 BRANCH=none TEST=Built and flashed the servo v4 firmware. Started servod and verified some functions. Signed-off-by: Łukasz Hajec <lha@semihalf.com> Change-Id: I01d2926ba14f81368c61ab817ddc407e0bef9f43 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3405036 Tested-by: Łukasz Hajec <hajec@google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Łukasz Hajec <hajec@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3687073 Tested-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r--board/servo_v4/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/servo_v4/board.h b/board/servo_v4/board.h
index 7199a738a3..910d6caacc 100644
--- a/board/servo_v4/board.h
+++ b/board/servo_v4/board.h
@@ -13,6 +13,7 @@
/* Free up flash space */
#ifdef SECTION_IS_RO
#define CONFIG_DEBUG_ASSERT_BRIEF
+#undef CONFIG_USB_PD_TCPMV1_DEBUG
#endif
/*