diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-07-30 17:38:44 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2013-07-30 17:38:44 +1000 |
commit | efc3f819107d88cf630ed521a217e337d042e998 (patch) | |
tree | aa6d75c8935467664e069e8c0bb9464f222ac269 | |
parent | ec0e617e44ea367a77f139b92f93ed2d1392de06 (diff) | |
download | meta-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.inc | 3 | ||||
-rw-r--r-- | conf/machine/include/tune-zynq.inc | 3 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto-tiny_3.8.bbappend | 4 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto/microblaze-default-standard.scc | 8 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto/microblaze-default-tiny.scc | 9 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto/zc702-standard.scc | 8 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto/zc702-tiny.scc | 8 | ||||
-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.bbappend | 5 |
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" | |||
23 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" | 23 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" |
24 | PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" | 24 | PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" |
25 | UBOOT_MACHINE ?= "microblaze-generic" | 25 | UBOOT_MACHINE ?= "microblaze-generic" |
26 | |||
27 | # linux-yocto KMACHINE | ||
28 | KMACHINE ?= "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 |
27 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" | 27 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" |
28 | PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" | 28 | PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" |
29 | |||
30 | # linux-yocto KMACHINE | ||
31 | KMACHINE ?= "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 @@ | |||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" | 2 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" |
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" |
4 | 4 | ||
5 | require linux-machine-common.inc | ||
6 | |||
5 | SRC_URI_append += " \ | 7 | SRC_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 += " \ | |||
11 | SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/" | 13 | SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/" |
12 | SRCREV_externalcache = "${AUTOREV}" | 14 | SRCREV_externalcache = "${AUTOREV}" |
13 | 15 | ||
14 | COMPATIBLE_MACHINE = "zedboard|zc702|kc705-trd" \ No newline at end of file | 16 | COMPATIBLE_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 @@ | |||
1 | define KMACHINE microblaze-default | ||
2 | define KTYPE standard | ||
3 | define KARCH microblaze | ||
4 | |||
5 | include ktypes/standard | ||
6 | branch meta | ||
7 | |||
8 | include 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 @@ | |||
1 | define KMACHINE microblaze-default | ||
2 | define KTYPE tiny | ||
3 | define KARCH microblaze | ||
4 | |||
5 | include ktypes/tiny | ||
6 | branch meta | ||
7 | |||
8 | # Same configs used for standard as tiny for microblaze | ||
9 | include 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 @@ | |||
1 | define KMACHINE zc702 | ||
2 | define KTYPE standard | ||
3 | define KARCH arm | ||
4 | |||
5 | include ktypes/standard | ||
6 | branch meta | ||
7 | include zynq-standard.scc | ||
8 | include 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 @@ | |||
1 | define KMACHINE zc702 | ||
2 | define KTYPE tiny | ||
3 | define KARCH arm | ||
4 | |||
5 | include ktypes/tiny | ||
6 | branch meta | ||
7 | include zynq-tiny.scc | ||
8 | include 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 @@ | |||
1 | define KMACHINE zedboard | 1 | define KMACHINE zynq-default |
2 | define KTYPE standard | 2 | define KTYPE standard |
3 | define KARCH arm | 3 | define 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 @@ | |||
1 | define KMACHINE zedboard | 1 | define KMACHINE zynq-default |
2 | define KTYPE tiny | 2 | define KTYPE tiny |
3 | define KARCH arm | 3 | define 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 @@ | |||
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" | 2 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" |
3 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-xlnx:" |
4 | 4 | ||
5 | # MicroBlaze is a uImage target, but its not called 'uImage' | 5 | require linux-machine-common.inc |
6 | DEPENDS_append_microblaze += "u-boot-mkimage-native" | ||
7 | 6 | ||
8 | SRC_URI_append += " \ | 7 | SRC_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 += " \ | |||
14 | SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/" | 13 | SRC_URI_append += "git://github.com/Xilinx/xilinx-kernel-cache;protocol=git;branch=master;type=kmeta;name=externalcache;destsuffix=external-cache/" |
15 | SRCREV_externalcache = "${AUTOREV}" | 14 | SRCREV_externalcache = "${AUTOREV}" |
16 | 15 | ||
17 | COMPATIBLE_MACHINE = "zedboard|zc702|kc705-trd" | 16 | COMPATIBLE_MACHINE = "zedboard-zynq7|zc702-zynq7|kc705-trd-microblazeel" |