diff options
| author | Anirudha Sarangi <anirudha.sarangi@xilinx.com> | 2020-03-16 10:27:22 +0530 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-16 07:41:39 -0700 |
| commit | 1700d636730399e32d42131d9e58e65ef8bb2057 (patch) | |
| tree | 6f36537a86d49c79dcfd9b71dd59d1e894835c2d | |
| parent | 1e2df1683096e2bb13d4e75ab83be03026bd7f8b (diff) | |
| download | meta-xilinx-1700d636730399e32d42131d9e58e65ef8bb2057.tar.gz | |
meta-xilinx-standalone: recipes-applications: freertos-hello-world: Add recipe for freertos hello world
This recipe compiles the freertos hello world application,
Signed-off-by: Anirudha Sarangi <anirudha.sarangi@xilinx.com>
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
| -rw-r--r-- | meta-xilinx-standalone/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb b/meta-xilinx-standalone/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb new file mode 100644 index 00000000..7702be93 --- /dev/null +++ b/meta-xilinx-standalone/recipes-applications/freertos-hello-world/freertos-hello-world_git.bb | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | inherit esw deploy | ||
| 2 | |||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_apps/freertos_hello_world/src/" | ||
| 4 | |||
| 5 | DEPENDS += "dtc-native python3-dtc-native libxil xilstandalone xiltimer freertos10-xilinx device-tree" | ||
| 6 | |||
| 7 | do_configure_prepend() { | ||
| 8 | cd ${S} | ||
| 9 | nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} | ||
| 10 | } | ||
| 11 | |||
| 12 | do_install() { | ||
| 13 | install -d ${D}/${base_libdir}/firmware | ||
| 14 | # Note that we have to make the ELF executable for it to be stripped | ||
| 15 | install -m 0755 ${B}/freertos_hello_world* ${D}/${base_libdir}/firmware | ||
| 16 | } | ||
| 17 | |||
| 18 | FREERTOS_HELLO_WORLD_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
| 19 | FREERTOS_HELLO_WORLD_BASE_NAME[vardepsexclude] = "DATETIME" | ||
| 20 | |||
| 21 | do_deploy() { | ||
| 22 | |||
| 23 | # We need to deploy the stripped elf, hence why not doing it from ${D} | ||
| 24 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.elf ${DEPLOYDIR}/${HELLO_WORLD_BASE_NAME}.elf | ||
| 25 | ln -sf ${FREERTOS_HELLO_WORLD_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf | ||
| 26 | ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.elf ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.bin | ||
| 27 | install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/freertos_hello_world.bin ${DEPLOYDIR}/${FREERTOS_HELLO_WORLD_BASE_NAME}.bin | ||
| 28 | ln -sf ${FREERTOS_HELLO_WORLD_BASE_NAME}.bin ${DEPLOYDIR}/${BPN}-${MACHINE}.bin | ||
| 29 | } | ||
| 30 | |||
| 31 | addtask deploy before do_build after do_package | ||
| 32 | |||
| 33 | FILES_${PN} = "${base_libdir}/firmware/freertos_hello_world*" | ||
