diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-12-24 08:45:07 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-01-06 13:04:39 -0600 |
| commit | 81b3558e74a372b8355c8d9b234566dcecf71bf6 (patch) | |
| tree | 8497a3dc3c645c4130aca3a08620ba2fd35494e2 /test/lib/Makefile | |
| parent | eea1c6ec4ead013fcdbc1f4ee1a5f595d58ca303 (diff) | |
test: The LMB test depends on CONFIG_LMB
Many boards use CONFIG_LMB=y but not all, e.g.
amd_versal2_mini_defconfig. Building this board with CONFIG_UNIT_TEST=y
fails:
aarch64-linux-gnu-ld:
test/lib/lmb.c:411:(.text.test_noreserved+0x428):
undefined reference to `lmb_free'
We should be able to enable CONFIG_UNIT_TEST on any board.
With this patch the LMB test is only built if LMB is enabled which
overcomes the build issue.
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'test/lib/Makefile')
| -rw-r--r-- | test/lib/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/Makefile b/test/lib/Makefile index 7c9dc180c8d..f25383a40e5 100644 --- a/test/lib/Makefile +++ b/test/lib/Makefile @@ -16,7 +16,7 @@ obj-$(CONFIG_USE_PRIVATE_LIBGCC) += test_ctz.o endif obj-y += hexdump.o obj-$(CONFIG_SANDBOX) += kconfig.o -obj-y += lmb.o +obj-$(CONFIG_LMB) += lmb.o obj-$(CONFIG_HAVE_SETJMP) += longjmp.o obj-$(CONFIG_SANDBOX) += membuf.o obj-$(CONFIG_HAVE_INITJMP) += initjmp.o |
