diff options
author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2024-02-08 12:53:02 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-02-09 09:42:34 -0600 |
commit | d76b902106e82f6c68ce525f068c994dd16d0aa2 (patch) | |
tree | 24e25d834b1c712e4f4d2ae60d0f078b2fd4d639 /meta-xilinx-standalone-experimental | |
parent | a200fe241f2192233828642e2fedf9dd8a7e4ac1 (diff) | |
download | meta-xilinx-d76b902106e82f6c68ce525f068c994dd16d0aa2.tar.gz |
empty-application_2024.1.bb: Add processor suffix to elf files
Add target processor suffix so that it doesn't conflict with app name
under /lib/firmware direcory when you build emplty-application
targeting different processor.
Since empty_application in esw source code doesn't have any source(.c)
files and it will act as template so inheriting esw_apps_common bbclass
in not a right approach in this case.
Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental')
-rw-r--r-- | meta-xilinx-standalone-experimental/recipes-applications/empty-application/empty-application_2024.1.bb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-applications/empty-application/empty-application_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-applications/empty-application/empty-application_2024.1.bb index d62779ae..2c70796a 100644 --- a/meta-xilinx-standalone-experimental/recipes-applications/empty-application/empty-application_2024.1.bb +++ b/meta-xilinx-standalone-experimental/recipes-applications/empty-application/empty-application_2024.1.bb | |||
@@ -1,11 +1,9 @@ | |||
1 | inherit esw deploy | 1 | inherit esw deploy python3native |
2 | 2 | ||
3 | ESW_COMPONENT_SRC = "/lib/sw_apps/empty_application/src/" | 3 | ESW_COMPONENT_SRC = "/lib/sw_apps/empty_application/src/" |
4 | 4 | ||
5 | DEPENDS += "libxil xiltimer" | 5 | DEPENDS += "libxil xiltimer" |
6 | 6 | ||
7 | inherit python3native | ||
8 | |||
9 | do_configure:prepend() { | 7 | do_configure:prepend() { |
10 | ( | 8 | ( |
11 | cd ${S} | 9 | cd ${S} |
@@ -24,7 +22,7 @@ EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | |||
24 | 22 | ||
25 | inherit image-artifact-names | 23 | inherit image-artifact-names |
26 | 24 | ||
27 | CUSTOM_APP_BASE_NAME ?= "${CUSTOM_APP_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" | 25 | CUSTOM_APP_BASE_NAME ?= "${CUSTOM_APP_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${BB_CURRENT_MC}${IMAGE_VERSION_SUFFIX}" |
28 | 26 | ||
29 | ESW_COMPONENT ??= "empty_application.elf" | 27 | ESW_COMPONENT ??= "empty_application.elf" |
30 | 28 | ||
@@ -38,8 +36,8 @@ do_install() { | |||
38 | 36 | ||
39 | do_deploy() { | 37 | do_deploy() { |
40 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${CUSTOM_APP_BASE_NAME}.elf | 38 | install -Dm 0644 ${B}/${ESW_COMPONENT} ${DEPLOYDIR}/${CUSTOM_APP_BASE_NAME}.elf |
41 | ln -sf ${CUSTOM_APP_BASE_NAME}.elf ${DEPLOYDIR}/${CUSTOM_APP_IMAGE_NAME}.elf | 39 | ln -sf ${CUSTOM_APP_BASE_NAME}.elf ${DEPLOYDIR}/${CUSTOM_APP_IMAGE_NAME}-${MACHINE}-${BB_CURRENT_MC}.elf |
42 | install -m 0644 ${B}/empty_application.bin ${DEPLOYDIR}/${CUSTOM_APP_BASE_NAME}.bin | 40 | install -m 0644 ${B}/empty_application.bin ${DEPLOYDIR}/${CUSTOM_APP_BASE_NAME}.bin |
43 | ln -sf ${CUSTOM_APP_BASE_NAME}.bin ${DEPLOYDIR}/${CUSTOM_APP_IMAGE_NAME}.bin | 41 | ln -sf ${CUSTOM_APP_BASE_NAME}.bin ${DEPLOYDIR}/${CUSTOM_APP_IMAGE_NAME}-${MACHINE}-${BB_CURRENT_MC}.bin |
44 | } | 42 | } |
45 | addtask deploy before do_build after do_install | 43 | addtask deploy before do_build after do_install |