diff options
author | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2018-10-04 13:46:08 -0700 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-01-01 20:03:46 -0800 |
commit | 2b6d3099ddff4c854cc63ee53532f59a42d31175 (patch) | |
tree | 118932874cc565056ea90249b9055954f231cc31 | |
parent | d4adc242441bdf49e1a63418a56f086c9fa8efc9 (diff) | |
download | meta-xilinx-2b6d3099ddff4c854cc63ee53532f59a42d31175.tar.gz |
meta-xilinx-standalone: Create layer, distro and machine to build standalone components
This layer is meant to augment Yocto/OE functionality to provide a
toolchain to build standalone components for Xilinx architectures.
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r-- | meta-xilinx-standalone/README.md | 54 | ||||
-rw-r--r-- | meta-xilinx-standalone/conf/distro/xilinx-standalone.conf | 13 | ||||
-rw-r--r-- | meta-xilinx-standalone/conf/layer.conf | 14 | ||||
-rw-r--r-- | meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf | 11 |
4 files changed, 92 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/README.md b/meta-xilinx-standalone/README.md new file mode 100644 index 00000000..b800f372 --- /dev/null +++ b/meta-xilinx-standalone/README.md | |||
@@ -0,0 +1,54 @@ | |||
1 | meta-xilinx-standalone | ||
2 | ====================== | ||
3 | |||
4 | This layer is meant to augment Yocto/OE functionality to provide a Baremetal/Standalone Toolchain. | ||
5 | |||
6 | |||
7 | Maintainers, Mailing list, Patches | ||
8 | ================================== | ||
9 | |||
10 | Please send any patches, pull requests, comments or questions for this layer to | ||
11 | the [meta-xilinx mailing list](https://lists.yoctoproject.org/listinfo/meta-xilinx): | ||
12 | |||
13 | meta-xilinx@lists.yoctoproject.org | ||
14 | |||
15 | Maintainers: | ||
16 | |||
17 | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | ||
18 | Manjukumar Harthikote Matha <manjukumar.harthikote-matha@xilinx.com> | ||
19 | |||
20 | Dependencies | ||
21 | ============ | ||
22 | |||
23 | This layer depends on: | ||
24 | |||
25 | URI: git://git.yoctoproject.org/poky | ||
26 | |||
27 | URI: git://git.yoctoproject.org/meta-xilinx/meta-xilinx-bsp | ||
28 | |||
29 | Usage | ||
30 | ===== | ||
31 | |||
32 | 1.- Clone this layer along with the specified layers | ||
33 | |||
34 | 2.- $ source oe-init-build-env | ||
35 | |||
36 | 3.- Add this layer to BBLAYERS on conf/bblayers.conf | ||
37 | |||
38 | 4.- Add the following to your conf/local.conf to build for the microblaze architecture: | ||
39 | |||
40 | DISTRO="xilinx-standalone" | ||
41 | |||
42 | MACHINE="zynqmp-pmu" | ||
43 | |||
44 | GCCVERSION="7.%" | ||
45 | |||
46 | 5.- Build a package: | ||
47 | |||
48 | for example: | ||
49 | |||
50 | $ bitbake newlib | ||
51 | |||
52 | or | ||
53 | |||
54 | $ bitbake meta-toolchain | ||
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.conf b/meta-xilinx-standalone/conf/distro/xilinx-standalone.conf new file mode 100644 index 00000000..7cd23ccd --- /dev/null +++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.conf | |||
@@ -0,0 +1,13 @@ | |||
1 | DISTRO = "xilinx-standalone" | ||
2 | DISTRO_NAME = "Xilinx Standalone Distro" | ||
3 | DISTRO_VERSION = "1.0" | ||
4 | TARGET_VENDOR = "-xilinx" | ||
5 | |||
6 | TCLIBC = "newlib" | ||
7 | TCLIBCAPPEND ="" | ||
8 | |||
9 | # Change SDK name | ||
10 | SDK_VERSION = "xilinx-standalone" | ||
11 | |||
12 | require conf/distro/include/yocto-uninative.inc | ||
13 | INHERIT += "uninative" | ||
diff --git a/meta-xilinx-standalone/conf/layer.conf b/meta-xilinx-standalone/conf/layer.conf new file mode 100644 index 00000000..7d9cc598 --- /dev/null +++ b/meta-xilinx-standalone/conf/layer.conf | |||
@@ -0,0 +1,14 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have recipes-* directories, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ | ||
6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
7 | |||
8 | BBFILE_COLLECTIONS += "xilinx-standalone" | ||
9 | BBFILE_PATTERN_xilinx-standalone = "^${LAYERDIR}/" | ||
10 | BBFILE_PRIORITY_xilinx-standalone = "5" | ||
11 | |||
12 | LAYERDEPENDS_xilinx-standalone = "core xilinx" | ||
13 | |||
14 | LAYERSERIES_COMPAT_xilinx-standalone = "thud" | ||
diff --git a/meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf b/meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf new file mode 100644 index 00000000..2f692db0 --- /dev/null +++ b/meta-xilinx-standalone/conf/machine/zynqmp-pmu.conf | |||
@@ -0,0 +1,11 @@ | |||
1 | DEFAULTTUNE ?= "microblaze" | ||
2 | |||
3 | require conf/machine/include/microblaze/arch-microblaze.inc | ||
4 | |||
5 | # Endianess, multiplier, barrel shift, pattern compare, floating point double or single, are the possibilities | ||
6 | AVAILTUNES += "microblaze" | ||
7 | TUNE_FEATURES_tune-microblaze = "microblaze v9.2 barrel-shift pattern-compare" | ||
8 | PACKAGE_EXTRA_ARCHS_tune-microblaze = "${TUNE_PKGARCH}" | ||
9 | SOC_FAMILY = "zynqmp" | ||
10 | |||
11 | TARGET_LINK_HASH_STYLE_microblaze = "" | ||