Fix build-sdk.sh container name for Linux host

And improve corresponding docs in the README.
This commit is contained in:
Rémi Verschelde
2022-05-10 11:57:08 +02:00
parent 859537e328
commit c9c4c6ce37
2 changed files with 7 additions and 6 deletions

View File

@@ -62,9 +62,10 @@ Afterwards the SDK will be in `output/images/<arch>-godot-linux-gnu_sdk-buildroo
This method uses a CentOS7 container to make the buildroot *itself* portable so it can be distributed to other users. This is also the way the downloads above are generated.
* run `./build-sdk.sh <arch>` for instance `x86_64`
* run `./build-sdk.sh <host> <arch>` for instance `./build-sdk.sh linux-x86_64 x86_64`
The toolchain will appear in the `godot-toolchains` directory
Run `./build-sdk.sh` without arguments to get a list of valid hosts and arches.
The toolchain will appear in the `godot-toolchains` directory.
## Modifying the toolchain

View File

@@ -57,7 +57,7 @@ fi
function build_linux_sdk() {
${container} build -f Dockerfile.linux-builder -t godot-buildroot-builder-linux
${container} run -it --rm -v $(pwd):/tmp/buildroot -w /tmp/buildroot -e FORCE_UNSAFE_CONFIGURE=1 --userns=keep-id godot-buildroot-builder scl enable devtoolset-9 "bash -c make syncconfig; make clean sdk"
${container} run -it --rm -v $(pwd):/tmp/buildroot -w /tmp/buildroot -e FORCE_UNSAFE_CONFIGURE=1 --userns=keep-id godot-buildroot-builder-linux scl enable devtoolset-9 "bash -c make syncconfig; make clean sdk"
mkdir -p godot-toolchains