summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-11-03 18:54:00 +0100
committerTom Rini <trini@konsulko.com>2024-11-13 08:16:47 -0600
commite6b937f35e317962aab3d02cbace9ee363b27a76 (patch)
tree0352cb2a2a7635c1faabd8bb0b89d59c301b9f29 /test
parent1cfafff3192a81055fd7e833313a85d5feede1e3 (diff)
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>
Diffstat (limited to 'test')
-rw-r--r--test/lib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/Makefile b/test/lib/Makefile
index a54387a058e..7146ffa1b1f 100644
--- a/test/lib/Makefile
+++ b/test/lib/Makefile
@@ -11,7 +11,7 @@ obj-$(CONFIG_EFI_SECURE_BOOT) += efi_image_region.o
obj-y += hexdump.o
obj-$(CONFIG_SANDBOX) += kconfig.o
obj-y += lmb.o
-obj-y += longjmp.o
+obj-$(CONFIG_HAVE_SETJMP) += longjmp.o
obj-$(CONFIG_CONSOLE_RECORD) += test_print.o
obj-$(CONFIG_SSCANF) += sscanf.o
obj-y += string.o