summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2013-07-30 17:30:40 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2013-07-30 17:30:40 +1000
commit5272a8a7e3327d0e12658ef0d3939dbb8dece378 (patch)
tree45e4d7a831c9c30618c303ada155ad5a257af728 /recipes-kernel
parent77d200eb81997059e1e906a5903418ed55ab4d79 (diff)
downloadmeta-xilinx-5272a8a7e3327d0e12658ef0d3939dbb8dece378.tar.gz
linux-xlnx: Split out common platform definitions
* Split platform definitions out into linux-machine-common.inc Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-machine-common.inc10
-rw-r--r--recipes-kernel/linux/linux-xlnx.inc9
2 files changed, 11 insertions, 8 deletions
diff --git a/recipes-kernel/linux/linux-machine-common.inc b/recipes-kernel/linux/linux-machine-common.inc
new file mode 100644
index 00000000..6d8cd8c5
--- /dev/null
+++ b/recipes-kernel/linux/linux-machine-common.inc
@@ -0,0 +1,10 @@
1
2require linux-machine-config.inc
3
4# MicroBlaze is a uImage target, but its not called 'uImage'
5DEPENDS_append_microblaze += "u-boot-mkimage-native"
6
7# Common Device Tree Includes
8# (put them in ${WORKDIR} to avoid using dtc with include paths)
9FILESEXTRAPATHS_append := "${XILINX_LAYERDIR}/conf/machine/boards/common:"
10SRC_URI_append += "file://zynq-7-base.dtsi"
diff --git a/recipes-kernel/linux/linux-xlnx.inc b/recipes-kernel/linux/linux-xlnx.inc
index b195ba73..ffe99616 100644
--- a/recipes-kernel/linux/linux-xlnx.inc
+++ b/recipes-kernel/linux/linux-xlnx.inc
@@ -3,11 +3,8 @@ inherit kernel
3# This version extension should match CONFIG_LOCALVERSION in defconfig 3# This version extension should match CONFIG_LOCALVERSION in defconfig
4LINUX_VERSION_EXTENSION ?= "-xilinx" 4LINUX_VERSION_EXTENSION ?= "-xilinx"
5 5
6require linux-machine-config.inc
7require recipes-kernel/linux/linux-yocto.inc 6require recipes-kernel/linux/linux-yocto.inc
8 7require linux-machine-common.inc
9# MicroBlaze is a uImage target, but its not called 'uImage'
10DEPENDS_append_microblaze += "u-boot-mkimage-native"
11 8
12FILESEXTRAPATHS_prepend := "${THISDIR}/files:" 9FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
13FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" 10FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:"
@@ -19,10 +16,6 @@ PV = "${LINUX_VERSION}${LINUX_VERSION_EXTENSION}+git${SRCREV}"
19# Override COMPATIBLE_MACHINE to include your machine in a bbappend file. 16# Override COMPATIBLE_MACHINE to include your machine in a bbappend file.
20COMPATIBLE_MACHINE = "qemumicroblaze|qemuzynq|microblaze|zynq" 17COMPATIBLE_MACHINE = "qemumicroblaze|qemuzynq|microblaze|zynq"
21 18
22# Common Device Tree Includes
23# (put them in ${WORKDIR} to avoid using dtc with include paths)
24FILESEXTRAPATHS_append := "${XILINX_LAYERDIR}/conf/machine/boards/common:"
25SRC_URI_append += "file://zynq-7-base.dtsi"
26 19
27# Add the modules directory to the 'kernel-base' files list 20# Add the modules directory to the 'kernel-base' files list
28FILES_kernel-base_append = " /lib/modules/${KERNEL_VERSION}/kernel" 21FILES_kernel-base_append = " /lib/modules/${KERNEL_VERSION}/kernel"