wangding16 8a429e2fef [gcc-cross] init gcc-cross build script
GCC cross compilation tool chain for embedded openEuler OS,
contains arm32 and arm64 architectures.
2022-03-21 11:55:29 +08:00

24 lines
881 B
Bash
Executable File

#!/bin/bash
set -e
set -x
readonly LOG_PATH="$PWD/../logs"
if [[ -z "$COMPILER_INFO" ]];then
source $PWD/../config.xml
fi
[ -e "$LOG_PATH/openeuler_gcc_arm32le_patch.log" ] && rm $LOG_PATH/openeuler_gcc_arm32le_patch.log
[ -e "$LOG_PATH/openeuler_gcc_arm32le_build.log" ] && rm $LOG_PATH/openeuler_gcc_arm32le_build.log
mkdir -p $LOG_PATH
source pre_construction.sh & >> $LOG_PATH/openeuler_gcc_arm32le_patch.log
echo "------------------------------------------"
echo "Now building the "openeuler_gcc_arm32le" toolchain ..."
echo "The entire build process takes about 45 minutes (build time is related to machine preformance), you can view the detailed build log in the ${LOG_PATH} file"
source openeuler_gcc_update_sourcecode.sh
source openeuler_gcc_arm_linux_release.sh &>> $LOG_PATH/openeuler_gcc_arm32le_build.log
echo "Build openeuler_gcc_arm32le toolchain completed!"