summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-11-17 12:16:22 +0100
committerArthur Heymans <arthur@aheymans.xyz>2024-08-23 10:40:01 +0000
commit183037de6a2ce68712ddfd99e588ce59402dfdd2 (patch)
treea5f1218e822f0a6f07558625a615067e5bae0e28 /src
parente0be23c73394fcde1b26caedc964eba35bdb111c (diff)
arch/arm: Add a few ARM targets as supported by CLANG
Some targets cannot be supported by clang as clang generates slightly larger binaries which the hardware won't accept. This is usually the case with CONFIG_CHROMEOS. Change-Id: I88cf8ce16fb6c61c19d615e396f5871179b06fc8 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69747 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/arch/arm/Kconfig1
-rw-r--r--src/soc/nvidia/tegra124/Kconfig2
-rw-r--r--src/soc/qualcomm/ipq40xx/Kconfig2
-rw-r--r--src/soc/qualcomm/ipq806x/Kconfig2
-rw-r--r--src/soc/rockchip/rk3288/Kconfig2
5 files changed, 8 insertions, 1 deletions
diff --git a/src/arch/arm/Kconfig b/src/arch/arm/Kconfig
index 0829dcbbcb..64fe915c4b 100644
--- a/src/arch/arm/Kconfig
+++ b/src/arch/arm/Kconfig
@@ -2,7 +2,6 @@
config ARCH_ARM
bool
- select CLANG_UNSUPPORTED
config ARCH_BOOTBLOCK_ARM
bool
diff --git a/src/soc/nvidia/tegra124/Kconfig b/src/soc/nvidia/tegra124/Kconfig
index 88877e9a76..5f967d2533 100644
--- a/src/soc/nvidia/tegra124/Kconfig
+++ b/src/soc/nvidia/tegra124/Kconfig
@@ -14,6 +14,8 @@ config SOC_NVIDIA_TEGRA124
select MAINBOARD_HAS_NATIVE_VGA_INIT
select MAINBOARD_FORCE_NATIVE_VGA_INIT
select HAVE_LINEAR_FRAMEBUFFER
+ # clang creates larger binaries that may not fit
+ select CLANG_UNSUPPORTED if CHROMEOS
if SOC_NVIDIA_TEGRA124
diff --git a/src/soc/qualcomm/ipq40xx/Kconfig b/src/soc/qualcomm/ipq40xx/Kconfig
index 98c3a8eae9..e32f228194 100644
--- a/src/soc/qualcomm/ipq40xx/Kconfig
+++ b/src/soc/qualcomm/ipq40xx/Kconfig
@@ -9,6 +9,8 @@ config SOC_QC_IPQ40XX
select ARCH_RAMSTAGE_ARMV7
select HAVE_UART_SPECIAL
select GENERIC_GPIO_LIB
+# clang creates larger binaries that may not fit
+ select CLANG_UNSUPPORTED if CHROMEOS
if SOC_QC_IPQ40XX
diff --git a/src/soc/qualcomm/ipq806x/Kconfig b/src/soc/qualcomm/ipq806x/Kconfig
index b9e47e5ec5..22a21559ea 100644
--- a/src/soc/qualcomm/ipq806x/Kconfig
+++ b/src/soc/qualcomm/ipq806x/Kconfig
@@ -10,6 +10,8 @@ config SOC_QC_IPQ806X
select HAVE_UART_SPECIAL
select GENERIC_GPIO_LIB
select NO_MONOTONIC_TIMER
+# clang creates larger binaries that may not fit
+ select CLANG_UNSUPPORTED if CHROMEOS
if SOC_QC_IPQ806X
diff --git a/src/soc/rockchip/rk3288/Kconfig b/src/soc/rockchip/rk3288/Kconfig
index a51df2a9ae..7036bbb5ed 100644
--- a/src/soc/rockchip/rk3288/Kconfig
+++ b/src/soc/rockchip/rk3288/Kconfig
@@ -18,6 +18,8 @@ config SOC_ROCKCHIP_RK3288
select NO_BOOTBLOCK_CONSOLE
select NO_FMAP_CACHE
select NO_CBFS_MCACHE
+# clang creates larger binaries that may not fit
+ select CLANG_UNSUPPORTED if CHROMEOS
if SOC_ROCKCHIP_RK3288