[Buildroot] [PATCH 1/1] libffi: prevent unsupported architectures

Vincent Stehlé vincent.stehle at laposte.net
Fri Oct 25 20:27:14 UTC 2019


Disable architectures unsupported by libffi: Andes nds32 and thumb-only Arm
(e.g. Cortex-M).

Signed-off-by: Vincent Stehlé <vincent.stehle at laposte.net>
Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 package/libffi/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/libffi/Config.in b/package/libffi/Config.in
index 6edf570baf..6875947a6a 100644
--- a/package/libffi/Config.in
+++ b/package/libffi/Config.in
@@ -1,6 +1,8 @@
 config BR2_PACKAGE_LIBFFI
 	bool "libffi"
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_nds32
+	depends on (!BR2_arm && !BR2_armeb) || BR2_ARM_CPU_HAS_ARM
 	help
 	  The libffi library provides a portable, high level
 	  programming interface to various calling conventions. This
-- 
2.23.0




More information about the buildroot mailing list