summaryrefslogtreecommitdiffstats
path: root/package/libsigsegv/Config.in
diff options
context:
space:
mode:
Diffstat (limited to 'package/libsigsegv/Config.in')
-rw-r--r--package/libsigsegv/Config.in23
1 files changed, 14 insertions, 9 deletions
diff --git a/package/libsigsegv/Config.in b/package/libsigsegv/Config.in
index 90c6ba30a1..f258dc9e8a 100644
--- a/package/libsigsegv/Config.in
+++ b/package/libsigsegv/Config.in
@@ -1,15 +1,20 @@
+config BR2_PACKAGE_LIBSIGSEGV_ARCH_SUPPORTS
+ bool
+ # with glibc/musl, ucontext is available for all supported
+ # architectures
+ default y if BR2_TOOLCHAIN_USES_GLIBC
+ default y if BR2_TOOLCHAIN_USES_MUSL
+ # with uclibc, ucontext is only available for a subset of the
+ # supported architectures
+ default y if BR2_TOOLCHAIN_USES_UCLIBC && \
+ (BR2_ARM_CPU_HAS_ARM || BR2_i386 || \
+ BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
+ BR2_sparc || BR2_x86_64)
+
config BR2_PACKAGE_LIBSIGSEGV
bool "libsigsegv"
- depends on !BR2_xtensa
- depends on !BR2_arc # no ucontext_i.sym file
- depends on !BR2_microblaze
- depends on !BR2_m68k # unknown type name 'ucontext_t'
- # No ucontext support in uclibc for powerpc and superh
- depends on !((BR2_powerpc || BR2_sh) && BR2_TOOLCHAIN_USES_UCLIBC)
+ depends on BR2_PACKAGE_LIBSIGSEGV_ARCH_SUPPORTS
help
Library for handling page faults in user mode.
http://www.gnu.org/software/libsigsegv/
-
-comment "libsigsegv needs a glibc toolchain"
- depends on (BR2_powerpc || BR2_sh) && BR2_TOOLCHAIN_USES_UCLIBC
OpenPOWER on IntegriCloud