]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xtensa: add U-Boot image support (uImage).
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 5 Nov 2012 03:36:00 +0000 (07:36 +0400)
committerChris Zankel <chris@zankel.net>
Wed, 19 Dec 2012 05:10:23 +0000 (21:10 -0800)
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/boot/Makefile
arch/xtensa/boot/boot-uboot/Makefile [new file with mode: 0644]

index 4453859ebc78fd09d6fce6dc384974f434caf500..ff974fc2935b468dc539c0d74aea745d773a307b 100644 (file)
@@ -22,7 +22,7 @@ subdir-y      := lib
 # Subdirs for the boot loader(s)
 
 bootdir-$(CONFIG_XTENSA_PLATFORM_ISS)   += boot-elf
-bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf
+bootdir-$(CONFIG_XTENSA_PLATFORM_XT2000) += boot-redboot boot-elf boot-uboot
 
 
 zImage Image: $(bootdir-y)
@@ -41,3 +41,4 @@ vmlinux.bin.gz: vmlinux.bin FORCE
 
 boot-elf: vmlinux.bin
 boot-redboot: vmlinux.bin.gz
+boot-uboot: vmlinux.bin.gz
diff --git a/arch/xtensa/boot/boot-uboot/Makefile b/arch/xtensa/boot/boot-uboot/Makefile
new file mode 100644 (file)
index 0000000..bfbf8af
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# This file is subject to the terms and conditions of the GNU General Public
+# License.  See the file "COPYING" in the main directory of this archive
+# for more details.
+#
+
+UIMAGE_LOADADDR = 0xd0001000
+UIMAGE_COMPRESSION = gzip
+
+$(obj)/../uImage: vmlinux.bin.gz FORCE
+       $(call if_changed,uimage)
+       $(Q)$(kecho) '  Kernel: $@ is ready'
+
+zImage: $(obj)/../uImage