Merge "arm64: msm: Add support for uncompressed kernel image"

This commit is contained in:
qctecmdr 2019-07-31 18:17:41 -07:00 • committed by Gerrit - the friendly Code Review server
commit a522776264
2 changed files with 34 additions and 3 deletions

View file

@ -1591,6 +1591,32 @@ config DMI
endmenu
choice
prompt "Kernel compression method"
default BUILD_ARM64_KERNEL_COMPRESSION_GZIP
help
Allows choice between gzip compressed or uncompressed
kernel image. Decision is based on whether the bootloader
can handle (un)compressed kernel images. Most BLs are capable
of decomprssing kernel images and this is the default choice.
config BUILD_ARM64_KERNEL_COMPRESSION_GZIP
bool "Build compressed kernel image"
help
Build a kernel image using gzip
compression. gzip is based on the DEFLATE
algorithm. Check if your bootloader is
capable of decompressing images.
config BUILD_ARM64_UNCOMPRESSED_KERNEL
bool "Build uncompressed kernel image"
help
Build a kernel image without
compression. An uncompressed kernel
image may improve performance in
certain situations.
endchoice
config SYSVIPC_COMPAT
def_bool y
depends on COMPAT && SYSVIPC

View file

@ -135,12 +135,17 @@ core-$(CONFIG_CRYPTO) += arch/arm64/crypto/
libs-y := arch/arm64/lib/ $(libs-y)
core-$(CONFIG_EFI_STUB) += $(objtree)/drivers/firmware/efi/libstub/lib.a
ifeq ($(CONFIG_BUILD_ARM64_KERNEL_COMPRESSION_GZIP),y)
KBUILD_TARGET := Image.gz
else
KBUILD_TARGET := Image
endif
# Default target when executing plain make
boot := arch/arm64/boot
KBUILD_IMAGE := $(boot)/Image.gz
all: Image.gz
KBUILD_IMAGE := $(boot)/$(KBUILD_TARGET)
all: $(KBUILD_TARGET)
Image: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@