mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
Introduce the variable BR2_TOOLCHAIN_HAS_UCONTEXT
It is set when the platform exposes the struct ucontext_t. This avoids duplication of logic inside each package requiring the use of that type. Signed-off-by: Patrick Havelange <patrick.havelange@essensium.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
2693362a04
commit
001f9a7988
@ -1,15 +1,6 @@
|
|||||||
config BR2_PACKAGE_LIBSIGSEGV_ARCH_SUPPORTS
|
config BR2_PACKAGE_LIBSIGSEGV_ARCH_SUPPORTS
|
||||||
bool
|
bool
|
||||||
# with glibc/musl, ucontext is available for all supported
|
default y if BR2_TOOLCHAIN_HAS_UCONTEXT
|
||||||
# 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
|
config BR2_PACKAGE_LIBSIGSEGV
|
||||||
bool "libsigsegv"
|
bool "libsigsegv"
|
||||||
|
@ -15,10 +15,16 @@ config BR2_TOOLCHAIN_USES_GLIBC
|
|||||||
select BR2_TOOLCHAIN_HAS_THREADS
|
select BR2_TOOLCHAIN_HAS_THREADS
|
||||||
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
|
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
|
||||||
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||||
|
select BR2_TOOLCHAIN_HAS_UCONTEXT
|
||||||
select BR2_TOOLCHAIN_SUPPORTS_PIE
|
select BR2_TOOLCHAIN_SUPPORTS_PIE
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_USES_UCLIBC
|
config BR2_TOOLCHAIN_USES_UCLIBC
|
||||||
bool
|
bool
|
||||||
|
# ucontext is only available for a subset of the supported
|
||||||
|
# architectures
|
||||||
|
select BR2_TOOLCHAIN_HAS_UCONTEXT if BR2_ARM_CPU_HAS_ARM || BR2_i386 \
|
||||||
|
|| BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el \
|
||||||
|
|| BR2_sparc || BR2_x86_64
|
||||||
select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
|
select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_m68k && !BR2_microblaze && !BR2_STATIC_LIBS
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_USES_MUSL
|
config BR2_TOOLCHAIN_USES_MUSL
|
||||||
@ -28,6 +34,7 @@ config BR2_TOOLCHAIN_USES_MUSL
|
|||||||
select BR2_TOOLCHAIN_HAS_THREADS
|
select BR2_TOOLCHAIN_HAS_THREADS
|
||||||
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
|
select BR2_TOOLCHAIN_HAS_THREADS_DEBUG
|
||||||
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
select BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||||
|
select BR2_TOOLCHAIN_HAS_UCONTEXT
|
||||||
select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_STATIC_LIBS
|
select BR2_TOOLCHAIN_SUPPORTS_PIE if !BR2_STATIC_LIBS
|
||||||
|
|
||||||
choice
|
choice
|
||||||
@ -145,6 +152,9 @@ config BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
|||||||
config BR2_TOOLCHAIN_HAS_SSP
|
config BR2_TOOLCHAIN_HAS_SSP
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config BR2_TOOLCHAIN_HAS_UCONTEXT
|
||||||
|
bool
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_SUPPORTS_PIE
|
config BR2_TOOLCHAIN_SUPPORTS_PIE
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user