Skip to contentSkip to conversation

platform/chrome: wilco_ec: Allow wilco to be compiled in COMPILE_TEST

PATCH Applied Stephen Boyd 2 participants 2 messages Jan 22, 2020 – Jan 23, 2020 Chrome hardware platform support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/chrome: wilco_ec: Allow wilco to be compiled in COMPILE_TEST

Enable this Kconfig on COMPILE_TEST enabled configs so we can get more build coverage.

---
 drivers/platform/chrome/wilco_ec/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/platform/chrome/wilco_ec/Kconfig +2 -1
index 365f30e116ee..49e8530ca0ac 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config WILCO_EC
 	tristate "ChromeOS Wilco Embedded Controller"
-	depends on ACPI && X86 && CROS_EC_LPC && LEDS_CLASS
+	depends on X86 || COMPILE_TEST
+	depends on ACPI && CROS_EC_LPC && LEDS_CLASS
 	help
 	  If you say Y here, you get support for talking to the ChromeOS
 	  Wilco EC over an eSPI bus. This uses a simple byte-level protocol
Signature · 1 line
Sent by a computer, using git, on the internet
Applied
#1 lore raw

Hi Stephen,

Quoted 4 lines · Stephen Boyd

Enable this Kconfig on COMPILE_TEST enabled configs so we can get more build coverage.

Applied to our for-next. Thanks!

Quoted 21 lines
---
 drivers/platform/chrome/wilco_ec/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/platform/chrome/wilco_ec/Kconfig +2 -1
index 365f30e116ee..49e8530ca0ac 100644
@@ -1,7 +1,8 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config WILCO_EC
 	tristate "ChromeOS Wilco Embedded Controller"
-	depends on ACPI && X86 && CROS_EC_LPC && LEDS_CLASS
+	depends on X86 || COMPILE_TEST
+	depends on ACPI && CROS_EC_LPC && LEDS_CLASS
 	help
 	  If you say Y here, you get support for talking to the ChromeOS
 	  Wilco EC over an eSPI bus. This uses a simple byte-level protocol
Signature · 1 line
Sent by a computer, using git, on the internet
Signature · 7 lines
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
[email protected]
Chromium OS Project
[email protected]