From 634c7d8172b7965cf4f5d7d6470a25956ac06ab4 Mon Sep 17 00:00:00 2001 From: Vincent Jardin Date: Thu, 13 Mar 2025 01:12:46 +0100 Subject: [PATCH] fix(nxp-tools): fix create_pbl buildroot build When building with Buildroot environment, the rule to build the object is not used from the Makefile but from another one with a higher priority. It leads to the following error: Built fiptool successfully EL3 Runtime Firmware BL31: offset=0x88, size=0xE401, cmdline="--soc-fw" Non-Trusted Firmware BL33: offset=0xE489, size=0xD1438, cmdline="--nt-fw" Wall -Werror -pedantic -std=c99 -O2 -DVERSION='"v2.12.0(release):master"' -D_GNU_SOURCE -D_XOPEN_SOURCE=700 -c -o create_pbl.o create_pbl.c make[3]: Wall: No such file or directory Let's be explicit in order to enforce the local rule. There is not .h file so it should be removed from the dependency list in oder to avoid such error: make[3]: *** No rule to make target 'create_pbl.h', needed by 'create_pbl.o'. Stop. Change-Id: Idec378c5688e332695d805f3fca2800d905a1c74 Signed-off-by: Vincent Jardin --- tools/nxp/create_pbl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nxp/create_pbl/Makefile b/tools/nxp/create_pbl/Makefile index 965cc510a..cd2ccc18d 100644 --- a/tools/nxp/create_pbl/Makefile +++ b/tools/nxp/create_pbl/Makefile @@ -44,7 +44,7 @@ ${PROJECT_2}: ${OBJECTS_2} Makefile $(s)echo "Built $@ successfully" $(s)echo -%.o: %.c %.h Makefile ++${OBJECTS_1} ${OBJECTS_2}: %.o: %.c Makefile $(s)echo " CC $<" $(q)$(host-cc) -c ${CPPFLAGS} ${CFLAGS} ${INCLUDE_PATHS} $< -o $@