diff options
| author | Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> | 2021-09-28 18:03:53 +0530 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-11-02 00:17:58 -0700 |
| commit | 6f80a823347d4f6fec773ed05c819dbca0249a59 (patch) | |
| tree | a266becc2947c475733cc73bcaa4a5d711dd02e2 /meta-xilinx-standalone-experimental/recipes-drivers | |
| parent | b4c5ac9a7e789b20c143e42053b55dc3dda52770 (diff) | |
| download | meta-xilinx-6f80a823347d4f6fec773ed05c819dbca0249a59.tar.gz | |
meta-xilinx-standalone-experimental: recipes-drivers: clockps: Add recipe for compiling clockps driver examples
This recipe compiles the intc driver examples.
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental/recipes-drivers')
| -rw-r--r-- | meta-xilinx-standalone-experimental/recipes-drivers/clockps-example_git.bb | 39 |
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 @@ | |||
| 1 | inherit esw deploy features_check | ||
| 2 | |||
| 3 | ESW_COMPONENT_SRC = "XilinxProcessorIPLib/drivers/clockps/examples/" | ||
| 4 | |||
| 5 | REQUIRED_DISTRO_FEATURES = "clockps" | ||
| 6 | |||
| 7 | DEPENDS += "libxil xiltimer resetps" | ||
| 8 | |||
| 9 | inherit python3native | ||
| 10 | |||
| 11 | do_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 | |||
| 18 | CLOCKPS_EX_IMAGE_NAME ??= "${BPN}" | ||
| 19 | |||
| 20 | inherit image-artifact-names | ||
| 21 | |||
| 22 | CLOCKPS_EX_NAME ?= "${CLOCKPS_EX_IMAGE_NAME}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}${IMAGE_VERSION_SUFFIX}" | ||
| 23 | |||
| 24 | ESW_COMPONENT ??= "*.elf" | ||
| 25 | |||
| 26 | addtask deploy before do_build after do_install | ||
| 27 | |||
| 28 | do_install() { | ||
| 29 | install -d ${D}/${base_libdir}/firmware | ||
| 30 | install -m 0755 ${B}/*.elf ${D}/${base_libdir}/firmware | ||
| 31 | } | ||
| 32 | |||
| 33 | do_deploy() { | ||
| 34 | install -d ${DEPLOYDIR}/${MACHINE}-${BPN}/ | ||
| 35 | install -Dm 0644 ${WORKDIR}/package/${base_libdir}/firmware/*.elf ${DEPLOYDIR}/${MACHINE}-${BPN}/ | ||
| 36 | } | ||
| 37 | addtask deploy before do_build after do_package | ||
| 38 | |||
| 39 | FILES_${PN} = "${base_libdir}/firmware/*.elf" | ||
