From ad75ab97d8c87a1db284c1d7ad060af49240e378 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 27 May 2021 14:53:00 +0000 Subject: [PATCH] added patch to depot tools --- depot_tools.diff | 7 +++---- prepare-build.sh | 6 ++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/depot_tools.diff b/depot_tools.diff index b58eb5c..0422a72 100644 --- a/depot_tools.diff +++ b/depot_tools.diff @@ -1,10 +1,9 @@ diff --git a/gclient_scm.py b/gclient_scm.py -index 8a3410a8..f94af977 100644 --- a/gclient_scm.py +++ b/gclient_scm.py @@ -1012,28 +1012,35 @@ class GitWrapper(SCMWrapper): gclient_utils.safe_makedirs(parent_dir) - + template_dir = None + use_fetch = False + @@ -37,7 +36,7 @@ index 8a3410a8..f94af977 100644 else: # Otherwise, we're just interested in the HEAD. Just use --depth. clone_cmd.append('--depth=1') - + - tmp_dir = tempfile.mkdtemp( - prefix='_gclient_%s_' % os.path.basename(self.checkout_path), - dir=parent_dir) @@ -52,7 +51,7 @@ index 8a3410a8..f94af977 100644 @@ -1328,6 +1335,9 @@ class GitWrapper(SCMWrapper): if refspec: fetch_cmd.append(refspec) - + + if hasattr(options, 'no_history') and options.no_history: + fetch_cmd.append('--depth=1') + diff --git a/prepare-build.sh b/prepare-build.sh index 618ff3d..2309d2a 100644 --- a/prepare-build.sh +++ b/prepare-build.sh @@ -19,6 +19,12 @@ echo -e ${RED} -------- lastest version is: $VERSION ${NC} cd .. git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git + +# apply patchs +cd depot_tools/ +git apply ../bromite-buildtools/depot_tools.diff +cd .. + PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH env