[PATCH 2/3] makefile: Consider "no relocs" to be "no unexpected relocs"

Sam Edwards cfsworks at gmail.com
Sat May 13 01:01:34 CEST 2023


Signed-off-by: Sam Edwards <CFSworks at gmail.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 22bdc30109..20785860f7 100644
--- a/Makefile
+++ b/Makefile
@@ -2109,7 +2109,8 @@ System.map:	u-boot
 checkarmreloc: u-boot
 	@RELOC="`$(CROSS_COMPILE)readelf -r -W $< | cut -d ' ' -f 4 | \
 		grep R_A | sort -u`"; \
-	if test "$$RELOC" != "R_ARM_RELATIVE" -a \
+	if test -n "$$RELOC" -a \
+		 "$$RELOC" != "R_ARM_RELATIVE" -a \
 		 "$$RELOC" != "R_AARCH64_RELATIVE"; then \
 		echo "$< contains unexpected relocations: $$RELOC"; \
 		false; \
-- 
2.39.2



More information about the U-Boot mailing list