From 6e3ba04dbacc1d1d5bcad80f5e554e7fcc51f602 Mon Sep 17 00:00:00 2001 From: Sipke Vriend Date: Thu, 18 Jul 2013 13:10:32 +1000 Subject: linux-yocto: add kc705-trd as target machine. Add kc705-trd as compatible machine to linux-yocto recipe. Add standard kernel type fragments for kc705-trd. Signed-off-by: Sipke Vriend --- .../linux/linux-yocto/kc705-trd-standard.scc | 9 +++++ recipes-kernel/linux/linux-yocto/kc705-trd.cfg | 10 ++++++ .../linux/linux-yocto/microblaze-standard.scc | 39 ++++++++++++++++++++++ recipes-kernel/linux/linux-yocto_3.8.bbappend | 5 ++- 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/linux-yocto/kc705-trd-standard.scc create mode 100644 recipes-kernel/linux/linux-yocto/kc705-trd.cfg create mode 100644 recipes-kernel/linux/linux-yocto/microblaze-standard.scc diff --git a/recipes-kernel/linux/linux-yocto/kc705-trd-standard.scc b/recipes-kernel/linux/linux-yocto/kc705-trd-standard.scc new file mode 100644 index 00000000..304a6fab --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/kc705-trd-standard.scc @@ -0,0 +1,9 @@ +define KMACHINE kc705-trd +define KTYPE standard +define KARCH microblaze + +include ktypes/standard +branch meta + +include microblaze-standard.scc +kconf hardware kc705-trd.cfg diff --git a/recipes-kernel/linux/linux-yocto/kc705-trd.cfg b/recipes-kernel/linux/linux-yocto/kc705-trd.cfg new file mode 100644 index 00000000..486dc147 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/kc705-trd.cfg @@ -0,0 +1,10 @@ +# Would be nice to split these and select based on microblaze tunes? +CONFIG_XILINX_MICROBLAZE0_FAMILY="kintex7" +CONFIG_XILINX_MICROBLAZE0_USE_MSR_INSTR=1 +CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR=1 +CONFIG_XILINX_MICROBLAZE0_USE_BARREL=1 +CONFIG_XILINX_MICROBLAZE0_USE_DIV=0 +CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL=1 +CONFIG_XILINX_MICROBLAZE0_USE_FPU=0 +CONFIG_XILINX_MICROBLAZE0_HW_VER="8.50.a" +CONFIG_KERNEL_BASE_ADDR=0x80000000 \ No newline at end of file diff --git a/recipes-kernel/linux/linux-yocto/microblaze-standard.scc b/recipes-kernel/linux/linux-yocto/microblaze-standard.scc new file mode 100644 index 00000000..062fb336 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto/microblaze-standard.scc @@ -0,0 +1,39 @@ + +# Microblaze common configurations +include cfg/8250.scc +include cfg/efi-ext.scc +include cfg/fs/devtmpfs.scc +include cfg/fs/ext2.scc +include cfg/fs/ext3.scc +include cfg/fs/flash_fs.scc +include cfg/net/ipsec6.scc +include cfg/net/ipsec.scc +include cfg/timer/hz_1000.scc +include cfg/timer/hz_100.scc +include cfg/timer/hz_250.scc +include cfg/timer/no_hz.scc + +# Don't include features, as user can do this? +features/edf/edf.cfg +features/eg20t/eg20t.cfg +features/hrt/hrt.cfg +features/mac80211/mac80211.cfg +features/systemtap/systemtap.cfg +features/uio/uio.cfg + +# These are in xilinx kernel cache... +include cfg/eeprom.scc +include cfg/mtd.scc +include cfg/xilinx/devicetree.scc +include cfg/xilinx/ethernet.scc +include cfg/xilinx/firewire.scc +include cfg/xilinx/gpio.scc +include cfg/xilinx/hid.scc +include cfg/xilinx/scsi.scc +include cfg/xilinx/spi.scc +include cfg/uio-irq.scc +include cfg/fs/flash_fs.scc + +include cfg/microblaze/debug.scc + +include cfg/microblaze/microblaze-arch.scc diff --git a/recipes-kernel/linux/linux-yocto_3.8.bbappend b/recipes-kernel/linux/linux-yocto_3.8.bbappend index 9d509438..5c76548c 100644 --- a/recipes-kernel/linux/linux-yocto_3.8.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.8.bbappend @@ -2,6 +2,9 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" +# MicroBlaze is a uImage target, but its not called 'uImage' +DEPENDS_append_microblaze += "u-boot-mkimage-native" + SRC_URI_append += " \ file://xilinx-v14.5_modifications_to_v3.8.scc \ file://microblaze-patches_v3.8.scc \ @@ -11,4 +14,4 @@ SRC_URI_append += " \ SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/" SRCREV_externalcache = "${AUTOREV}" -COMPATIBLE_MACHINE = "zedboard|zc702" +COMPATIBLE_MACHINE = "zedboard|zc702|kc705-trd" -- cgit v1.2.3-54-g00ecf