From de37a1c402c99015e4e9b71898726f46d23c8ac1 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 27 Aug 2015 21:39:49 -0700 Subject: 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 --- build-gcc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build-gcc.sh') 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" -- cgit v1.2.3