mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 12:54:37 +00:00
test: run longjmp() test only on supported architectures
We have only implemented longjmp() on the EFI architectures. Define a symbol CONFIG_HAVE_SETJMP and have it selected by the relevant architectures. Use CONFIG_HAVE_SETJMP to decide if the longjmp test shall be built. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
1cfafff319
commit
e6b937f35e
2 changed files with 10 additions and 1 deletions
|
@ -8,6 +8,11 @@ config CREATE_ARCH_SYMLINK
|
||||||
config HAVE_ARCH_IOREMAP
|
config HAVE_ARCH_IOREMAP
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config HAVE_SETJMP
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
The architecture supports setjmp() and longjmp().
|
||||||
|
|
||||||
config SUPPORT_BIG_ENDIAN
|
config SUPPORT_BIG_ENDIAN
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
@ -73,6 +78,7 @@ config ARC
|
||||||
|
|
||||||
config ARM
|
config ARM
|
||||||
bool "ARM architecture"
|
bool "ARM architecture"
|
||||||
|
select HAVE_SETJMP
|
||||||
select ARCH_SUPPORTS_LTO
|
select ARCH_SUPPORTS_LTO
|
||||||
select CREATE_ARCH_SYMLINK
|
select CREATE_ARCH_SYMLINK
|
||||||
select HAVE_PRIVATE_LIBGCC if !ARM64
|
select HAVE_PRIVATE_LIBGCC if !ARM64
|
||||||
|
@ -129,6 +135,7 @@ config PPC
|
||||||
config RISCV
|
config RISCV
|
||||||
bool "RISC-V architecture"
|
bool "RISC-V architecture"
|
||||||
select CREATE_ARCH_SYMLINK
|
select CREATE_ARCH_SYMLINK
|
||||||
|
select HAVE_SETJMP
|
||||||
select SUPPORT_ACPI
|
select SUPPORT_ACPI
|
||||||
select SUPPORT_LITTLE_ENDIAN
|
select SUPPORT_LITTLE_ENDIAN
|
||||||
select SUPPORT_OF_CONTROL
|
select SUPPORT_OF_CONTROL
|
||||||
|
@ -154,6 +161,7 @@ config RISCV
|
||||||
|
|
||||||
config SANDBOX
|
config SANDBOX
|
||||||
bool "Sandbox"
|
bool "Sandbox"
|
||||||
|
select HAVE_SETJMP
|
||||||
select ARCH_SUPPORTS_LTO
|
select ARCH_SUPPORTS_LTO
|
||||||
select BOARD_LATE_INIT
|
select BOARD_LATE_INIT
|
||||||
select BZIP2
|
select BZIP2
|
||||||
|
@ -249,6 +257,7 @@ config SH
|
||||||
|
|
||||||
config X86
|
config X86
|
||||||
bool "x86 architecture"
|
bool "x86 architecture"
|
||||||
|
select HAVE_SETJMP
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
select SUPPORT_TPL
|
select SUPPORT_TPL
|
||||||
select SUPPORT_LITTLE_ENDIAN
|
select SUPPORT_LITTLE_ENDIAN
|
||||||
|
|
|
@ -11,7 +11,7 @@ obj-$(CONFIG_EFI_SECURE_BOOT) += efi_image_region.o
|
||||||
obj-y += hexdump.o
|
obj-y += hexdump.o
|
||||||
obj-$(CONFIG_SANDBOX) += kconfig.o
|
obj-$(CONFIG_SANDBOX) += kconfig.o
|
||||||
obj-y += lmb.o
|
obj-y += lmb.o
|
||||||
obj-y += longjmp.o
|
obj-$(CONFIG_HAVE_SETJMP) += longjmp.o
|
||||||
obj-$(CONFIG_CONSOLE_RECORD) += test_print.o
|
obj-$(CONFIG_CONSOLE_RECORD) += test_print.o
|
||||||
obj-$(CONFIG_SSCANF) += sscanf.o
|
obj-$(CONFIG_SSCANF) += sscanf.o
|
||||||
obj-y += string.o
|
obj-y += string.o
|
||||||
|
|
Loading…
Add table
Reference in a new issue