|
@@ -20,6 +20,7 @@
|
|
all: $(obj)/zImage
|
|
all: $(obj)/zImage
|
|
|
|
|
|
compress-$(CONFIG_KERNEL_GZIP) := CONFIG_KERNEL_GZIP
|
|
compress-$(CONFIG_KERNEL_GZIP) := CONFIG_KERNEL_GZIP
|
|
|
|
+compress-$(CONFIG_KERNEL_XZ) := CONFIG_KERNEL_XZ
|
|
|
|
|
|
BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
BOOTCFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
|
|
-fno-strict-aliasing -Os -msoft-float -pipe \
|
|
-fno-strict-aliasing -Os -msoft-float -pipe \
|
|
@@ -226,6 +227,7 @@ endif
|
|
endif
|
|
endif
|
|
|
|
|
|
compressor-$(CONFIG_KERNEL_GZIP) := gz
|
|
compressor-$(CONFIG_KERNEL_GZIP) := gz
|
|
|
|
+compressor-$(CONFIG_KERNEL_XZ) := xz
|
|
|
|
|
|
# args (to if_changed): 1 = (this rule), 2 = platform, 3 = dts 4=dtb 5=initrd
|
|
# args (to if_changed): 1 = (this rule), 2 = platform, 3 = dts 4=dtb 5=initrd
|
|
quiet_cmd_wrap = WRAP $@
|
|
quiet_cmd_wrap = WRAP $@
|
|
@@ -433,6 +435,7 @@ clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \
|
|
# clean up files cached by wrapper
|
|
# clean up files cached by wrapper
|
|
clean-kernel-base := vmlinux.strip vmlinux.bin
|
|
clean-kernel-base := vmlinux.strip vmlinux.bin
|
|
clean-kernel := $(addsuffix .gz,$(clean-kernel-base))
|
|
clean-kernel := $(addsuffix .gz,$(clean-kernel-base))
|
|
|
|
+clean-kernel += $(addsuffix .xz,$(clean-kernel-base))
|
|
# If not absolute clean-files are relative to $(obj).
|
|
# If not absolute clean-files are relative to $(obj).
|
|
clean-files += $(addprefix $(objtree)/, $(clean-kernel))
|
|
clean-files += $(addprefix $(objtree)/, $(clean-kernel))
|
|
|
|
|