diff options
| author | Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | 2019-05-17 16:36:20 -0700 |
|---|---|---|
| committer | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-08-16 18:42:29 -0700 |
| commit | af4c8e4d2be3f34965d597849a2b90658119065d (patch) | |
| tree | ec43b113d9e370f8f0ef1e331f3121efc64b982c | |
| parent | 85e8c99629ed61826490a2b1dc7791b886435748 (diff) | |
| download | meta-xilinx-af4c8e4d2be3f34965d597849a2b90658119065d.tar.gz | |
README.building: Update building instructions for multiconfig builds
Update building instructions for multiconfig builds
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-bsp/README.building.md | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/meta-xilinx-bsp/README.building.md b/meta-xilinx-bsp/README.building.md index b127db36..230037c1 100644 --- a/meta-xilinx-bsp/README.building.md +++ b/meta-xilinx-bsp/README.building.md | |||
| @@ -56,33 +56,40 @@ https://github.com/lucaceresoli/zynqmp-pmufw-builder/blob/master/0001-Load-XPm_C | |||
| 56 | Using multiconfig to build ZU+ | 56 | Using multiconfig to build ZU+ |
| 57 | ------------------------------ | 57 | ------------------------------ |
| 58 | 58 | ||
| 59 | multiconfig dependency has to be added in image file or local.conf. | 59 | In your local.conf multiconfig should be enabled by: |
| 60 | For example in core-image-minimal you will need | ||
| 61 | do_image[mcdepends] = "multiconfig:zcu102:pmu:pmu-firmware:do_deploy" | ||
| 62 | 60 | ||
| 63 | Add conf/multiconfig in the build directory and create pmu.conf and zcu102.conf | 61 | `BBMULTICONFIG ?= "pmu"` |
| 64 | 62 | ||
| 65 | Add the following in pmu.conf: | 63 | Add a directory conf/multiconfig in the build directory and create pmu.conf inside it. |
| 66 | MACHINE="zynqmp-pmu" | ||
| 67 | DISTRO="xilinx-standalone" | ||
| 68 | GCCVERSION="7.%" | ||
| 69 | TMPDIR="${TOPDIR}/pmutmp" | ||
| 70 | 64 | ||
| 71 | Add the following in zcu102.conf: | 65 | Add the following in pmu.conf: |
| 72 | MACHINE="zcu102-zynqmp" | ||
| 73 | DISTRO="poky" | ||
| 74 | 66 | ||
| 75 | In local.conf multiconfig is enabled by: BBMULTICONFIG ?= "zcu102 pmu" | 67 | MACHINE="zynqmp-pmu" |
| 68 | DISTRO="xilinx-standalone" | ||
| 69 | TMPDIR="${TOPDIR}/pmutmp" | ||
| 70 | |||
| 71 | Add the following in your local.conf | ||
| 72 | |||
| 73 | MACHINE="zcu102-zynqmp" | ||
| 74 | DISTRO="poky" | ||
| 75 | |||
| 76 | A multiconfig dependency has to be added in the image recipe or local.conf. | ||
| 77 | |||
| 78 | For example in core-image-minimal you would need: | ||
| 79 | |||
| 80 | do_image[mcdepends] = "multiconfig::pmu:pmu-firmware:do_deploy" | ||
| 81 | |||
| 82 | This creates a multiconfig dependency between the task do_image from the default multiconfig '' (which has no name) | ||
| 83 | to the task do_deploy() from the package pmu-firmware from the pmu multiconfig which was just created above. | ||
| 84 | |||
| 85 | $ bitbake core-image-minimal | ||
| 86 | |||
| 87 | This will build both core-image-minimal and pmu-firmware. | ||
| 76 | 88 | ||
| 77 | bitbake multiconfig:zcu102:core-image-minimal | ||
| 78 | 89 | ||
| 79 | More information about multiconfig: | 90 | More information about multiconfig: |
| 80 | https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#dev-building-images-for-multiple-targets-using-multiple-configurations | 91 | https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#dev-building-images-for-multiple-targets-using-multiple-configurations |
| 81 | 92 | ||
| 82 | Workaround: | ||
| 83 | There is additional workaround required in u-boot-xlnx recipe. Add the below dependency | ||
| 84 | do_compile[mcdepends] = "multiconfig:zcu102:pmu:pmu-firmware:do_deploy" | ||
| 85 | |||
| 86 | 93 | ||
| 87 | Additional Information | 94 | Additional Information |
| 88 | ---------------------- | 95 | ---------------------- |
