package/arm-gnu-toolchain: add BR2_PACKAGE_HOST_ARM_GNU_TOOLCHAIN_SUPPORTS

ARM gnu toolchain for bare metal arm32 target is only available for
x86_64 and aarch64 hosts. Introduce a new option to disable packages
using this toolchain on unsupported hosts.

[Romain: improve commit log]
Signed-off-by: Bryce Johnson <bryce@redpinelabs.com>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Bryce Johnson
2024-10-22 16:54:54 -06:00
committed by Romain Naour
parent c12008448e
commit 65f268e21c
2 changed files with 5 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
config BR2_PACKAGE_HOST_ARM_GNU_TOOLCHAIN_SUPPORTS
bool "host arm-gnu-toolchain"
default y if BR2_HOSTARCH = "aarch64"
default y if BR2_HOSTARCH = "x86_64"