diff options
| author | Jose Quaresma <quaresma.jose@gmail.com> | 2021-01-24 18:07:57 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-29 15:59:40 +0000 |
| commit | e4d03c40f6843b05d7f9259c73a4334fee52e1a8 (patch) | |
| tree | cca743a5c1263340c8f80de84b4109d45c808d60 | |
| parent | 5fc62dd6689ffcce260274aa7189827806f22123 (diff) | |
| download | poky-e4d03c40f6843b05d7f9259c73a4334fee52e1a8.tar.gz | |
shaderc: avoid reproducible issues
(From OE-Core rev: 1fb9e706ba83df272ca924d8ea65460bb5675aa8)
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-graphics/shaderc/shaderc_2020.4.bb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb index ee9b118371..e886e81d0e 100644 --- a/meta/recipes-graphics/shaderc/shaderc_2020.4.bb +++ b/meta/recipes-graphics/shaderc/shaderc_2020.4.bb | |||
| @@ -19,15 +19,17 @@ DEPENDS = "spirv-tools glslang" | |||
| 19 | 19 | ||
| 20 | EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON" | 20 | EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON" |
| 21 | 21 | ||
| 22 | BBCLASSEXTEND = "native nativesdk" | ||
| 23 | |||
| 24 | # TODO: probably there is better solution for this. | ||
| 25 | # I don't know any method for get the version of a receipe in DEPENDS, | ||
| 26 | # so do this ugly hack | ||
| 27 | inherit pkgconfig | ||
| 28 | DEPENDS += "glslang-native" | ||
| 22 | do_configure_prepend() { | 29 | do_configure_prepend() { |
| 23 | # TODO: probably there is better solution for this. | ||
| 24 | # I dont know any method for get the version of a receipe in DEPENDS | ||
| 25 | # so do this ugly hack | ||
| 26 | cat <<- EOF > ${S}/glslc/src/build-version.inc | 30 | cat <<- EOF > ${S}/glslc/src/build-version.inc |
| 27 | "${PV}\\n" | 31 | "${PV}\\n" |
| 28 | "$(pkg-config --modversion SPIRV-Tools)\\n" | 32 | "$(pkg-config --modversion SPIRV-Tools)\\n" |
| 29 | "$(glslangValidator --version | head -1 | cut -d' ' -f3)\\n" | 33 | "$(glslangValidator --version | head -1 | cut -d' ' -f3)\\n" |
| 30 | EOF | 34 | EOF |
| 31 | } | 35 | } |
| 32 | |||
| 33 | BBCLASSEXTEND = "native nativesdk" | ||
