diff options
-rw-r--r-- | meta-ti-bsp/conf/layer.conf | 4 | ||||
-rw-r--r-- | meta-ti-bsp/dynamic-layers/clang-layer/recipes-graphics/mesa/mesa-pvr_%.bbappend | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta-ti-bsp/conf/layer.conf b/meta-ti-bsp/conf/layer.conf index 26cbb4b5..56ca392b 100644 --- a/meta-ti-bsp/conf/layer.conf +++ b/meta-ti-bsp/conf/layer.conf | |||
@@ -18,6 +18,10 @@ LAYERDEPENDS_meta-ti-bsp = " \ | |||
18 | meta-arm \ | 18 | meta-arm \ |
19 | " | 19 | " |
20 | 20 | ||
21 | BBFILES_DYNAMIC += " \ | ||
22 | clang-layer:${LAYERDIR}/dynamic-layers/clang-layer/recipes*/*/*.bbappend \ | ||
23 | " | ||
24 | |||
21 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ | 25 | SIGGEN_EXCLUDERECIPES_ABISAFE += " \ |
22 | mesa-pvr \ | 26 | mesa-pvr \ |
23 | " | 27 | " |
diff --git a/meta-ti-bsp/dynamic-layers/clang-layer/recipes-graphics/mesa/mesa-pvr_%.bbappend b/meta-ti-bsp/dynamic-layers/clang-layer/recipes-graphics/mesa/mesa-pvr_%.bbappend new file mode 100644 index 00000000..7e5c36fd --- /dev/null +++ b/meta-ti-bsp/dynamic-layers/clang-layer/recipes-graphics/mesa/mesa-pvr_%.bbappend | |||
@@ -0,0 +1,14 @@ | |||
1 | # This is a copy of meta-clang/recipes-graphics/mesa/mesa_%.bbappend required | ||
2 | # for llvmpipe when using pvr-mesa since we aren't caught by that glob. | ||
3 | |||
4 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" | ||
5 | |||
6 | LDFLAGS:append:toolchain-clang = " -latomic -lm" | ||
7 | DEPENDS:append:toolchain-clang = " libatomic-ops" | ||
8 | |||
9 | EXTRA_OEMASON:append:toolchain-clang:x86 = " -Dasm=false" | ||
10 | EXTRA_OEMASON:append:toolchain-clang:x86-64 = " -Dasm=false" | ||
11 | |||
12 | export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm-config" | ||
13 | |||
14 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=true -Dshared-llvm=true -Ddraw-use-llvm=true,-Dllvm=false,clang clang-native elfutils" | ||