diff options
author | Jaydip Patel <jaydip.patel@amd.com> | 2024-06-25 04:41:30 -0700 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-06-25 18:18:48 -0500 |
commit | cd2f900a6e347c72fa644e9036631d9d6e05129e (patch) | |
tree | e4d9523026efbf65ca7ba9c8726221a2d869d012 | |
parent | 15eb231bb86efdf8ea85325486de57c3305e139b (diff) | |
download | meta-xilinx-cd2f900a6e347c72fa644e9036631d9d6e05129e.tar.gz |
meta-xilinx-standalone-sdt: Added recipes for aienginev2 & aiefal
Added aienginev2 and aiefal recipes to support AIENGINE in baremtal
decoupling flow. AIENGINE v2 is not dependent on ESW repo. It fetches
aie-rt repo & compile yocto baremtal driver. Updated latest SRCREV of
main-aie branch as there is dependency on CMake APIs to build AIENGINE
driver.
Signed-off-by: Jaydip Patel <jaydip.patel@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
3 files changed, 75 insertions, 1 deletions
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 index 95a86f7f..28c4806c 100644 --- 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 | |||
@@ -3,7 +3,7 @@ SECTION = "libs" | |||
3 | REPO ?= "git://github.com/Xilinx/aie-rt.git;protocol=https" | 3 | REPO ?= "git://github.com/Xilinx/aie-rt.git;protocol=https" |
4 | 4 | ||
5 | BRANCH ?= "main-aie" | 5 | BRANCH ?= "main-aie" |
6 | SRCREV ?= "950a7dccf4e53e3f435b847e18e4a138d6caadb9" | 6 | SRCREV ?= "5f669f09cb48fbf1f4e7fea3d5097a194d568a29" |
7 | 7 | ||
8 | LICENSE = "BSD-3-Clause" | 8 | LICENSE = "BSD-3-Clause" |
9 | LIC_FILES_CHKSUM ?= "file://license.txt;md5=04a153cae61a8a606fc79dff49c2c897" | 9 | LIC_FILES_CHKSUM ?= "file://license.txt;md5=04a153cae61a8a606fc79dff49c2c897" |
diff --git a/meta-xilinx-standalone-sdt/recipes-drivers/aiefal_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-drivers/aiefal_2024.2.bb new file mode 100644 index 00000000..7d7b76ac --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-drivers/aiefal_2024.2.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | inherit cmake ccmake | ||
2 | |||
3 | COMPATIBLE_HOST = "aarch64-xilinx-elf" | ||
4 | |||
5 | require ../../meta-xilinx-core/recipes-bsp/ai-engine/aie-rt-2024.2.inc | ||
6 | |||
7 | S = "${WORKDIR}/git" | ||
8 | B = "${WORKDIR}/build" | ||
9 | |||
10 | EXTRA_OECMAKE += "-DYOCTO=ON" | ||
11 | DEPENDS += "xilstandalone xiltimer aienginev2" | ||
12 | |||
13 | ESW_COMPONENT_SRC = "/fal/src/" | ||
14 | |||
15 | OECMAKE_SOURCEPATH = "${S}/${ESW_COMPONENT_SRC}" | ||
16 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" | ||
17 | XLNX_CMAKE_BSP_VARS ?= "" | ||
18 | |||
19 | cmake_do_generate_toolchain_file:append() { | ||
20 | cat >> ${WORKDIR}/toolchain.cmake <<EOF | ||
21 | include(CMakeForceCompiler) | ||
22 | CMAKE_FORCE_C_COMPILER("${OECMAKE_C_COMPILER}" GNU) | ||
23 | CMAKE_FORCE_CXX_COMPILER("${OECMAKE_CXX_COMPILER}" GNU) | ||
24 | set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) | ||
25 | set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${S}/cmake) | ||
26 | set( CMAKE_LIBRARY_PATH ${B}) | ||
27 | add_definitions( "${XLNX_CMAKE_BSP_VARS} -DSDT" ) | ||
28 | EOF | ||
29 | } | ||
30 | |||
31 | do_install() { | ||
32 | install -d ${D}${includedir} | ||
33 | cp -r ${B}/include/xaiefal ${D}${includedir} | ||
34 | } | ||
35 | |||
diff --git a/meta-xilinx-standalone-sdt/recipes-drivers/aienginev2_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-drivers/aienginev2_2024.2.bb new file mode 100644 index 00000000..68853d57 --- /dev/null +++ b/meta-xilinx-standalone-sdt/recipes-drivers/aienginev2_2024.2.bb | |||
@@ -0,0 +1,39 @@ | |||
1 | inherit cmake ccmake | ||
2 | |||
3 | COMPATIBLE_HOST = "aarch64-xilinx-elf" | ||
4 | |||
5 | require ../../meta-xilinx-core/recipes-bsp/ai-engine/aie-rt-2024.2.inc | ||
6 | |||
7 | S = "${WORKDIR}/git" | ||
8 | B = "${WORKDIR}/build" | ||
9 | |||
10 | EXTRA_OECMAKE += "-DYOCTO=ON" | ||
11 | DEPENDS += "xilstandalone xiltimer" | ||
12 | |||
13 | ESW_COMPONENT_SRC = "/driver/src/" | ||
14 | ESW_COMPONENT_NAME = "libaienginev2.a" | ||
15 | |||
16 | OECMAKE_SOURCEPATH = "${S}/${ESW_COMPONENT_SRC}" | ||
17 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" | ||
18 | XLNX_CMAKE_BSP_VARS ?= "" | ||
19 | |||
20 | cmake_do_generate_toolchain_file:append() { | ||
21 | cat >> ${WORKDIR}/toolchain.cmake <<EOF | ||
22 | include(CMakeForceCompiler) | ||
23 | CMAKE_FORCE_C_COMPILER("${OECMAKE_C_COMPILER}" GNU) | ||
24 | CMAKE_FORCE_CXX_COMPILER("${OECMAKE_CXX_COMPILER}" GNU) | ||
25 | set( CMAKE_SYSTEM_NAME "${XLNX_CMAKE_SYSTEM_NAME}" ) | ||
26 | set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${S}/cmake) | ||
27 | set( CMAKE_LIBRARY_PATH ${B}) | ||
28 | add_definitions( "${XLNX_CMAKE_BSP_VARS} -DSDT" ) | ||
29 | EOF | ||
30 | } | ||
31 | |||
32 | do_install() { | ||
33 | install -d ${D}${libdir} | ||
34 | install -d ${D}${includedir} | ||
35 | install -m 0755 ${B}/${ESW_COMPONENT_NAME} ${D}${libdir} | ||
36 | install -m 0644 ${B}/include/*.h ${D}${includedir} | ||
37 | cp -r ${B}/include/xaiengine ${D}${includedir} | ||
38 | } | ||
39 | |||