summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory Williams <gregory.williams@amd.com>2023-03-02 12:46:42 -0800
committerMark Hatle <mark.hatle@amd.com>2023-03-03 10:50:38 -0600
commit47b61b48cee6320a763f2765c5e2d37aa7a5b8f4 (patch)
tree74b9e278140b3dd2106fbe83dd513b5a3739eb09
parentf38d19a618f1a313042584a59cbfa6f6cfaceb41 (diff)
downloadmeta-xilinx-47b61b48cee6320a763f2765c5e2d37aa7a5b8f4.tar.gz
meta-xilinx-core: Change CFLAGS for ai-engine-driver
Change CFLAGS to exclude thread-jumps and tree-pre optimizations. Building driver with these optimizations is causing some driver calls to hang. Signed-off-by: Gregory Williams <gregory.williams@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.2.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.2.bb b/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.2.bb
index 8bb9a1aa..787111b5 100644
--- a/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.2.bb
+++ b/meta-xilinx-core/recipes-bsp/ai-engine/ai-engine-driver_3.2.bb
@@ -25,7 +25,7 @@ RPROVIDES:${PN} = "libxaiengine"
25# The makefile isn't ready for parallel execution at the moment 25# The makefile isn't ready for parallel execution at the moment
26PARALLEL_MAKE = "-j 1" 26PARALLEL_MAKE = "-j 1"
27 27
28CFLAGS += "-Wall -Wextra" 28CFLAGS += "-Wall -Wextra -fno-thread-jumps -fno-tree-pre"
29CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'Linux', ' -D__AIELINUX__', '', d)}" 29CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'Linux', ' -D__AIELINUX__', '', d)}"
30CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'metal', ' -D__AIEMETAL__', '', d)}" 30CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'metal', ' -D__AIEMETAL__', '', d)}"
31EXTRA_OEMAKE = "-C ${AIEDIR}/src -f Makefile.Linux CFLAGS='${CFLAGS}'" 31EXTRA_OEMAKE = "-C ${AIEDIR}/src -f Makefile.Linux CFLAGS='${CFLAGS}'"