diff options
Diffstat (limited to 'meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb')
| -rw-r--r-- | meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb new file mode 100644 index 00000000..cae39d17 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-libraries/xilffs-example_2024.2.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | inherit esw deploy | ||
| 2 | |||
| 3 | # Requires by dependency xilffs | ||
| 4 | REQUIRED_MACHINE_FEATURES = "sdps" | ||
| 5 | |||
| 6 | ESW_COMPONENT_SRC = "/lib/sw_services/xilffs/examples/" | ||
| 7 | |||
| 8 | DEPENDS += "xilffs xiltimer" | ||
| 9 | |||
| 10 | do_configure:prepend() { | ||
| 11 | ( | ||
| 12 | cd ${S} | ||
| 13 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
| 14 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
| 15 | ) | ||
| 16 | } | ||
| 17 | |||
| 18 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
| 19 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
| 20 | |||
| 21 | do_install() { | ||
| 22 | install -d ${D}/${base_libdir}/firmware | ||
| 23 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
| 24 | } | ||
| 25 | |||
| 26 | do_deploy() { | ||
| 27 | install -d ${DEPLOYDIR}/${BPN}/ | ||
| 28 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
| 29 | } | ||
| 30 | addtask deploy before do_build after do_package | ||
| 31 | |||
| 32 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||
