summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/Makefile
diff options
context:
space:
mode:
authorMax Filippov2016-12-25 13:58:57 +0100
committerMax Filippov2017-03-01 21:32:50 +0100
commit9a736fcb096b43b68af8329eb12abc8256dceaba (patch)
tree1025c3ae5c1b1b68051a13e2052daee14a1db755 /arch/xtensa/Makefile
parentxtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD (diff)
downloadkernel-qcow2-linux-9a736fcb096b43b68af8329eb12abc8256dceaba.tar.gz
kernel-qcow2-linux-9a736fcb096b43b68af8329eb12abc8256dceaba.tar.xz
kernel-qcow2-linux-9a736fcb096b43b68af8329eb12abc8256dceaba.zip
xtensa: clean up bootable image build targets
Currently xtensa uses 'zImage' as a synonym of 'all', but in fact xtensa supports three targets: 'Image' (ELF image with reset vector), 'zImage' (compressed redboot image) and 'uImage' (U-Boot image). Provide separate 'Image', 'zImage' and 'uImage' make targets that only build corresponding image type. Make 'all' build all images appropriate for a platform. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/Makefile')
-rw-r--r--arch/xtensa/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/xtensa/Makefile b/arch/xtensa/Makefile
index e54189427b31..7ee02fe4a63d 100644
--- a/arch/xtensa/Makefile
+++ b/arch/xtensa/Makefile
@@ -93,11 +93,7 @@ endif
boot := arch/xtensa/boot
-all: zImage
-
-bzImage : zImage
-
-zImage: vmlinux
+all Image zImage uImage: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $@
%.dtb:
@@ -107,6 +103,8 @@ dtbs: scripts
$(Q)$(MAKE) $(build)=$(boot)/dts
define archhelp
+ @echo '* Image - Kernel ELF image with reset vector'
@echo '* zImage - Compressed kernel image (arch/xtensa/boot/images/zImage.*)'
+ @echo '* uImage - U-Boot wrapped image'
@echo ' dtbs - Build device tree blobs for enabled boards'
endef