diff options
4 files changed, 5 insertions, 129 deletions
diff --git a/meta-oe/recipes-graphics/spir/files/0001-Add-install-PHONY-target-in-Makefile.patch b/meta-oe/recipes-graphics/spir/files/0001-Add-install-PHONY-target-in-Makefile.patch deleted file mode 100644 index 78598ea1ea..0000000000 --- a/meta-oe/recipes-graphics/spir/files/0001-Add-install-PHONY-target-in-Makefile.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 8d9870b66c3cfcf12ce7e8e013946e2a215bb722 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ankit Navik <ankit.tarot@gmail.com> | ||
3 | Date: Sat, 22 Dec 2018 19:16:02 +0530 | ||
4 | Subject: [PATCH] Add install PHONY target in Makefile | ||
5 | |||
6 | --- | ||
7 | Makefile | 8 +++++++- | ||
8 | 1 file changed, 7 insertions(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/Makefile b/Makefile | ||
11 | index 0564b65..0993372 100644 | ||
12 | --- a/Makefile | ||
13 | +++ b/Makefile | ||
14 | @@ -35,7 +35,13 @@ $(STATIC_LIB): $(OBJECTS) | ||
15 | %.o: %.cpp | ||
16 | $(CXX) -c -o $@ $< $(CXXFLAGS) -MMD | ||
17 | |||
18 | +install: | ||
19 | + mkdir -p $(TARGET_DIR_BIN) | ||
20 | + mkdir -p $(TARGET_DIR_LIB) | ||
21 | + cp $(TARGET) $(TARGET_DIR_BIN)/ | ||
22 | + cp $(STATIC_LIB) $(TARGET_DIR_LIB)/ | ||
23 | + | ||
24 | clean: | ||
25 | rm -f $(TARGET) $(OBJECTS) $(CLI_OBJECTS) $(STATIC_LIB) $(DEPS) | ||
26 | |||
27 | -.PHONY: clean | ||
28 | +.PHONY: all install clean | ||
29 | -- | ||
30 | 2.7.4 | ||
31 | |||
diff --git a/meta-oe/recipes-graphics/spir/files/0001-Avoid-pessimizing-std-move-3124.patch b/meta-oe/recipes-graphics/spir/files/0001-Avoid-pessimizing-std-move-3124.patch deleted file mode 100644 index 9b48cdcd09..0000000000 --- a/meta-oe/recipes-graphics/spir/files/0001-Avoid-pessimizing-std-move-3124.patch +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | From 4fffcd275b50d08b54b0411679ead98970651bad Mon Sep 17 00:00:00 2001 | ||
2 | From: David Neto <dneto@google.com> | ||
3 | Date: Fri, 27 Dec 2019 12:05:58 -0500 | ||
4 | Subject: [PATCH] Avoid pessimizing std::move (#3124) | ||
5 | |||
6 | Should fix a warning | ||
7 | |||
8 | Upstream-Status: Backport [https://github.com/KhronosGroup/SPIRV-Tools/commit/8aa423930db37e37086665efcc55944d577c06e5] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | test/opt/pass_fixture.h | 9 +++------ | ||
12 | 1 file changed, 3 insertions(+), 6 deletions(-) | ||
13 | |||
14 | diff --git a/test/opt/pass_fixture.h b/test/opt/pass_fixture.h | ||
15 | index 53fb206f..64c089d8 100644 | ||
16 | --- a/test/opt/pass_fixture.h | ||
17 | +++ b/test/opt/pass_fixture.h | ||
18 | @@ -60,8 +60,7 @@ class PassTest : public TestT { | ||
19 | // from pass Process() function. | ||
20 | std::tuple<std::vector<uint32_t>, Pass::Status> OptimizeToBinary( | ||
21 | Pass* pass, const std::string& original, bool skip_nop) { | ||
22 | - context_ = | ||
23 | - std::move(BuildModule(env_, consumer_, original, assemble_options_)); | ||
24 | + context_ = BuildModule(env_, consumer_, original, assemble_options_); | ||
25 | EXPECT_NE(nullptr, context()) << "Assembling failed for shader:\n" | ||
26 | << original << std::endl; | ||
27 | if (!context()) { | ||
28 | @@ -197,8 +196,7 @@ class PassTest : public TestT { | ||
29 | // messages. | ||
30 | template <typename PassT, typename... Args> | ||
31 | void SinglePassRunAndFail(const std::string& original, Args&&... args) { | ||
32 | - context_ = | ||
33 | - std::move(BuildModule(env_, consumer_, original, assemble_options_)); | ||
34 | + context_ = BuildModule(env_, consumer_, original, assemble_options_); | ||
35 | EXPECT_NE(nullptr, context()) << "Assembling failed for shader:\n" | ||
36 | << original << std::endl; | ||
37 | std::ostringstream errs; | ||
38 | @@ -235,8 +233,7 @@ class PassTest : public TestT { | ||
39 | void RunAndCheck(const std::string& original, const std::string& expected) { | ||
40 | assert(manager_->NumPasses()); | ||
41 | |||
42 | - context_ = | ||
43 | - std::move(BuildModule(env_, nullptr, original, assemble_options_)); | ||
44 | + context_ = BuildModule(env_, nullptr, original, assemble_options_); | ||
45 | ASSERT_NE(nullptr, context()); | ||
46 | |||
47 | context()->set_preserve_bindings(OptimizerOptions()->preserve_bindings_); | ||
48 | -- | ||
49 | 2.24.1 | ||
50 | |||
diff --git a/meta-oe/recipes-graphics/spir/files/0001-Respect-CMAKE_INSTALL_LIBDIR-in-installed-CMake-file.patch b/meta-oe/recipes-graphics/spir/files/0001-Respect-CMAKE_INSTALL_LIBDIR-in-installed-CMake-file.patch deleted file mode 100644 index 5d37da8fe0..0000000000 --- a/meta-oe/recipes-graphics/spir/files/0001-Respect-CMAKE_INSTALL_LIBDIR-in-installed-CMake-file.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From caf59c46ea5dc49e4dbf756c642b03e52c1b5468 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 20 Dec 2019 07:02:24 -0800 | ||
4 | Subject: [PATCH] Respect CMAKE_INSTALL_LIBDIR in installed CMake files | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/google/effcee/pull/36] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | CMakeLists.txt | 1 + | ||
10 | effcee/CMakeLists.txt | 4 ++-- | ||
11 | 2 files changed, 3 insertions(+), 2 deletions(-) | ||
12 | |||
13 | --- a/external/effcee/CMakeLists.txt | ||
14 | +++ b/external/effcee/CMakeLists.txt | ||
15 | @@ -27,6 +27,7 @@ endif() | ||
16 | |||
17 | include(cmake/setup_build.cmake) | ||
18 | include(cmake/utils.cmake) | ||
19 | +include(GNUInstallDirs) | ||
20 | |||
21 | add_subdirectory(third_party) | ||
22 | add_subdirectory(effcee) | ||
23 | --- a/external/effcee/effcee/CMakeLists.txt | ||
24 | +++ b/external/effcee/effcee/CMakeLists.txt | ||
25 | @@ -14,8 +14,8 @@ install( | ||
26 | DESTINATION | ||
27 | include/effcee) | ||
28 | install(TARGETS effcee | ||
29 | - LIBRARY DESTINATION lib | ||
30 | - ARCHIVE DESTINATION lib) | ||
31 | + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
32 | + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
33 | |||
34 | if(EFFCEE_BUILD_TESTING) | ||
35 | add_executable(effcee-test | ||
diff --git a/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb b/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb index bf0a5947b0..bf3070701f 100644 --- a/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb +++ b/meta-oe/recipes-graphics/spir/spirv-shader-generator_git.bb | |||
@@ -5,18 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | |||
5 | SECTION = "graphics" | 5 | SECTION = "graphics" |
6 | 6 | ||
7 | S = "${WORKDIR}/git" | 7 | S = "${WORKDIR}/git" |
8 | SRCREV = "ed16b3e69985feaf565efbecea70a1cc2fca2a58" | 8 | SRCREV = "f09ba2777714871bddb70d049878af34b94fa54d" |
9 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Cross.git;branch=master;protocol=https \ | 9 | SRC_URI = "git://github.com/KhronosGroup/SPIRV-Cross.git;branch=master;protocol=https" |
10 | file://0001-Add-install-PHONY-target-in-Makefile.patch \ | 10 | inherit cmake pkgconfig |
11 | " | ||
12 | 11 | ||
13 | EXTRA_OEMAKE += 'TARGET_DIR_LIB="${D}${libdir}"' | 12 | EXTRA_OECMAKE = "-DSPIRV_CROSS_SHARED=ON" |
14 | EXTRA_OEMAKE += 'TARGET_DIR_BIN="${D}${bindir}"' | ||
15 | 13 | ||
16 | do_compile () { | 14 | FILES:${PN} += "${datadir}" |
17 | cd ${S} && oe_runmake | ||
18 | } | ||
19 | |||
20 | do_install () { | ||
21 | cd ${S} && oe_runmake install | ||
22 | } | ||