Skip to content

Commit 883f968

Browse files
t-8chTzung-Bi Shih
authored andcommitted
platform/chrome: Prevent build for big-endian systems
Both ARM and ARM64 which are a dependency for CHROME_PLATFORMS have seldomly used big-endian variants. The ChromeOS EC framework and drivers are written under the assumption that they will be running on a little-endian systems. Code which would be broken on big-endian can be found trivially. Some examples: cros_ec.c: suspend_params.sleep_timeout_ms = ec_dev->suspend_timeout_ms cros_ec_debugfs.c: resp->time_since_ec_boot_ms cros_ec_wdt.c: arg.req.reboot_timeout_sec = wdd->timeout Prevent the build for big-endian systems. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20260531-cros-big-endian-v1-2-0cc90f39c636@weissschuh.net Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
1 parent 6b81cba commit 883f968

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/platform/chrome/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
menuconfig CHROME_PLATFORMS
77
bool "Platform support for Chrome hardware"
88
depends on X86 || ARM || ARM64 || COMPILE_TEST
9+
depends on !CPU_BIG_ENDIAN || COMPILE_TEST
910
help
1011
Say Y here to get to see options for platform support for
1112
various Chromebooks and Chromeboxes. This option alone does

0 commit comments

Comments
 (0)