summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2013-05-30 17:37:23 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2013-05-30 18:57:12 +1000
commit474aab71f55f4f13f65de5afe9d643290244fb40 (patch)
tree1126ddc1f007c1aa546dfe825d49ab787623feff /recipes-kernel
parentdaecf56e90061d1fb85f1594e9e9c75cd1678958 (diff)
downloadmeta-xilinx-474aab71f55f4f13f65de5afe9d643290244fb40.tar.gz
linux-xlnx: Add support for MicroBlaze 'linux.bin.ub' make target
* Added patch which separates 'linux.bin.ub' from the 'linux.bin' MicroBlaze makefile target. Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-xlnx/arch_microblaze_Add_linux.bin.ub_target.patch62
-rw-r--r--recipes-kernel/linux/linux-xlnx_3.8.bb1
2 files changed, 63 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-xlnx/arch_microblaze_Add_linux.bin.ub_target.patch b/recipes-kernel/linux/linux-xlnx/arch_microblaze_Add_linux.bin.ub_target.patch
new file mode 100644
index 00000000..43b184db
--- /dev/null
+++ b/recipes-kernel/linux/linux-xlnx/arch_microblaze_Add_linux.bin.ub_target.patch
@@ -0,0 +1,62 @@
1From: Jason Wu <huanyu@xilinx.com>
2Subject: arch:microblaze: Add linux.bin.ub target
3
4Currently the linux.bin target creates both linux.bin and linux.bin.ub.
5Add linux.bin.ub as separate target to generate linux.bin.ub.
6
7Signed-off-by: Jason Wu <huanyu@xilinx.com>
8Upstream-Status: Pending
9---
10diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile
11index 0a603d3..40350a3 100644
12--- a/arch/microblaze/Makefile
13+++ b/arch/microblaze/Makefile
14@@ -72,7 +72,7 @@ all: linux.bin
15 archclean:
16 $(Q)$(MAKE) $(clean)=$(boot)
17
18-linux.bin linux.bin.gz: vmlinux
19+linux.bin linux.bin.gz linux.bin.ub: vmlinux
20 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
21
22 simpleImage.%: vmlinux
23@@ -81,6 +81,7 @@ simpleImage.%: vmlinux
24 define archhelp
25 echo '* linux.bin - Create raw binary'
26 echo ' linux.bin.gz - Create compressed raw binary'
27+ echo ' linux.bin.ub - Create U-Boot wrapped raw binary'
28 echo ' simpleImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
29 echo ' - stripped elf with fdt blob'
30 echo ' simpleImage.<dt>.unstrip - full ELF image with fdt blob'
31diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile
32index 80fe54f..8e211cc 100644
33--- a/arch/microblaze/boot/Makefile
34+++ b/arch/microblaze/boot/Makefile
35@@ -2,12 +2,15 @@
36 # arch/microblaze/boot/Makefile
37 #
38
39-targets := linux.bin linux.bin.gz simpleImage.%
40+targets := linux.bin linux.bin.gz linux.bin.ub simpleImage.%
41
42 OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
43
44 $(obj)/linux.bin: vmlinux FORCE
45 $(call if_changed,objcopy)
46+ @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
47+
48+$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
49 $(call if_changed,uimage)
50 @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
51
52@@ -22,8 +25,6 @@ quiet_cmd_strip = STRIP $@
53 cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
54 -K _fdt_start vmlinux -o $@
55
56-UIMAGE_IN = $@
57-UIMAGE_OUT = $@.ub
58 UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
59
60 $(obj)/simpleImage.%: vmlinux FORCE
61--
621.7.3.2
diff --git a/recipes-kernel/linux/linux-xlnx_3.8.bb b/recipes-kernel/linux/linux-xlnx_3.8.bb
index bdcc47a7..e41e27fc 100644
--- a/recipes-kernel/linux/linux-xlnx_3.8.bb
+++ b/recipes-kernel/linux/linux-xlnx_3.8.bb
@@ -10,4 +10,5 @@ SRC_URI_append = " \
10 file://microblaze_Do_not_use_r6_in_head.S.patch \ 10 file://microblaze_Do_not_use_r6_in_head.S.patch \
11 file://microblaze_Fix_free_init_pages_function.patch \ 11 file://microblaze_Fix_free_init_pages_function.patch \
12 file://microblaze_Fix_initrd_support.patch \ 12 file://microblaze_Fix_initrd_support.patch \
13 file://arch_microblaze_Add_linux.bin.ub_target.patch \
13 " 14 "