summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2013-07-30 17:38:44 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2013-07-30 17:38:44 +1000
commitefc3f819107d88cf630ed521a217e337d042e998 (patch)
treeaa6d75c8935467664e069e8c0bb9464f222ac269
parentec0e617e44ea367a77f139b92f93ed2d1392de06 (diff)
downloadmeta-xilinx-efc3f819107d88cf630ed521a217e337d042e998.tar.gz
linux-yocto: Fix compatiblity with base layer machines
* Remove use of machine specific configuration, replace with a 'zynq-default' and 'microblaze-default'. * Add support for the use of meta-xilinx MACHINE_* variables. Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r--conf/machine/include/tune-microblaze.inc3
-rw-r--r--conf/machine/include/tune-zynq.inc3
-rw-r--r--recipes-kernel/linux/linux-yocto-tiny_3.8.bbappend4
-rw-r--r--recipes-kernel/linux/linux-yocto/microblaze-default-standard.scc8
-rw-r--r--recipes-kernel/linux/linux-yocto/microblaze-default-tiny.scc9
-rw-r--r--recipes-kernel/linux/linux-yocto/zc702-standard.scc8
-rw-r--r--recipes-kernel/linux/linux-yocto/zc702-tiny.scc8
-rw-r--r--recipes-kernel/linux/linux-yocto/zynq-default-standard.scc (renamed from recipes-kernel/linux/linux-yocto/zedboard-standard.scc)2
-rw-r--r--recipes-kernel/linux/linux-yocto/zynq-default-tiny.scc (renamed from recipes-kernel/linux/linux-yocto/zedboard-tiny.scc)2
-rw-r--r--recipes-kernel/linux/linux-yocto_3.8.bbappend5
10 files changed, 30 insertions, 22 deletions
diff --git a/conf/machine/include/tune-microblaze.inc b/conf/machine/include/tune-microblaze.inc
index c908bb46..5f4d65ba 100644
--- a/conf/machine/include/tune-microblaze.inc
+++ b/conf/machine/include/tune-microblaze.inc
@@ -23,3 +23,6 @@ IMAGE_CLASSES += "image_types_uboot"
23PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" 23PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx"
24PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" 24PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%"
25UBOOT_MACHINE ?= "microblaze-generic" 25UBOOT_MACHINE ?= "microblaze-generic"
26
27# linux-yocto KMACHINE
28KMACHINE ?= "microblaze-default"
diff --git a/conf/machine/include/tune-zynq.inc b/conf/machine/include/tune-zynq.inc
index f02b9a95..e1a91ad8 100644
--- a/conf/machine/include/tune-zynq.inc
+++ b/conf/machine/include/tune-zynq.inc
@@ -26,3 +26,6 @@ IMAGE_CLASSES += "image_types_uboot"
26# U-Boot Configuration 26# U-Boot Configuration
27PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" 27PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx"
28PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" 28PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%"
29
30# linux-yocto KMACHINE
31KMACHINE ?= "zynq-default"
diff --git a/recipes-kernel/linux/linux-yocto-tiny_3.8.bbappend b/recipes-kernel/linux/linux-yocto-tiny_3.8.bbappend
index 7d7c5639..d6783b85 100644
--- a/recipes-kernel/linux/linux-yocto-tiny_3.8.bbappend
+++ b/recipes-kernel/linux/linux-yocto-tiny_3.8.bbappend
@@ -2,6 +2,8 @@
2FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" 2FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:"
3FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" 3FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:"
4 4
5require linux-machine-common.inc
6
5SRC_URI_append += " \ 7SRC_URI_append += " \
6 file://xilinx-v14.5_modifications_to_v3.8.scc \ 8 file://xilinx-v14.5_modifications_to_v3.8.scc \
7 file://microblaze-patches_v3.8.scc \ 9 file://microblaze-patches_v3.8.scc \
@@ -11,4 +13,4 @@ SRC_URI_append += " \
11SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/" 13SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/"
12SRCREV_externalcache = "${AUTOREV}" 14SRCREV_externalcache = "${AUTOREV}"
13 15
14COMPATIBLE_MACHINE = "zedboard|zc702|kc705-trd" \ No newline at end of file 16COMPATIBLE_MACHINE = "zedboard-zynq7|zc702-zynq7|kc705-trd-microblazeel" \ No newline at end of file
diff --git a/recipes-kernel/linux/linux-yocto/microblaze-default-standard.scc b/recipes-kernel/linux/linux-yocto/microblaze-default-standard.scc
new file mode 100644
index 00000000..6e083bbc
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/microblaze-default-standard.scc
@@ -0,0 +1,8 @@
1define KMACHINE microblaze-default
2define KTYPE standard
3define KARCH microblaze
4
5include ktypes/standard
6branch meta
7
8include microblaze-standard.scc
diff --git a/recipes-kernel/linux/linux-yocto/microblaze-default-tiny.scc b/recipes-kernel/linux/linux-yocto/microblaze-default-tiny.scc
new file mode 100644
index 00000000..49761bcb
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto/microblaze-default-tiny.scc
@@ -0,0 +1,9 @@
1define KMACHINE microblaze-default
2define KTYPE tiny
3define KARCH microblaze
4
5include ktypes/tiny
6branch meta
7
8# Same configs used for standard as tiny for microblaze
9include microblaze-standard.scc
diff --git a/recipes-kernel/linux/linux-yocto/zc702-standard.scc b/recipes-kernel/linux/linux-yocto/zc702-standard.scc
deleted file mode 100644
index ca803b45..00000000
--- a/recipes-kernel/linux/linux-yocto/zc702-standard.scc
+++ /dev/null
@@ -1,8 +0,0 @@
1define KMACHINE zc702
2define KTYPE standard
3define KARCH arm
4
5include ktypes/standard
6branch meta
7include zynq-standard.scc
8include cfg/zynq/rtc.scc
diff --git a/recipes-kernel/linux/linux-yocto/zc702-tiny.scc b/recipes-kernel/linux/linux-yocto/zc702-tiny.scc
deleted file mode 100644
index fbd7a1a5..00000000
--- a/recipes-kernel/linux/linux-yocto/zc702-tiny.scc
+++ /dev/null
@@ -1,8 +0,0 @@
1define KMACHINE zc702
2define KTYPE tiny
3define KARCH arm
4
5include ktypes/tiny
6branch meta
7include zynq-tiny.scc
8include cfg/zynq/rtc.scc
diff --git a/recipes-kernel/linux/linux-yocto/zedboard-standard.scc b/recipes-kernel/linux/linux-yocto/zynq-default-standard.scc
index d29f8284..34ff1295 100644
--- a/recipes-kernel/linux/linux-yocto/zedboard-standard.scc
+++ b/recipes-kernel/linux/linux-yocto/zynq-default-standard.scc
@@ -1,4 +1,4 @@
1define KMACHINE zedboard 1define KMACHINE zynq-default
2define KTYPE standard 2define KTYPE standard
3define KARCH arm 3define KARCH arm
4 4
diff --git a/recipes-kernel/linux/linux-yocto/zedboard-tiny.scc b/recipes-kernel/linux/linux-yocto/zynq-default-tiny.scc
index ff86fd42..2de64cc9 100644
--- a/recipes-kernel/linux/linux-yocto/zedboard-tiny.scc
+++ b/recipes-kernel/linux/linux-yocto/zynq-default-tiny.scc
@@ -1,4 +1,4 @@
1define KMACHINE zedboard 1define KMACHINE zynq-default
2define KTYPE tiny 2define KTYPE tiny
3define KARCH arm 3define KARCH arm
4 4
diff --git a/recipes-kernel/linux/linux-yocto_3.8.bbappend b/recipes-kernel/linux/linux-yocto_3.8.bbappend
index 5c76548c..09892658 100644
--- a/recipes-kernel/linux/linux-yocto_3.8.bbappend
+++ b/recipes-kernel/linux/linux-yocto_3.8.bbappend
@@ -2,8 +2,7 @@
2FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" 2FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:"
3FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" 3FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:"
4 4
5# MicroBlaze is a uImage target, but its not called 'uImage' 5require linux-machine-common.inc
6DEPENDS_append_microblaze += "u-boot-mkimage-native"
7 6
8SRC_URI_append += " \ 7SRC_URI_append += " \
9 file://xilinx-v14.5_modifications_to_v3.8.scc \ 8 file://xilinx-v14.5_modifications_to_v3.8.scc \
@@ -14,4 +13,4 @@ SRC_URI_append += " \
14SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/" 13SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/"
15SRCREV_externalcache = "${AUTOREV}" 14SRCREV_externalcache = "${AUTOREV}"
16 15
17COMPATIBLE_MACHINE = "zedboard|zc702|kc705-trd" 16COMPATIBLE_MACHINE = "zedboard-zynq7|zc702-zynq7|kc705-trd-microblazeel"