From d233b6c9036f6b9105e31072a30df137c162479e Mon Sep 17 00:00:00 2001 From: Maximilian Brune Date: Sun, 25 May 2025 11:09:33 +0200 Subject: [PATCH] payloads/external/LinuxBoot/Makefile: Fix build prerequisite Sometimes during build you could get this error: mkdir: cannot create directory 'build': File exists make[1]: *** [Makefile:48: build] Error 1 make: *** [payloads/external/Makefile.mk:408: payloads/external/LinuxBoot/build/initramfs] Erro make: *** Waiting for unfinished jobs.... Test 6.3 WWW https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.3.tar.xz Usually this should not happen, because the 'build' target is an order-only prerequisite, but I assume its still happening, because the makefile is called twice during a Linuxboot build. Once for the Linux kernel and once again for the initramfs. A quick and dirty fix is to add a '-p' to the mkdir command. Signed-off-by: Maximilian Brune Change-Id: I5663d1cb592bec6a8576347dd22223b382cd617f Reviewed-on: https://review.coreboot.org/c/coreboot/+/87821 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- payloads/external/LinuxBoot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/external/LinuxBoot/Makefile b/payloads/external/LinuxBoot/Makefile index c56e9fc635..64a8e1c331 100644 --- a/payloads/external/LinuxBoot/Makefile +++ b/payloads/external/LinuxBoot/Makefile @@ -45,7 +45,7 @@ else endif build/: - mkdir build + mkdir -p build clean: rm -rf build/kernel*