summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-standalone-experimental/classes/esw_examples.bbclass')
-rw-r--r--meta-xilinx-standalone-experimental/classes/esw_examples.bbclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass b/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass
index 391f388e..9b116e9e 100644
--- a/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass
+++ b/meta-xilinx-standalone-experimental/classes/esw_examples.bbclass
@@ -1,15 +1,18 @@
1inherit esw deploy python3native 1inherit esw deploy python3native
2 2
3DEPENDS += "dtc-native python3-dtc-native python3-pyyaml-native xilstandalone libxil xiltimer device-tree" 3DEPENDS += "python3-dtc-native python3-pyyaml-native xilstandalone libxil xiltimer"
4 4
5do_configure_prepend() { 5do_configure_prepend() {
6 cd ${S} 6 cd ${S}
7 nativepython3 ${S}/scripts/linker_gen.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} 7 lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC}
8 install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/
9 install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
8} 10}
9 11
10do_generate_eglist () { 12do_generate_eglist () {
11 cd ${S} 13 cd ${S}
12 nativepython3 ${S}/scripts/example.py -d ${DTBFILE} -o ${OECMAKE_SOURCEPATH} 14 lopper.py ${DTS_FILE} -- bmcmake_metadata_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} drvcmake_metadata
15 install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
13} 16}
14addtask generate_eglist before do_configure after do_prepare_recipe_sysroot 17addtask generate_eglist before do_configure after do_prepare_recipe_sysroot
15do_prepare_recipe_sysroot[rdeptask] = "do_unpack" 18do_prepare_recipe_sysroot[rdeptask] = "do_unpack"
@@ -20,7 +23,8 @@ do_install() {
20} 23}
21 24
22do_deploy() { 25do_deploy() {
23 install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/ 26 install -d ${DEPLOYDIR}/${MACHINE}-${BPN}/
27 install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${MACHINE}-${BPN}/
24} 28}
25addtask deploy before do_build after do_package 29addtask deploy before do_build after do_package
26 30