tools/ninja: use existing ninja to build ninja
authorMichael Pratt <mcpratt@pm.me>
Fri, 2 Aug 2024 08:02:58 +0000 (04:02 -0400)
committerRobert Marko <robimarko@gmail.com>
Mon, 14 Oct 2024 11:58:44 +0000 (13:58 +0200)
commitdf303c7ef49d8dc8a0061e002ea021d4e7c8f529
treec8dcaffbf386998f18f804d785809a1b9e5656de
parent3efedda1daa8c8fd048b0df926a04086e054c365
tools/ninja: use existing ninja to build ninja

Add methods to skip the building and execution of Ninja by python
in order to allow Make to execute Ninja after the configure script.

This allows the user to build Ninja only once
if they already have an older version of Ninja built.

It also allows the user to test the jobserver functionality
by having Ninja built twice (clean then compile).

Signed-off-by: Michael Pratt <mcpratt@pm.me>
Link: https://github.com/openwrt/openwrt/pull/16693
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/ninja/Makefile
tools/ninja/patches/010-bootstrap-configure-only.patch [new file with mode: 0644]
tools/ninja/patches/100-make_jobserver_support.patch