mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-01-10 19:21:58 +01:00
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 <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2018
|
|
# Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
|
|
|
|
obj-$(CONFIG_$(PHASE_)UT_COMPRESSION) += compression.o
|
|
|
|
ifeq ($(CONFIG_XPL_BUILD),)
|
|
obj-y += abuf.o
|
|
obj-y += alist.o
|
|
obj-$(CONFIG_EFI_LOADER) += efi_device_path.o efi_memory.o
|
|
obj-$(CONFIG_EFI_SECURE_BOOT) += efi_image_region.o
|
|
ifdef CONFIG_RISCV
|
|
obj-$(CONFIG_USE_PRIVATE_LIBGCC) += test_clz.o
|
|
obj-$(CONFIG_USE_PRIVATE_LIBGCC) += test_ctz.o
|
|
endif
|
|
obj-y += hexdump.o
|
|
obj-$(CONFIG_SANDBOX) += kconfig.o
|
|
obj-$(CONFIG_LMB) += lmb.o
|
|
obj-$(CONFIG_HAVE_SETJMP) += longjmp.o
|
|
obj-$(CONFIG_SANDBOX) += membuf.o
|
|
obj-$(CONFIG_HAVE_INITJMP) += initjmp.o
|
|
obj-$(CONFIG_CONSOLE_RECORD) += test_print.o
|
|
obj-$(CONFIG_SSCANF) += sscanf.o
|
|
obj-$(CONFIG_$(PHASE_)STRTO) += str.o
|
|
obj-y += string.o
|
|
obj-y += strlcat.o
|
|
obj-$(CONFIG_ERRNO_STR) += test_errno_str.o
|
|
obj-$(CONFIG_UT_LIB_ASN1) += asn1.o
|
|
obj-$(CONFIG_UT_LIB_RSA) += rsa.o
|
|
obj-$(CONFIG_AES) += test_aes.o
|
|
obj-$(CONFIG_SHA256) += test_sha256_hmac.o
|
|
obj-$(CONFIG_HKDF_MBEDTLS) += test_sha256_hkdf.o
|
|
obj-$(CONFIG_GETOPT) += getopt.o
|
|
obj-$(CONFIG_CRC8) += test_crc8.o
|
|
obj-$(CONFIG_REGEX) += slre.o
|
|
obj-$(CONFIG_UT_LIB_CRYPT) += test_crypt.o
|
|
obj-$(CONFIG_UT_TIME) += time.o
|
|
obj-$(CONFIG_$(PHASE_)UT_UNICODE) += unicode.o
|
|
obj-$(CONFIG_UTHREAD) += uthread.o
|
|
obj-$(CONFIG_LIB_UUID) += uuid.o
|
|
else
|
|
obj-$(CONFIG_SANDBOX) += kconfig_spl.o
|
|
endif
|