diff options
author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-01-01 20:26:13 -0800 |
---|---|---|
committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-01-01 20:31:30 -0800 |
commit | c42016e2e6ca13e133fdb877785ec8aa2bd82f16 (patch) | |
tree | 053c34065be2a4fb773350f0753faa8cf3c75667 | |
parent | 01e5613b4c7b2ed2f7d17b240b770ff1ef6972b6 (diff) | |
download | meta-xilinx-c42016e2e6ca13e133fdb877785ec8aa2bd82f16.tar.gz |
README: Add information related to multiconfig
Add information related to multiconfig
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
-rw-r--r-- | meta-xilinx-bsp/README.building.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/README.building.md b/meta-xilinx-bsp/README.building.md index e0e3f264..54d61c3d 100644 --- a/meta-xilinx-bsp/README.building.md +++ b/meta-xilinx-bsp/README.building.md | |||
@@ -11,9 +11,14 @@ configure `bblayers.conf` by adding the `meta-xilinx-bsp` and | |||
11 | BBLAYERS ?= " \ | 11 | BBLAYERS ?= " \ |
12 | <path to layer>/oe-core/meta \ | 12 | <path to layer>/oe-core/meta \ |
13 | <path to layer>/meta-xilinx-bsp \ | 13 | <path to layer>/meta-xilinx-bsp \ |
14 | <path to layer>/meta-xilinx-standalone \ | ||
14 | <path to layer>/meta-xilinx-contrib \ | 15 | <path to layer>/meta-xilinx-contrib \ |
15 | " | 16 | " |
16 | 17 | ||
18 | meta-xilinx-standalone layer provides recipes which enable building baremetal | ||
19 | toolchain for PMU firmware. This layer is required for ZU+ devices which | ||
20 | depends on PMU firmware | ||
21 | |||
17 | meta-xilinx-contrib is a contribution layer and is optional. | 22 | meta-xilinx-contrib is a contribution layer and is optional. |
18 | 23 | ||
19 | To build a specific target BSP configure the associated machine in `local.conf`: | 24 | To build a specific target BSP configure the associated machine in `local.conf`: |
@@ -27,6 +32,36 @@ Build the target file system image using `bitbake`: | |||
27 | Once complete the images for the target machine will be available in the output | 32 | Once complete the images for the target machine will be available in the output |
28 | directory `tmp/deploy/images/<machine name>/`. | 33 | directory `tmp/deploy/images/<machine name>/`. |
29 | 34 | ||
35 | Using multiconfig to build ZU+ | ||
36 | ------------------------------ | ||
37 | |||
38 | multiconfig dependency has to be added in image file or local.conf. | ||
39 | For example in core-image-minimal you will need | ||
40 | do_image[mcdepends] = "multiconfig:zcu102:pmu:pmu-firmware:do_deploy" | ||
41 | |||
42 | Add conf/multiconfig in the build directory and create pmu.conf and zcu102.conf | ||
43 | |||
44 | Add the following in pmu.conf: | ||
45 | MACHINE="zynqmp-pmu" | ||
46 | DISTRO="xilinx-standalone" | ||
47 | GCCVERSION="7.%" | ||
48 | TMPDIR="${TOPDIR}/pmutmp" | ||
49 | |||
50 | Add the following in zcu102.conf: | ||
51 | MACHINE="zcu102-zynqmp" | ||
52 | DISTRO="poky" | ||
53 | |||
54 | In local.conf multiconfig is enabled by: BBMULTICONFIG ?= "zcu102 pmu" | ||
55 | |||
56 | bitbake multiconfig:zcu102:core-image-minimal | ||
57 | |||
58 | More information about multiconfig: | ||
59 | https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#dev-building-images-for-multiple-targets-using-multiple-configurations | ||
60 | |||
61 | Workaround: | ||
62 | There is additional workaround required in u-boot-xlnx recipe. Add the below dependency | ||
63 | do_compile[mcdepends] = "multiconfig:zcu102:pmu:pmu-firmware:do_deploy" | ||
64 | |||
30 | Additional Information | 65 | Additional Information |
31 | ---------------------- | 66 | ---------------------- |
32 | 67 | ||