summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaewon Lee <jaewon.lee@xilinx.com>2020-08-27 09:06:53 -0700
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2020-09-08 11:13:22 -0700
commitbc83c9b61ab408d794ea8a2de2bbe1beadf02220 (patch)
tree308ef091e13e5aeb82447dabdd51119314e5216e
parent2de6eea0355a5b9e1a4e3313a1d30f2be2126011 (diff)
downloadmeta-xilinx-bc83c9b61ab408d794ea8a2de2bbe1beadf02220.tar.gz
xrt_git.bb: Using variant specific override for ai-core usage
Only the xrt build for the ai-core variant of versal will need to link against ai libraries. Using SOC_VARIANT specific overrides to set PACKAGE_ARCH, and other build flags Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
-rw-r--r--meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb b/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb
index 2745bb69..71725d0b 100644
--- a/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb
+++ b/meta-xilinx-bsp/recipes-xrt/xrt/xrt_git.bb
@@ -32,11 +32,11 @@ EXTRA_OECMAKE += " \
32 -DCMAKE_EXPORT_COMPILE_COMANDS=ON \ 32 -DCMAKE_EXPORT_COMPILE_COMANDS=ON \
33 " 33 "
34 34
35PACKAGE_ARCH_versal = "${SOC_FAMILY_ARCH}" 35PACKAGE_ARCH_versal-ai-core = "${SOC_VARIANT_ARCH}"
36EXTRA_OECMAKE_append_versal += "-DXRT_AIE_BUILD=true" 36EXTRA_OECMAKE_append_versal-ai-core += "-DXRT_AIE_BUILD=true"
37TARGET_CXXFLAGS_append_versal += "-DXRT_ENABLE_AIE" 37TARGET_CXXFLAGS_append_versal-ai-core += "-DXRT_ENABLE_AIE"
38DEPENDS_append_versal += " libmetal libxaiengine" 38DEPENDS_append_versal-ai-core += " libmetal libxaiengine"
39RDEPENDS_${PN}_append_versal += " libxaiengine" 39RDEPENDS_${PN}_append_versal-ai-core += " libxaiengine"
40 40
41pkg_postinst_ontarget_${PN}() { 41pkg_postinst_ontarget_${PN}() {
42 #!/bin/sh 42 #!/bin/sh