diff options
| author | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-03-12 18:17:24 +1000 |
|---|---|---|
| committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-03-12 18:17:24 +1000 |
| commit | ed56d794c5753fd571f8b505b4d1c305b6e392d1 (patch) | |
| tree | 38622fec1b99c7afe51bc012c5f7cba55b35f181 /recipes-kernel | |
| parent | 4dd0bdb82c362b91a9c1edd8814d64d387b3327d (diff) | |
| download | meta-xilinx-ed56d794c5753fd571f8b505b4d1c305b6e392d1.tar.gz | |
linux-yocto: Add 3.10 support for MicroBlaze and Zynq
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-kernel')
| -rw-r--r-- | recipes-kernel/linux/linux-yocto/ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch | 70 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_3.10.bbappend | 11 |
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 @@ | |||
| 1 | From ec2eba55f0c0e74dd39aca14dcc597583cf1eb67 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jason Wu <huanyu@xilinx.com> | ||
| 3 | Date: Wed, 21 Aug 2013 07:10:32 +0200 | ||
| 4 | Subject: [PATCH] microblaze: Add linux.bin.ub target | ||
| 5 | |||
| 6 | Currently the linux.bin target creates both linux.bin and linux.bin.ub. | ||
| 7 | Add linux.bin.ub as separate target to generate linux.bin.ub. | ||
| 8 | |||
| 9 | Signed-off-by: Jason Wu <huanyu@xilinx.com> | ||
| 10 | Signed-off-by: Michal Simek <michal.simek@xilinx.com> | ||
| 11 | Upstream-Status: Backport | ||
| 12 | --- | ||
| 13 | arch/microblaze/Makefile | 3 ++- | ||
| 14 | arch/microblaze/boot/Makefile | 7 ++++--- | ||
| 15 | 2 files changed, 6 insertions(+), 4 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile | ||
| 18 | index 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' | ||
| 38 | diff --git a/arch/microblaze/boot/Makefile b/arch/microblaze/boot/Makefile | ||
| 39 | index 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 | -- | ||
| 69 | 1.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 | |||
| 2 | require linux-machine-common.inc | ||
| 3 | |||
| 4 | COMPATIBLE_MACHINE_zynq = "zynq" | ||
| 5 | COMPATIBLE_MACHINE_microblaze = "microblaze" | ||
| 6 | |||
| 7 | MACHINE_KCONFIG_append_zynq += "common/linux/zynq/defconfig_3.10.cfg" | ||
| 8 | MACHINE_KCONFIG_append_microblaze += "common/linux/microblaze/defconfig_3.10.cfg" | ||
| 9 | |||
| 10 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" | ||
| 11 | SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch" | ||
