]> www.infradead.org Git - users/hch/block.git/commitdiff
arm64: Add BOOT_TARGETS variable
authorSimon Glass <sjg@chromium.org>
Fri, 29 Mar 2024 03:28:35 +0000 (16:28 +1300)
committerWill Deacon <will@kernel.org>
Fri, 12 Apr 2024 14:48:32 +0000 (15:48 +0100)
Add a new variable containing a list of possible targets. Mark them as
phony. This matches the approach taken for arch/arm

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
Link: https://lore.kernel.org/r/20240329032836.141899-2-sjg@chromium.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Makefile

index 0e075d3c546b4820c1559a3811eb7c9fdebd2f4a..1217d97998ac2dcb3270837ec10b171339d1f8e8 100644 (file)
@@ -154,6 +154,10 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
 # Default target when executing plain make
 boot           := arch/arm64/boot
 
+BOOT_TARGETS   := Image vmlinuz.efi
+
+PHONY += $(BOOT_TARGETS)
+
 ifeq ($(CONFIG_EFI_ZBOOT),)
 KBUILD_IMAGE   := $(boot)/Image.gz
 else
@@ -163,7 +167,7 @@ endif
 all:   $(notdir $(KBUILD_IMAGE))
 
 vmlinuz.efi: Image
-Image vmlinuz.efi: vmlinux
+$(BOOT_TARGETS): vmlinux
        $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
 Image.%: Image