diff options
| author | Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> | 2020-01-22 19:40:40 +0530 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-02-27 08:33:25 -0800 |
| commit | a78927a4b899895149d802f6cb5f9f1cc59a11ce (patch) | |
| tree | cb1be00104cecb52001e42e35a1c08aec5cf7c04 /meta-xilinx-standalone/recipes-applications | |
| parent | 651e9e194475dbb0792c8b4b27df4891223e726f (diff) | |
| download | meta-xilinx-a78927a4b899895149d802f6cb5f9f1cc59a11ce.tar.gz | |
meta-xilinx-standalone: recipes-applications: hello-world: Remove dependency on esw_examples class
Hello world recipe doesn't have any dependency on the
do_generate_eglist task, It has dependency only on the linker generation.
So the esw repo linker generation is moved to the liner_gen.py
file, which needs to be called before do_configure.
This patch updates the recipe for the same.
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone/recipes-applications')
| -rw-r--r-- | meta-xilinx-standalone/recipes-applications/hello-world/hello-world_git.bb | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/meta-xilinx-standalone/recipes-applications/hello-world/hello-world_git.bb b/meta-xilinx-standalone/recipes-applications/hello-world/hello-world_git.bb index 9f2d1b66..4e7545db 100644 --- a/meta-xilinx-standalone/recipes-applications/hello-world/hello-world_git.bb +++ b/meta-xilinx-standalone/recipes-applications/hello-world/hello-world_git.bb | |||
| @@ -1,3 +1,33 @@ | |||
| 1 | inherit esw_examples | 1 | inherit esw deploy |
| 2 | 2 | ||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_apps/hello_world/src" | 3 | ESW_COMPONENT_SRC = "/lib/sw_apps/hello_world/src/" |
| 4 | |||
| 5 | DEPENDS += "dtc-native libxil xiltimer 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}/hello_world* ${D}/${base_libdir}/firmware | ||
| 16 | } | ||
| 17 | |||
| 18 | HELLO_WORLD_BASE_NAME ?= "${BPN}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
| 19 | 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/hello_world.elf ${DEPLOYDIR}/${HELLO_WORLD_BASE_NAME}.elf | ||
| 25 | ln -sf ${HELLO_WORLD_BASE_NAME}.elf ${DEPLOYDIR}/${BPN}-${MACHINE}.elf | ||
| 26 | ${OBJCOPY} -O binary ${WORKDIR}/package/${base_libdir}/firmware/hello_world.elf ${WORKDIR}/package/${base_libdir}/firmware/hello_world.bin | ||
| 27 | install -m 0644 ${WORKDIR}/package/${base_libdir}/firmware/hello_world.bin ${DEPLOYDIR}/${HELLO_WORLD_BASE_NAME}.bin | ||
| 28 | ln -sf ${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/hello_world*" | ||
