diff options
author | Ulises Mendez Martinez <umendez@google.com> | 2024-04-16 14:06:40 +0000 |
---|---|---|
committer | Ulises Mendez Martinez <umendez@google.com> | 2024-04-16 23:19:58 +0000 |
commit | 33bd210159ff8807096f9db99025c838c88fd73e (patch) | |
tree | 45bc5bdda3d55e911b36197cbbbf166c65cef2b7 | |
parent | e6e01c2c003531a57f8ddb506d11ec78fc1c240a (diff) | |
download | bootstrap-33bd210159ff8807096f9db99025c838c88fd73e.tar.gz |
ddk_bootstrap: Update flag name for Kleaf repo
* `kleaf_repo_dir` was shortened to `kleaf_repo` in init_ddk script to
keep it consistent with the flag here, so it's updated accordingly.
* This also adds a brief quickstart guide in README.md file.
Bug: 328770706
Change-Id: Iafb13701a4d02a43a0cc19f3b1ac9db5325b0a5b
Signed-off-by: Ulises Mendez Martinez <umendez@google.com>
-rw-r--r-- | README.md | 15 | ||||
-rw-r--r-- | init.py | 4 |
2 files changed, 18 insertions, 1 deletions
@@ -1,3 +1,18 @@ # Bootstrapping DDKv2 This project contains code to bootstrap DDKv2 development. + +## Quick Start + +* Using sources from local Kleaf repo checkout. + +```shell +python3 init.py --local --kleaf_repo=/abs/path/to/ACK +``` + +* Using local prebuilts with local sources. + +```shell +python3 init.py --prebuilts_dir=/abs/path/to/prebuilts --local --kleaf_repo=/abs/path/to/ACK +``` + @@ -81,6 +81,8 @@ class KleafBootstrap: common_args = [] if self.build_target: common_args += ["--build_target", self.build_target] + if self.kleaf_repo: + common_args += ["--kleaf_repo", self.kleaf_repo] common_args += ["--url_fmt", self.url_fmt] common_args += ["--ddk_workspace", self.ddk_workspace] common_args += self.unknown_args @@ -89,7 +91,7 @@ class KleafBootstrap: def run(self): if self.local: args = [_TOOLS_BAZEL, "run", _INIT_DDK_TARGET] - args += ["--", "--kleaf_repo_dir", self.kleaf_repo] + args += ["--"] args += self._common_args() self._run_script(args, cwd=self.kleaf_repo) return |