Makefile.lib (5b9b2e6baf9ed944a97d5a29c3386ac79937e8fc) | Makefile.lib (7a23b027ec17b2eb9c8ad9b09006502f3fa38215) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# Backward compatibility 3asflags-y += $(EXTRA_AFLAGS) 4ccflags-y += $(EXTRA_CFLAGS) 5cppflags-y += $(EXTRA_CPPFLAGS) 6ldflags-y += $(EXTRA_LDFLAGS) 7 8# flags that take effect in current and sub directories --- 490 unchanged lines hidden (view full) --- 499 500quiet_cmd_uimage = UIMAGE $@ 501 cmd_uimage = $(BASH) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \ 502 -C $(UIMAGE_COMPRESSION) $(UIMAGE_OPTS-y) \ 503 -T $(UIMAGE_TYPE) \ 504 -a $(UIMAGE_LOADADDR) -e $(UIMAGE_ENTRYADDR) \ 505 -n '$(UIMAGE_NAME)' -d $< $@ 506 | 1# SPDX-License-Identifier: GPL-2.0 2# Backward compatibility 3asflags-y += $(EXTRA_AFLAGS) 4ccflags-y += $(EXTRA_CFLAGS) 5cppflags-y += $(EXTRA_CPPFLAGS) 6ldflags-y += $(EXTRA_LDFLAGS) 7 8# flags that take effect in current and sub directories --- 490 unchanged lines hidden (view full) --- 499 500quiet_cmd_uimage = UIMAGE $@ 501 cmd_uimage = $(BASH) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \ 502 -C $(UIMAGE_COMPRESSION) $(UIMAGE_OPTS-y) \ 503 -T $(UIMAGE_TYPE) \ 504 -a $(UIMAGE_LOADADDR) -e $(UIMAGE_ENTRYADDR) \ 505 -n '$(UIMAGE_NAME)' -d $< $@ 506 |
507# Flat Image Tree (FIT) 508# This allows for packaging of a kernel and all devicetrees files, using 509# compression. 510# --------------------------------------------------------------------------- 511 512MAKE_FIT := $(srctree)/scripts/make_fit.py 513 514# Use this to override the compression algorithm 515FIT_COMPRESSION ?= gzip 516 517quiet_cmd_fit = FIT $@ 518 cmd_fit = $(MAKE_FIT) -o $@ --arch $(UIMAGE_ARCH) --os linux \ 519 --name '$(UIMAGE_NAME)' \ 520 $(if $(findstring 1,$(KBUILD_VERBOSE)),-v) \ 521 --compress $(FIT_COMPRESSION) -k $< @$(word 2,$^) 522 |
|
507# XZ 508# --------------------------------------------------------------------------- 509# Use xzkern to compress the kernel image and xzmisc to compress other things. 510# 511# xzkern uses a big LZMA2 dictionary since it doesn't increase memory usage 512# of the kernel decompressor. A BCJ filter is used if it is available for 513# the target architecture. xzkern also appends uncompressed size of the data 514# using size_append. The .xz format has the size information available at --- 73 unchanged lines hidden --- | 523# XZ 524# --------------------------------------------------------------------------- 525# Use xzkern to compress the kernel image and xzmisc to compress other things. 526# 527# xzkern uses a big LZMA2 dictionary since it doesn't increase memory usage 528# of the kernel decompressor. A BCJ filter is used if it is available for 529# the target architecture. xzkern also appends uncompressed size of the data 530# using size_append. The .xz format has the size information available at --- 73 unchanged lines hidden --- |