summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2014-03-12 18:17:24 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2014-03-12 18:17:24 +1000
commited56d794c5753fd571f8b505b4d1c305b6e392d1 (patch)
tree38622fec1b99c7afe51bc012c5f7cba55b35f181
parent4dd0bdb82c362b91a9c1edd8814d64d387b3327d (diff)
downloadmeta-xilinx-ed56d794c5753fd571f8b505b4d1c305b6e392d1.tar.gz
linux-yocto: Add 3.10 support for MicroBlaze and Zynq
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r--recipes-kernel/linux/linux-yocto/ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch70
-rw-r--r--recipes-kernel/linux/linux-yocto_3.10.bbappend11
2 files changed, 81 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto/ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch b/recipes-kernel/linux/linux-yocto/ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch
new file mode 100644
index 00000000..de2df302
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch
@@ -0,0 +1,70 @@
1From ec2eba55f0c0e74dd39aca14dcc597583cf1eb67 Mon Sep 17 00:00:00 2001
2From: Jason Wu <huanyu@xilinx.com>
3Date: Wed, 21 Aug 2013 07:10:32 +0200
4Subject: [PATCH] microblaze: Add linux.bin.ub target
5
6Currently the linux.bin target creates both linux.bin and linux.bin.ub.
7Add linux.bin.ub as separate target to generate linux.bin.ub.
8
9Signed-off-by: Jason Wu <huanyu@xilinx.com>
10Signed-off-by: Michal Simek <michal.simek@xilinx.com>
11Upstream-Status: Backport
12---
13 arch/microblaze/Makefile | 3 ++-
14 arch/microblaze/boot/Makefile | 7 ++++---
15 2 files changed, 6 insertions(+), 4 deletions(-)
16
17diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile
18index 0a603d3..40350a3 100644
19--- a/arch/microblaze/Makefile
20+++ b/arch/microblaze/Makefile
21@@ -72,7 +72,7 @@ all: linux.bin
22 archclean:
23 $(Q)$(MAKE) $(clean)=$(boot)
24
25-linux.bin linux.bin.gz: vmlinux
26+linux.bin linux.bin.gz linux.bin.ub: vmlinux
27 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
28
29 simpleImage.%: vmlinux
30@@ -81,6 +81,7 @@ simpleImage.%: vmlinux
31 define archhelp
32 echo '* linux.bin - Create raw binary'
33 echo ' linux.bin.gz - Create compressed raw binary'
34+ echo ' linux.bin.ub - Create U-Boot wrapped raw binary'
35 echo ' simpleImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
36 echo ' - stripped elf with fdt blob'
37 echo ' simpleImage.<dt>.unstrip - full ELF image with fdt blob'
38diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
39index 80fe54f..8e211cc 100644
40--- a/arch/microblaze/boot/Makefile
41+++ b/arch/microblaze/boot/Makefile
42@@ -2,12 +2,15 @@
43 # arch/microblaze/boot/Makefile
44 #
45
46-targets := linux.bin linux.bin.gz simpleImage.%
47+targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
48
49 OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
50
51 $(obj)/linux.bin: vmlinux FORCE
52 $(call if_changed,objcopy)
53+ @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
54+
55+$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
56 $(call if_changed,uimage)
57 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
58
59@@ -22,8 +25,6 @@ quiet_cmd_strip = STRIP $@
60 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
61 -K _fdt_start vmlinux -o $@
62
63-UIMAGE_IN = $@
64-UIMAGE_OUT = $@.ub
65 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
66
67 $(obj)/simpleImage.%: vmlinux FORCE
68--
691.8.5.5
70
diff --git a/recipes-kernel/linux/linux-yocto_3.10.bbappend b/recipes-kernel/linux/linux-yocto_3.10.bbappend
new file mode 100644
index 00000000..4990ae67
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto_3.10.bbappend
@@ -0,0 +1,11 @@
1
2require linux-machine-common.inc
3
4COMPATIBLE_MACHINE_zynq = "zynq"
5COMPATIBLE_MACHINE_microblaze = "microblaze"
6
7MACHINE_KCONFIG_append_zynq += "common/linux/zynq/defconfig_3.10.cfg"
8MACHINE_KCONFIG_append_microblaze += "common/linux/microblaze/defconfig_3.10.cfg"
9
10FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:"
11SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch"