Merge tag 'm68k-for-v4.20-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / csky / boot / Makefile
1 targets := Image zImage uImage
2 targets += $(dtb-y)
3
4 $(obj)/Image: vmlinux FORCE
5         $(call if_changed,objcopy)
6         @echo '  Kernel: $@ is ready'
7
8 compress-$(CONFIG_KERNEL_GZIP) = gzip
9 compress-$(CONFIG_KERNEL_LZO)  = lzo
10 compress-$(CONFIG_KERNEL_LZMA) = lzma
11 compress-$(CONFIG_KERNEL_XZ)   = xzkern
12 compress-$(CONFIG_KERNEL_LZ4)  = lz4
13
14 $(obj)/zImage:  $(obj)/Image FORCE
15         $(call if_changed,$(compress-y))
16         @echo '  Kernel: $@ is ready'
17
18 UIMAGE_ARCH             = sandbox
19 UIMAGE_COMPRESSION      = $(compress-y)
20 UIMAGE_LOADADDR         = $(shell $(NM) vmlinux | awk '$$NF == "_start" {print $$1}')
21
22 $(obj)/uImage: $(obj)/zImage
23         $(call if_changed,uimage)
24         @echo 'Image: $@ is ready'