Skip to content

Commit 0dc1670

Browse files
sjg20willdeacon
authored andcommitted
arm64: Add BOOT_TARGETS variable
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>
1 parent fec50db commit 0dc1670

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

arch/arm64/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
154154
# Default target when executing plain make
155155
boot := arch/arm64/boot
156156

157+
BOOT_TARGETS := Image vmlinuz.efi
158+
159+
PHONY += $(BOOT_TARGETS)
160+
157161
ifeq ($(CONFIG_EFI_ZBOOT),)
158162
KBUILD_IMAGE := $(boot)/Image.gz
159163
else
@@ -163,7 +167,7 @@ endif
163167
all: $(notdir $(KBUILD_IMAGE))
164168

165169
vmlinuz.efi: Image
166-
Image vmlinuz.efi: vmlinux
170+
$(BOOT_TARGETS): vmlinux
167171
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
168172

169173
Image.%: Image

0 commit comments

Comments
 (0)