treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / csky / boot / Makefile
blobdbc9b1bd72f0b7d3c986194e9581ab9948810b7b
1 # SPDX-License-Identifier: GPL-2.0-only
2 targets := Image zImage uImage
3 targets += $(dtb-y)
5 $(obj)/Image: vmlinux FORCE
6 $(call if_changed,objcopy)
7 @echo ' Kernel: $@ is ready'
9 compress-$(CONFIG_KERNEL_GZIP) = gzip
10 compress-$(CONFIG_KERNEL_LZO) = lzo
11 compress-$(CONFIG_KERNEL_LZMA) = lzma
12 compress-$(CONFIG_KERNEL_XZ) = xzkern
13 compress-$(CONFIG_KERNEL_LZ4) = lz4
15 $(obj)/zImage: $(obj)/Image FORCE
16 $(call if_changed,$(compress-y))
17 @echo ' Kernel: $@ is ready'
19 UIMAGE_ARCH = sandbox
20 UIMAGE_COMPRESSION = $(compress-y)
21 UIMAGE_LOADADDR = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}')
23 $(obj)/uImage: $(obj)/zImage
24 $(call if_changed,uimage)
25 @echo 'Image: $@ is ready'