diff options
author | Gregory Williams <gregory.williams@amd.com> | 2023-03-02 12:46:42 -0800 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2023-03-03 10:50:38 -0600 |
commit | 47b61b48cee6320a763f2765c5e2d37aa7a5b8f4 (patch) | |
tree | 74b9e278140b3dd2106fbe83dd513b5a3739eb09 | |
parent | f38d19a618f1a313042584a59cbfa6f6cfaceb41 (diff) | |
download | meta-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.bb | 2 |
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 |
26 | PARALLEL_MAKE = "-j 1" | 26 | PARALLEL_MAKE = "-j 1" |
27 | 27 | ||
28 | CFLAGS += "-Wall -Wextra" | 28 | CFLAGS += "-Wall -Wextra -fno-thread-jumps -fno-tree-pre" |
29 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'Linux', ' -D__AIELINUX__', '', d)}" | 29 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'Linux', ' -D__AIELINUX__', '', d)}" |
30 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'metal', ' -D__AIEMETAL__', '', d)}" | 30 | CFLAGS += "${@bb.utils.contains('IOBACKENDS', 'metal', ' -D__AIEMETAL__', '', d)}" |
31 | EXTRA_OEMAKE = "-C ${AIEDIR}/src -f Makefile.Linux CFLAGS='${CFLAGS}'" | 31 | EXTRA_OEMAKE = "-C ${AIEDIR}/src -f Makefile.Linux CFLAGS='${CFLAGS}'" |