diff options
author | Mohd Saquib Siraj <mohdsaquib.siraj@amd.com> | 2024-02-12 15:40:40 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-02-13 13:06:18 -0600 |
commit | 8775ea2c883042568f1c6735f3325c4f764a14e9 (patch) | |
tree | ac0e7f52a5ccd85229d4103a46f300b2a481633d | |
parent | 9be2b3a196ce333890ec21968d49df15cefb121f (diff) | |
download | meta-xilinx-8775ea2c883042568f1c6735f3325c4f764a14e9.tar.gz |
xilskey-example_2024.1.bb: Added recipe to build xilskey examples
Have added the recipe to build the xilskey examples as part of this patch
Signed-off-by: Mohd Saquib Siraj <mohdsaquib.siraj@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r-- | meta-xilinx-standalone-experimental/recipes-libraries/xilskey-example_2024.1.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-libraries/xilskey-example_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-libraries/xilskey-example_2024.1.bb new file mode 100644 index 00000000..a42d6fd2 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-libraries/xilskey-example_2024.1.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | inherit esw deploy | ||
2 | |||
3 | ESW_COMPONENT_SRC = "/lib/sw_services/xilskey/examples/" | ||
4 | |||
5 | DEPENDS += "xilskey xilsecure" | ||
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 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
12 | ) | ||
13 | } | ||
14 | |||
15 | ESW_CUSTOM_LINKER_FILE ?= "None" | ||
16 | EXTRA_OECMAKE = "-DCUSTOM_LINKER_FILE=${@d.getVar('ESW_CUSTOM_LINKER_FILE')}" | ||
17 | |||
18 | do_install() { | ||
19 | install -d ${D}/${base_libdir}/firmware | ||
20 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
21 | } | ||
22 | |||
23 | do_deploy() { | ||
24 | install -d ${DEPLOYDIR}/${BPN}/ | ||
25 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
26 | } | ||
27 | addtask deploy before do_build after do_package | ||
28 | |||
29 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||