diff options
| -rw-r--r-- | meta-xilinx-standalone-experimental/recipes-libraries/xilsecure-example_git.bb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/xilsecure-example_git.bb b/meta-xilinx-standalone-experimental/recipes-libraries/xilsecure-example_git.bb new file mode 100644 index 00000000..1d589228 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-libraries/xilsecure-example_git.bb | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | inherit esw deploy | ||
| 2 | |||
| 3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilsecure/examples/" | ||
| 4 | |||
| 5 | DEPENDS += "xilsecure" | ||
| 6 | |||
| 7 | do_configure_prepend() { | ||
| 8 | cd ${S} | ||
| 9 | lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
| 10 | install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/ | ||
| 11 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
| 12 | } | ||
| 13 | |||
| 14 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
| 15 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
| 16 | |||
| 17 | do_install() { | ||
| 18 | install -d ${D}/${base_libdir}/firmware | ||
| 19 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
| 20 | } | ||
| 21 | |||
| 22 | do_deploy() { | ||
| 23 | install -d ${DEPLOYDIR}/${MACHINE}-${BPN}/ | ||
| 24 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${MACHINE}-${BPN}/ | ||
| 25 | } | ||
| 26 | addtask deploy before do_build after do_package | ||
| 27 | |||
| 28 | FILES_${PN} = "${base_libdir}/firmware/*.elf" | ||
