diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2025-03-26 16:18:13 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2025-04-02 15:32:09 +0200 |
commit | 93720597f80740ec1121140e7f84401b766d70ab (patch) | |
tree | 0f348e639b65ce274efddc1dd3b906502ae63917 | |
parent | 6d6a44d2d005cc76354565fa0cfde5699e7d96bc (diff) | |
download | bootstrappable-toolchain-93720597f80740ec1121140e7f84401b766d70ab.tar.gz |
Update repository import in README
-rw-r--r-- | README.md | 31 |
1 files changed, 21 insertions, 10 deletions
@@ -77,20 +77,31 @@ All provided toolchains can be ### 1. Importing toolchains to Justbuild projects If your project includes its toolchain via an open name (usually a repository -named `toolchain`), you can create that repository by importing any of the -provided toolchains (e.g., `gcc-latest-musl+tools`) with the tool -`just-import-git`: - -~~~ sh -$ just-import-git -C repos.template.json --as toolchain -b master \ - https://github.com/just-buildsystem/bootstrappable-toolchain gcc-latest-musl+tools \ - > repos.json +named `toolchain`), you can create that repository by adding the following code +to the *imports section* of your `repos.in.json`: + +~~~ jsonc +"imports": [ + { + "source": "git", + "branch": "master", + "url": "https://github.com/just-buildsystem/bootstrappable-toolchain", + "repos": [{"repo": "gcc-latest-musl+tools", "alias": "toolchain"}] + }, + // ... +], ~~~ +Afterwards, run `just-lock` to generate the updated `repos.json` repository +lock-file. + ### 2. Obtaining a portable toolchain -You can install a portable version of any provided toolchain (e.g., -`gcc-latest-musl`) to your local disk with: +You can obtain a portable installation of any of the provided toolchains to your +local disk. + +To do so, first clone this repository and run `just-mr` to build and install +the requested toolchain (e.g., `gcc-latest-musl`): ~~~ sh $ just-mr --main gcc-latest-musl install toolchain -D'{"ARCH":"x86_64"}' -o /opt/gcc |