diff options
Diffstat (limited to 'meta-xilinx-standalone/classes')
| -rw-r--r-- | meta-xilinx-standalone/classes/esw_examples.bbclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-xilinx-standalone/classes/esw_examples.bbclass b/meta-xilinx-standalone/classes/esw_examples.bbclass new file mode 100644 index 00000000..8b59ccb9 --- /dev/null +++ b/meta-xilinx-standalone/classes/esw_examples.bbclass | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | inherit esw deploy | ||
| 2 | |||
| 3 | DEPENDS += "dtc-native python3-pyyaml-native xilstandalone xiltimer device-tree" | ||
| 4 | |||
| 5 | do_generate_eglist () { | ||
| 6 | cd ${S} | ||
| 7 | nativepython3 ${S}/scripts/example.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} | ||
| 8 | } | ||
| 9 | addtask generate_eglist before do_configure after do_prepare_recipe_sysroot | ||
| 10 | do_prepare_recipe_sysroot[rdeptask] = "do_unpack" | ||
| 11 | |||
| 12 | do_install() { | ||
| 13 | install -d ${D}/${base_libdir}/firmware | ||
| 14 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
| 15 | } | ||
| 16 | |||
| 17 | do_deploy() { | ||
| 18 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/ | ||
| 19 | } | ||
| 20 | addtask deploy before do_build after do_package | ||
| 21 | |||
| 22 | FILES_${PN} = "${base_libdir}/firmware/*.elf" | ||
