diff mbox series

[1/1] test: undefined reference to 'sscanf'

Message ID 20200821015617.76247-1-xypron.glpk@gmx.de
State Accepted
Commit 4431a9889c67f76e66aa99fb9ad9e10c014e268f
Delegated to: Tom Rini
Headers show
Series [1/1] test: undefined reference to 'sscanf' | expand

Commit Message

Heinrich Schuchardt Aug. 21, 2020, 1:56 a.m. UTC
Compiling with CONFIG_UNIT_TEST=y leads to:

aarch64-linux-gnu-ld.bfd:
test/lib/sscanf.c:50: undefined reference to `sscanf'

Add missing build dependency.

Fixes:e87dfb0526be ("lib: sscanf: add sscanf implementation")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 test/lib/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.28.0

Comments

Tom Rini Aug. 28, 2020, 12:53 p.m. UTC | #1
On Fri, Aug 21, 2020 at 03:56:17AM +0200, Heinrich Schuchardt wrote:

> Compiling with CONFIG_UNIT_TEST=y leads to:
> 
> aarch64-linux-gnu-ld.bfd:
> test/lib/sscanf.c:50: undefined reference to `sscanf'
> 
> Add missing build dependency.
> 
> Fixes:e87dfb0526be ("lib: sscanf: add sscanf implementation")
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/test/lib/Makefile b/test/lib/Makefile
index b6a0a208c5..f81741f2a4 100644
--- a/test/lib/Makefile
+++ b/test/lib/Makefile
@@ -6,7 +6,7 @@  obj-y += cmd_ut_lib.o
 obj-$(CONFIG_EFI_SECURE_BOOT) += efi_image_region.o
 obj-y += hexdump.o
 obj-y += lmb.o
-obj-y += sscanf.o
+obj-$(CONFIG_SSCANF) += sscanf.o
 obj-y += string.o
 obj-$(CONFIG_ERRNO_STR) += test_errno_str.o
 obj-$(CONFIG_UT_LIB_ASN1) += asn1.o