[PATCH] tools: fix ninja build dependency

Bjørn Mork bjorn at mork.no
Sat Jun 12 05:12:06 PDT 2021


Fixing this build error:

 make[3]: Entering directory '/p/tools/ccache'
 MAKEFLAGS="" /p/staging_dir/host/bin/ninja  -j1 -C /p/build_dir/host/ccache-4.2.1
 bash: /p/staging_dir/host/bin/ninja: No such file or directory
 make[3]: *** [Makefile:43: /p/build_dir/host/ccache-4.2.1/.built] Error 127
 make[3]: Leaving directory '/p/tools/ccache'
 time: tools/ccache/compile#0.03#0.00#0.04
     ERROR: tools/ccache failed to build.
 make[2]: *** [tools/Makefile:158: tools/ccache/compile] Error 1

Fixes: 97258f53634d ("build: add ninja build tool and make it available for cmake")
Signed-off-by: Bjørn Mork <bjorn at mork.no>
---
 tools/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Makefile b/tools/Makefile
index 47a82fd23782..dccf298af6ee 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -43,7 +43,7 @@ $(curdir)/b43-tools/compile := $(curdir)/bison/compile
 $(curdir)/bc/compile := $(curdir)/bison/compile $(curdir)/libtool/compile
 $(curdir)/bison/compile := $(curdir)/flex/compile
 $(curdir)/cbootimage/compile += $(curdir)/automake/compile
-$(curdir)/cmake/compile += $(curdir)/libressl/compile
+$(curdir)/cmake/compile += $(curdir)/libressl/compile $(curdir)/ninja/compile
 $(curdir)/dosfstools/compile := $(curdir)/autoconf/compile $(curdir)/automake/compile
 $(curdir)/e2fsprogs/compile := $(curdir)/libtool/compile
 $(curdir)/fakeroot/compile := $(curdir)/libtool/compile
-- 
2.20.1




More information about the openwrt-devel mailing list