mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
ANDROID: Don't add image to all target with KBUILD_MIXED_TREE
When KBUILD_MIXED_TREE is set, vmlinux and related images come from an out-of-tree location and vmlinux shouldn't be compiled. arch/arm64 and arch/x86 add the default Images to all target, so remove that default behavior when KBUILD_MIXED_TREE is set. This when an out-of-tree module, e.g. virtual-device, runs "make all" instead of "make modules". Bug: 178469391 Change-Id: I8c43d5d66a8bf6ed27f91df7e173399d4f4a23c0 Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
This commit is contained in:
parent
1592e43590
commit
26a8c2ab13
|
|
@ -157,7 +157,10 @@ libs-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
|
||||||
boot := arch/arm64/boot
|
boot := arch/arm64/boot
|
||||||
KBUILD_IMAGE := $(boot)/Image.gz
|
KBUILD_IMAGE := $(boot)/Image.gz
|
||||||
|
|
||||||
|
# Don't compile Image in mixed build with "all" target
|
||||||
|
ifndef KBUILD_MIXED_TREE
|
||||||
all: Image.gz
|
all: Image.gz
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
Image: vmlinux
|
Image: vmlinux
|
||||||
|
|
|
||||||
|
|
@ -262,8 +262,11 @@ BOOT_TARGETS = bzdisk fdimage fdimage144 fdimage288 isoimage
|
||||||
|
|
||||||
PHONY += bzImage $(BOOT_TARGETS)
|
PHONY += bzImage $(BOOT_TARGETS)
|
||||||
|
|
||||||
|
# Don't compile Image in mixed build with "all" target
|
||||||
|
ifndef KBUILD_MIXED_TREE
|
||||||
# Default kernel to build
|
# Default kernel to build
|
||||||
all: bzImage
|
all: bzImage
|
||||||
|
endif
|
||||||
|
|
||||||
# KBUILD_IMAGE specify target image being built
|
# KBUILD_IMAGE specify target image being built
|
||||||
KBUILD_IMAGE := $(boot)/bzImage
|
KBUILD_IMAGE := $(boot)/bzImage
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user