diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-06-06 09:40:27 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-06-06 11:41:43 -0600 |
commit | 2bbe53c463daf01de661a905e08461231b6ad8f1 (patch) | |
tree | 89a1333afb570524da6ab2b151fc9767386ece76 /meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_2024.1.bb | |
parent | 1601779783bfcd0da237f98b4ee23f6cbf15b669 (diff) | |
parent | 77eba12b28e4258e1f6a8e613902c1b084a170e1 (diff) | |
download | meta-xilinx-2bbe53c463daf01de661a905e08461231b6ad8f1.tar.gz |
Merge remote-tracking branch 'origin/rel-v2024.1' into langdale
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_2024.1.bb')
-rw-r--r-- | meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_2024.1.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_2024.1.bb b/meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_2024.1.bb new file mode 100644 index 00000000..f9c5bce6 --- /dev/null +++ b/meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_2024.1.bb | |||
@@ -0,0 +1,40 @@ | |||
1 | inherit esw deploy features_check | ||
2 | |||
3 | ESW_COMPONENT_SRC = "XilinxProcessorIPLib/drivers/clockps/examples/" | ||
4 | |||
5 | REQUIRED_MACHINE_FEATURES = "clockps" | ||
6 | |||
7 | DEPENDS += "libxil xiltimer resetps" | ||
8 | |||
9 | inherit python3native | ||
10 | |||
11 | do_configure:prepend() { | ||
12 | ( | ||
13 | cd ${S} | ||
14 | lopper ${DTS_FILE} -- baremetallinker_xlnx.py ${ESW_MACHINE} ${S}/${ESW_COMPONENT_SRC} | ||
15 | install -m 0755 *.cmake ${S}/${ESW_COMPONENT_SRC}/ | ||
16 | ) | ||
17 | } | ||
18 | |||
19 | CLOCKPS_EX_IMAGE_NAME ??= "${BPN}" | ||
20 | |||
21 | inherit image-artifact-names | ||
22 | |||
23 | CLOCKPS_EX_NAME ?= "${CLOCKPS_EX_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" | ||
24 | |||
25 | ESW_COMPONENT ??= "*.elf" | ||
26 | |||
27 | addtask deploy before do_build after do_install | ||
28 | |||
29 | do_install() { | ||
30 | install -d ${D}/${base_libdir}/firmware | ||
31 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
32 | } | ||
33 | |||
34 | do_deploy() { | ||
35 | install -d ${DEPLOYDIR}/${BPN}/ | ||
36 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${BPN}/ | ||
37 | } | ||
38 | addtask deploy before do_build after do_package | ||
39 | |||
40 | FILES:${PN} = "${base_libdir}/firmware/*.elf" | ||