diff options
author | Dan Albert <danalbert@google.com> | 2015-08-27 21:39:49 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-08-27 21:58:39 -0700 |
commit | de37a1c402c99015e4e9b71898726f46d23c8ac1 (patch) | |
tree | 99e0d0cc2cf228817b40350e33b19b9e77b33a96 /build-gcc.sh | |
parent | 8494f40d249e74163e0fa645d6c39c4d74b39502 (diff) | |
download | toolchain_gcc-de37a1c402c99015e4e9b71898726f46d23c8ac1.tar.gz toolchain_gcc-de37a1c402c99015e4e9b71898726f46d23c8ac1.tar.bz2 toolchain_gcc-de37a1c402c99015e4e9b71898726f46d23c8ac1.zip |
Remove the sysroot from the built toolchain.
This used to be handled by package-release.sh, but we now need to
perform the full build/package step here rather than in ndk/.
Change-Id: Ia8a1662fd5c6adec72f83d15374af6f4bfa04afd
Diffstat (limited to 'build-gcc.sh')
-rwxr-xr-x | build-gcc.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build-gcc.sh b/build-gcc.sh index c6e2f1cd7..4f5a79fad 100755 --- a/build-gcc.sh +++ b/build-gcc.sh @@ -529,6 +529,14 @@ if [ -f "$SRC_DIR/SOURCES" ]; then cp "$SRC_DIR/SOURCES" "$TOOLCHAIN_INSTALL_PATH/SOURCES" fi +echo "Removing sysroot for $TC" +rm -rf $TOOLCHAIN_INSTALL_PATH/sysroot + +# TODO: Do we not actually know what $SYSTEM is going to be here? +# Why do we need to check these and the above? +rm -rf $DSTDIR64/toolchains/${SYSTEM}_64/$TC/prebuilt/sysroot +rm -rf $DSTDIR64/toolchains/${SYSTEM}-x86_64/$TC/prebuilt/sysroot + if [ "$PACKAGE_DIR" ]; then ARCHIVE="$TOOLCHAIN-$HOST_TAG.tar.bz2" dump "Packaging $ARCHIVE from $PACKAGE_DIR/$TOOLCHAIN_SUBDIR" |