summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_git.bb')
-rw-r--r--meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_git.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_git.bb b/meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_git.bb
new file mode 100644
index 00000000..d01e5d7f
--- /dev/null
+++ b/meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_git.bb
@@ -0,0 +1,39 @@
1inherit esw deploy features_check
2
3ESW_COMPONENT_SRC = "XilinxProcessorIPLib/drivers/clockps/examples/"
4
5REQUIRED_DISTRO_FEATURES = "clockps"
6
7DEPENDS += "libxil xiltimer resetps"
8
9inherit python3native
10
11do_configure_prepend() {
12 cd ${S}
13 lopper.py ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC}
14 install -m 0755 memory.ld ${S}/${ESW_COMPONENT_SRC}/
15 install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/
16}
17
18CLOCKPS_EX_IMAGE_NAME ??= "${BPN}"
19
20inherit image-artifact-names
21
22CLOCKPS_EX_NAME ?= "${CLOCKPS_EX_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
23
24ESW_COMPONENT ??= "*.elf"
25
26addtask deploy before do_build after do_install
27
28do_install() {
29 install -d ${D}/${base_libdir}/firmware
30 install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware
31}
32
33do_deploy() {
34 install -d ${DEPLOYDIR}/${MACHINE}-${BPN}/
35 install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${MACHINE}-${BPN}/
36}
37addtask deploy before do_build after do_package
38
39FILES_${PN} = "${base_libdir}/firmware/*.elf"