diff options
author | Gregory Williams <gregory.williams@amd.com> | 2024-06-18 09:32:50 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-06-20 15:59:16 -0500 |
commit | f2d63bc542f9861a777dd02c25dc2f7800655f20 (patch) | |
tree | ddebc6e4b21203f9a305369a29dac3f2f3dc4b1d | |
parent | 405b492d02273b2f82048fb842786ad8edd79726 (diff) | |
download | meta-xilinx-f2d63bc542f9861a777dd02c25dc2f7800655f20.tar.gz |
meta-xilinx-core: ai-engine: Update recipes for 24.2
Updates source branch for 24.2, updates aiefal and ai-engine-driver
versions.
Changelog:
driver: Version bump
fal: Version bump
driver: src: Implemented APIs for list exsiting partitions to facilitating debugging
Signed-off-by: Gregory Williams <gregory.williams@amd.com>
Leave the '2024' version to be 3.5/2024.1 based.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
3 files changed, 90 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.6.bb b/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.6.bb new file mode 100644 index 00000000..2ca30a95 --- /dev/null +++ b/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.6.bb | |||
@@ -0,0 +1,46 @@ | |||
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-2024.2.inc | ||
5 | |||
6 | SECTION = "libs" | ||
7 | |||
8 | AIEDIR ?= "${S}/driver" | ||
9 | S = "${WORKDIR}/git" | ||
10 | I = "${AIEDIR}/include" | ||
11 | |||
12 | inherit features_check | ||
13 | |||
14 | REQUIRED_MACHINE_FEATURES = "aie" | ||
15 | |||
16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
17 | |||
18 | IOBACKENDS ?= "Linux" | ||
19 | |||
20 | DEPENDS = "${@bb.utils.contains('IOBACKENDS', 'metal', 'libmetal', '', d)}" | ||
21 | RDEPENDS:${PN} = "${@bb.utils.contains('IOBACKENDS', 'metal', 'libmetal', '', d)}" | ||
22 | |||
23 | PROVIDES = "libxaiengine" | ||
24 | RPROVIDES:${PN} = "libxaiengine" | ||
25 | |||
26 | # The makefile isn't ready for parallel execution at the moment | ||
27 | PARALLEL_MAKE = "-j 1" | ||
28 | |||
29 | CFLAGS += "-Wall -Wextra" | ||
30 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'Linux', ' -D__AIELINUX__', '', d)}" | ||
31 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'metal', ' -D__AIEMETAL__', '', d)}" | ||
32 | EXTRA_OEMAKE = "-C ${AIEDIR}/src -f Makefile.Linux CFLAGS='${CFLAGS}'" | ||
33 | |||
34 | |||
35 | do_compile(){ | ||
36 | oe_runmake | ||
37 | } | ||
38 | |||
39 | do_install(){ | ||
40 | install -d ${D}${includedir} | ||
41 | install ${I}/*.h ${D}${includedir}/ | ||
42 | install -d ${D}${includedir}/xaiengine | ||
43 | install ${I}/xaiengine/*.h ${D}${includedir}/xaiengine/ | ||
44 | install -d ${D}${libdir} | ||
45 | cp -dr ${AIEDIR}/src/*.so* ${D}${libdir} | ||
46 | } | ||
diff --git a/meta-xilinx-core/recipes-bsp/ai-engine/aie-rt-2024.2.inc b/meta-xilinx-core/recipes-bsp/ai-engine/aie-rt-2024.2.inc new file mode 100644 index 00000000..95a86f7f --- /dev/null +++ b/meta-xilinx-core/recipes-bsp/ai-engine/aie-rt-2024.2.inc | |||
@@ -0,0 +1,11 @@ | |||
1 | SECTION = "libs" | ||
2 | |||
3 | REPO ?= "git://github.com/Xilinx/aie-rt.git;protocol=https" | ||
4 | |||
5 | BRANCH ?= "main-aie" | ||
6 | SRCREV ?= "950a7dccf4e53e3f435b847e18e4a138d6caadb9" | ||
7 | |||
8 | LICENSE = "BSD-3-Clause" | ||
9 | LIC_FILES_CHKSUM ?= "file://license.txt;md5=04a153cae61a8a606fc79dff49c2c897" | ||
10 | |||
11 | SRC_URI = "${REPO};branch=${BRANCH}" | ||
diff --git a/meta-xilinx-core/recipes-bsp/ai-engine/aiefal_1.7.bb b/meta-xilinx-core/recipes-bsp/ai-engine/aiefal_1.7.bb new file mode 100644 index 00000000..02306015 --- /dev/null +++ b/meta-xilinx-core/recipes-bsp/ai-engine/aiefal_1.7.bb | |||
@@ -0,0 +1,33 @@ | |||
1 | SUMMARY = "Xilinx AI Engine FAL(Functional Abstraction Layer)" | ||
2 | DESCRIPTION = "AIE FAL provides functional abstraction APIs for runtime support of Xilinx AI Engine IP" | ||
3 | |||
4 | require aie-rt-2024.2.inc | ||
5 | |||
6 | SECTION = "devel" | ||
7 | |||
8 | XAIEFAL_DIR ?= "fal" | ||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | inherit features_check | ||
12 | |||
13 | REQUIRED_MACHINE_FEATURES = "aie" | ||
14 | |||
15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
16 | |||
17 | IOBACKENDS ?= "Linux" | ||
18 | |||
19 | PROVIDES = "aiefal" | ||
20 | ALLOW_EMPTY:${PN} = "1" | ||
21 | |||
22 | inherit pkgconfig cmake | ||
23 | |||
24 | DEPENDS = "libxaiengine" | ||
25 | |||
26 | OECMAKE_SOURCEPATH = "${S}/${XAIEFAL_DIR}" | ||
27 | |||
28 | EXTRA_OECMAKE = "-DWITH_TESTS=OFF -DFAL_LINUX=ON " | ||
29 | EXTRA_OECMAKE:append = "${@'-DWITH_EXAMPLES=ON' if d.getVar('WITH_EXAMPLES') == 'y' else '-DWITH_EXAMPLES=OFF'}" | ||
30 | |||
31 | FILES:${PN}-demos = " \ | ||
32 | ${bindir}/* \ | ||
33 | " | ||