diff options
| author | Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> | 2021-08-10 15:27:46 +0530 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-09-28 08:21:01 -0700 |
| commit | b18895efc96c8066409f8c6d953610c26eac62b5 (patch) | |
| tree | a8de65bd09788085476a6d0f920ba548d5e70982 /meta-xilinx-standalone-experimental | |
| parent | f3bef9a3069fcbde0825baddf592f63566d70281 (diff) | |
| download | meta-xilinx-b18895efc96c8066409f8c6d953610c26eac62b5.tar.gz | |
meta-xilinx-standalone-experimental: recipes-libraries: xilsecure-example: Add recipe for compiling xilsecure library examples
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental')
| -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" | ||
