diff options
| author | Sipke Vriend <sipke.vriend@xilinx.com> | 2013-04-22 14:22:40 +1000 |
|---|---|---|
| committer | Sipke Vriend <sipke.vriend@xilinx.com> | 2013-04-22 14:22:40 +1000 |
| commit | 98a8298372a29ad4d06e17333d9896c3f119a3e7 (patch) | |
| tree | d2e9c7debefce46b41f6cf13eb5a3f8c1196846b | |
| parent | 70d2e350502a6fa776883f78cdd87c5771189285 (diff) | |
| download | meta-xilinx-98a8298372a29ad4d06e17333d9896c3f119a3e7.tar.gz | |
Refactor zedboard machine. Move commone items into tune-zynq include file.
Signed-off-by: Sipke Vriend <sipke.vriend@xilinx.com>
| -rw-r--r-- | conf/machine/include/tune-zynq.inc | 15 | ||||
| -rw-r--r-- | meta-zedboard/conf/machine/zedboard.conf | 16 | ||||
| -rw-r--r-- | meta-zedboard/recipes-kernel/linux/linux-xlnx.inc | 2 |
3 files changed, 20 insertions, 13 deletions
diff --git a/conf/machine/include/tune-zynq.inc b/conf/machine/include/tune-zynq.inc new file mode 100644 index 00000000..da75b698 --- /dev/null +++ b/conf/machine/include/tune-zynq.inc | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | |||
| 2 | MACHINE_FEATURES := "" | ||
| 3 | |||
| 4 | require conf/machine/include/tune-cortexa9.inc | ||
| 5 | |||
| 6 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | ||
| 7 | PREFERRED_VERSION_linux-xlnx ?= "3.8%" | ||
| 8 | |||
| 9 | KERNEL_IMAGETYPE = "uImage" | ||
| 10 | |||
| 11 | IMAGE_FSTYPES = "cpio ext2" | ||
| 12 | |||
| 13 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" | ||
| 14 | |||
| 15 | PREFERRED_VERSION_u-boot-xlnx ?= "v2013.01%" | ||
diff --git a/meta-zedboard/conf/machine/zedboard.conf b/meta-zedboard/conf/machine/zedboard.conf index 9f044605..301b055f 100644 --- a/meta-zedboard/conf/machine/zedboard.conf +++ b/meta-zedboard/conf/machine/zedboard.conf | |||
| @@ -3,21 +3,13 @@ | |||
| 3 | #@DESCRIPTION: Machine support for zedboard. | 3 | #@DESCRIPTION: Machine support for zedboard. |
| 4 | # http://www.zedboard.org/ | 4 | # http://www.zedboard.org/ |
| 5 | 5 | ||
| 6 | MACHINE_FEATURES := "" | 6 | # Versions corresponding to zedboard documentation |
| 7 | |||
| 8 | require conf/machine/include/tune-cortexa9.inc | ||
| 9 | |||
| 10 | # Consolidate these to common include? | ||
| 11 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | ||
| 12 | PREFERRED_VERSION_linux-xlnx ?= "3.6%" | 7 | PREFERRED_VERSION_linux-xlnx ?= "3.6%" |
| 8 | PREFERRED_VERSION_u-boot-xlnx ?= "v2012.10%" | ||
| 13 | 9 | ||
| 14 | KERNEL_IMAGETYPE = "uImage" | 10 | require conf/machine/include/tune-zynq.inc |
| 15 | |||
| 16 | IMAGE_FSTYPES = "cpio ext2" | ||
| 17 | |||
| 18 | PREFERRED_PROVIDER_u-boot ?= "u-boot-xlnx" | ||
| 19 | 11 | ||
| 20 | PREFERRED_VERSION_u-boot-xlnx ?= "v2012.10%" | 12 | # Zedboard machine definition known by Xilinx UBOOT |
| 21 | UBOOT_MACHINE = "zynq_zed_config" | 13 | UBOOT_MACHINE = "zynq_zed_config" |
| 22 | 14 | ||
| 23 | SERIAL_CONSOLE = "115200 ttyPS0" | 15 | SERIAL_CONSOLE = "115200 ttyPS0" |
diff --git a/meta-zedboard/recipes-kernel/linux/linux-xlnx.inc b/meta-zedboard/recipes-kernel/linux/linux-xlnx.inc index cf5d53be..5ecc153f 100644 --- a/meta-zedboard/recipes-kernel/linux/linux-xlnx.inc +++ b/meta-zedboard/recipes-kernel/linux/linux-xlnx.inc | |||
| @@ -5,6 +5,6 @@ | |||
| 5 | #SRC_URI_append_zedboard += "file://zedboard.dts" | 5 | #SRC_URI_append_zedboard += "file://zedboard.dts" |
| 6 | #KERNEL_DEVICETREE_zedboard = "${WORKDIR}/zedboard.dts" | 6 | #KERNEL_DEVICETREE_zedboard = "${WORKDIR}/zedboard.dts" |
| 7 | 7 | ||
| 8 | KERNEL_DEVICETREE_zedboard = "${S}/arch/arm/boot/dts/zedboard.dts" | 8 | KERNEL_DEVICETREE_zedboard = "${S}/arch/arm/boot/dts/zynq-zed.dts" |
| 9 | 9 | ||
| 10 | COMPATIBLE_MACHINE_zedboard = "zedboard" | 10 | COMPATIBLE_MACHINE_zedboard = "zedboard" |
