diff options
Diffstat (limited to 'meta-xilinx-standalone-sdt/recipes-applications/empty-application/empty-application_2024.2.bb')
| -rw-r--r-- | meta-xilinx-standalone-sdt/recipes-applications/empty-application/empty-application_2024.2.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-applications/empty-application/empty-application_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-applications/empty-application/empty-application_2024.2.bb new file mode 100644 index 00000000..2c70796a --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-applications/empty-application/empty-application_2024.2.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | inherit esw deploy python3native | ||
| 2 | |||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_apps/empty_application/src/" | ||
| 4 | |||
| 5 | DEPENDS += "libxil xiltimer" | ||
| 6 | |||
| 7 | do_configure:prepend() { | ||
| 8 | ( | ||
| 9 | cd ${S} | ||
| 10 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
| 11 | install -m 0644 ${S}/cmake/UserConfig.cmake ${S}/${ESW_COMPONENT_SRC} | ||
| 12 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
| 13 | install -m 0644 ${CUSTOM_SRCFILE}/* ${S}/${ESW_COMPONENT_SRC}/ | ||
| 14 | cp -rf ${S}/scripts/linker_files/ ${S}/${ESW_COMPONENT_SRC}/linker_files | ||
| 15 | ) | ||
| 16 | } | ||
| 17 | |||
| 18 | CUSTOM_APP_IMAGE_NAME ??= "custom-application" | ||
| 19 | |||
| 20 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
| 21 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
| 22 | |||
| 23 | inherit image-artifact-names | ||
| 24 | |||
| 25 | CUSTOM_APP_BASE_NAME ?= "${CUSTOM_APP_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${BB_CURRENT_MC}${IMAGE_VERSION_SUFFIX}" | ||
| 26 | |||
| 27 | ESW_COMPONENT ??= "empty_application.elf" | ||
| 28 | |||
| 29 | do_compile:append() { | ||
| 30 | ${OBJCOPY} -O binary ${B}/${ESW_COMPONENT} ${B}/empty_application.bin | ||
| 31 | } | ||
| 32 | |||
| 33 | do_install() { | ||
| 34 | : | ||
| 35 | } | ||
| 36 | |||
| 37 | do_deploy() { | ||
| 38 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${CUSTOM_APP_BASE_NAME}.elf | ||
| 39 | ln -sf ${CUSTOM_APP_BASE_NAME}.elf ${DEPLOYDIR}/${CUSTOM_APP_IMAGE_NAME}-${MACHINE}-${BB_CURRENT_MC}.elf | ||
| 40 | install -m 0644 ${B}/empty_application.bin ${DEPLOYDIR}/${CUSTOM_APP_BASE_NAME}.bin | ||
| 41 | ln -sf ${CUSTOM_APP_BASE_NAME}.bin ${DEPLOYDIR}/${CUSTOM_APP_IMAGE_NAME}-${MACHINE}-${BB_CURRENT_MC}.bin | ||
| 42 | } | ||
| 43 | addtask deploy before do_build after do_install | ||
