summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2025-06-11 23:24:38 +0300
committerTom Rini <trini@konsulko.com>2025-06-11 16:21:36 -0600
commit4a247d1376302ebdb05af3a15a1788b987d53a1a (patch)
tree7f2574261a34e9a9bad2240def37674eb7dd15d2
parent27529f1cb02d8a55ce8de594f15a8d9e7aec0bb8 (diff)
kbuild: mark prepare0 as PHONY to fix external module build
Backported from kernel commit e00d88804814 ("kbuild: mark prepare0 as PHONY to fix external module build") Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4e339ef4bb9..a31e89d7749 100644
--- a/Makefile
+++ b/Makefile
@@ -1739,6 +1739,7 @@ u-boot.elf: u-boot.bin u-boot-elf.lds
u-boot-elf.lds: arch/u-boot-elf.lds prepare FORCE
$(call if_changed_dep,cpp_lds)
+PHONY += prepare0
# MediaTek's ARM-based u-boot needs a header to contains its load address
# which is parsed by the BootROM.
# If the SPL build is enabled, the header will be added to the spl binary,
@@ -1950,7 +1951,7 @@ include/config/uboot.release: include/config/auto.conf FORCE
# version.h and scripts_basic is processed / created.
# Listed in dependency order
-PHONY += prepare archprepare prepare0 prepare1 prepare3
+PHONY += prepare archprepare prepare1 prepare3
# prepare3 is used to check if we are building in a separate output directory,
# and if so do: