diff options
| author | Gregory Williams <gregory.williams@amd.com> | 2023-06-19 08:42:51 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-06-21 15:07:01 -0500 |
| commit | aa3e8e81135b0de329060835491eaa3f339e1c30 (patch) | |
| tree | 0bf0e7500e8cbf46280fb466154b12a0141e706c /meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.4.bb | |
| parent | ecfc108ebf007ddd6d02f8d5012f25daf153cded (diff) | |
| download | meta-xilinx-aa3e8e81135b0de329060835491eaa3f339e1c30.tar.gz | |
meta-xilinx-core: Update ai-engine-driver and aiefal versions
Updates ai-engine-driver and aiefal versions for 2023.2 release. Source
revision is updated to latest commit of main-aie branch.
Signed-off-by: Gregory Williams <gregory.williams@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.4.bb')
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.4.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.4.bb b/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.4.bb new file mode 100644 index 00000000..47b79c47 --- /dev/null +++ b/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.4.bb | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | SUMMARY = "Xilinx AI Engine runtime" | ||
| 2 | DESCRIPTION = "This library provides APIs for the runtime support of the Xilinx AI Engine IP" | ||
| 3 | |||
| 4 | require aie-rt.inc | ||
| 5 | |||
| 6 | SECTION = "libs" | ||
| 7 | |||
| 8 | AIEDIR ?= "${S}/driver" | ||
| 9 | S = "${WORKDIR}/git" | ||
| 10 | I = "${AIEDIR}/include" | ||
| 11 | |||
| 12 | COMPATIBLE_MACHINE = "^$" | ||
| 13 | COMPATIBLE_MACHINE:versal-ai-core = "versal-ai-core" | ||
| 14 | COMPATIBLE_MACHINE:versal-ai-edge = "${SOC_VARIANT_ARCH}" | ||
| 15 | PV = "3.3" | ||
| 16 | |||
| 17 | IOBACKENDS ?= "Linux" | ||
| 18 | |||
| 19 | DEPENDS = "${@bb.utils.contains('IOBACKENDS', 'metal', 'libmetal', '', d)}" | ||
| 20 | RDEPENDS:${PN} = "${@bb.utils.contains('IOBACKENDS', 'metal', 'libmetal', '', d)}" | ||
| 21 | |||
| 22 | PROVIDES = "libxaiengine" | ||
| 23 | RPROVIDES:${PN} = "libxaiengine" | ||
| 24 | |||
| 25 | # The makefile isn't ready for parallel execution at the moment | ||
| 26 | PARALLEL_MAKE = "-j 1" | ||
| 27 | |||
| 28 | CFLAGS += "-Wall -Wextra" | ||
| 29 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'Linux', ' -D__AIELINUX__', '', d)}" | ||
| 30 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'metal', ' -D__AIEMETAL__', '', d)}" | ||
| 31 | EXTRA_OEMAKE = "-C ${AIEDIR}/src -f Makefile.Linux CFLAGS='${CFLAGS}'" | ||
| 32 | |||
| 33 | |||
| 34 | do_compile(){ | ||
| 35 | oe_runmake | ||
| 36 | } | ||
| 37 | |||
| 38 | do_install(){ | ||
| 39 | install -d ${D}${includedir} | ||
| 40 | install ${I}/*.h ${D}${includedir}/ | ||
| 41 | install -d ${D}${includedir}/xaiengine | ||
| 42 | install ${I}/xaiengine/*.h ${D}${includedir}/xaiengine/ | ||
| 43 | install -d ${D}${libdir} | ||
| 44 | cp -dr ${AIEDIR}/src/*.so* ${D}${libdir} | ||
| 45 | } | ||
| 46 | |||
| 47 | PACKAGE_ARCH:versal-ai-core = "${SOC_VARIANT_ARCH}" | ||
