aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-10-07 11:16:48 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-10-07 11:44:52 +0200
commit7f79e78b277019dfbcf3cea20705801c6fcf0a80 (patch)
treece8d5e03affb7de50a94ba43dddff97dc2bedf92
parent9c1b9dbb886c4999012785ee4276c953eb92d13b (diff)
downloadvendor_replicant-release-scripts-7f79e78b277019dfbcf3cea20705801c6fcf0a80.tar.gz
vendor_replicant-release-scripts-7f79e78b277019dfbcf3cea20705801c6fcf0a80.tar.bz2
vendor_replicant-release-scripts-7f79e78b277019dfbcf3cea20705801c6fcf0a80.zip
Add support for building Replicant 11
If we don't source envsetup.sh, we have the following when calling 'make clobber' in Replicant 11: build/make/core/main.mk:2: Calling make directly is no longer supported. build/make/core/main.mk:3: Either use 'envsetup.sh; m' or 'build/soong/soong_ui.bash --make-mode' build/make/core/main.mk:4: *** done. Stop. and sourcing envsetup.sh should also work on Replicant 6.0. As Replicant 11 doesn't have a script to build a toolchain, we don't run ./vendor/replicant/build-toolchain with Replicant 11. As for using $_dir instead of $dir, on Replicant 11, $dir is set to 'product' after sourcing build/envsetup.sh so we can't use it. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-xbuild_release.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/build_release.sh b/build_release.sh
index 2228c5c..57334c3 100755
--- a/build_release.sh
+++ b/build_release.sh
@@ -39,13 +39,16 @@ build_all () {
}
prepare () {
- dir=$( pwd )
+ _dir="${PWD}"
cd "$REPLICANT_DIR"
+ . build/envsetup.sh
make clobber
- ./vendor/replicant/build-toolchain
+ if is_replicant_6 ; then
+ ./vendor/replicant/build-toolchain
+ fi
- cd "$dir"
+ cd "${_dir}"
}
print_help () {