Skip to content

Commit

Permalink
README.fw.package.md: Update fw package instructions
Browse files Browse the repository at this point in the history
Add links to SDT Multiconfig build instrcution before packaging and
deploying the fw applications.

Signed-off-by: Sandeep Gundlupet Raju <[email protected]>
Signed-off-by: Mark Hatle <[email protected]>
  • Loading branch information
grsandeep85 authored and mhatle committed Nov 4, 2024
1 parent 3b1165e commit 0900e1a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/README.fw.package.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ filesystem.

## How to create and install firmware package recipe

1. Follow [SDT Building Instructions](../meta-xilinx-standalone-sdt/README.sdt.bsp.md) upto step 3.
1. Follow [SDT Mulitconfig Building Instructions](../meta-xilinx-standalone-sdt/README.sdt.mc.build.md)
upto step 3.

2. Create recipes-firmware directory in distribution meta layer.
```
$ mkdir -p <meta-layer>/recipes-firmware/<firmware-package-name>/
```

3. Now create the recipes firmware package using recipetool.
```
$ recipetool create -o <meta-layer>/recipes-firmware/<firmware-package-name>/firmware-package-name.bb
```

4. Modify the recipe and inherit fw-package bbclass as shown below.

> **Note:**
Expand All @@ -33,9 +36,9 @@ $ recipetool create -o <meta-layer>/recipes-firmware/<firmware-package-name>/fir
> * **FW_NAME:** Variable to define firmware baremetal or freertos application
> recipe name.
> * **TARGET_MC:** Variable to define one of the multiconfig target name
> (ex: cortexr5-0-zynqmp-baremetal) from the BBMULTICONFIG list
> generated at [SDT Building Instructions](../meta-xilinx-standalone-sdt/README.sdt.bsp.md)
> step 4.
> (ex: <soc-family>-<board-name>-sdt-<design-name>-cortexr5-0-baremetal)
> from the BBMULTICONFIG list generated at [SDT Mulitconfig Building Instructions](../meta-xilinx-standalone-sdt/README.sdt.mc.build.md)
> step 2.
```
SUMMARY = "Recipe to package and deploy baremetal or freertos elf or bin to linux rootfs"
Expand All @@ -45,7 +48,7 @@ inherit fw-package
FW_NAME = "hello-world"
TARGET_MC = "cortexr5-0-zynqmp-baremetal"
TARGET_MC = "<soc-family>-<board-name>-sdt-<design-name>-cortexr5-0-baremetal"
FW_MCDEPENDS := "mc::${TARGET_MC}:${FW_NAME}:do_deploy"
FW_DEPLOY_DIR := "${TOPDIR}/tmp-${TARGET_MC}/deploy/images/${MACHINE}"
Expand Down

0 comments on commit 0900e1a

Please sign in to comment.