From 5ff6bf30d8bc08eb2b8e0542d31610d94023b6dd Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Thu, 22 Feb 2024 16:23:20 -0700 Subject: util/amdfwtool: build amdfwtool only for all tools or AMD CPUs When we're building non-AMD processors, don't bother building amdfwtool unless we're specifically building all of the tools like for abuild. Change-Id: I9021674a06d65a79e24020790d317ab947c505fe Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/c/coreboot/+/80714 Reviewed-by: Felix Singer Reviewed-by: Nico Huber Tested-by: build bot (Jenkins) --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4a87d2f549..412d6a678a 100644 --- a/Makefile +++ b/Makefile @@ -141,6 +141,12 @@ NOCOMPILE:= endif endif +# When building the "tools" target, the BUILD_ALL_TOOLS variable needs +# to be set before reading the tools' Makefiles +ifneq ($(filter tools, $(MAKECMDGOALS)), ) +BUILD_ALL_TOOLS:=1 +endif + $(xcompile): util/xcompile/xcompile rm -f $@ $< $(XGCCPATH) > $@.tmp -- cgit v1.2.3