dingguangya d1efec0290 [gcc-cross] The gcc-cross package supports OBS automatic build
Support the automatic build of the package on the OBS environment,
and fix the original script.
2022-03-24 19:02:00 +08:00

22 lines
846 B
Bash
Executable File

#!/bin/bash
set -e
set -x
readonly LOG_PATH="$PWD/../logs"
source $PWD/../config.xml
[ -e "$LOG_PATH/openeuler_gcc_arm64le_patch.log" ] && rm $LOG_PATH/openeuler_gcc_arm64le_patch.log
[ -e "$LOG_PATH/openeuler_gcc_arm64le_build.log" ] && rm $LOG_PATH/openeuler_gcc_arm64le_build.log
mkdir -p $LOG_PATH
source pre_construction.sh &>> $LOG_PATH/openeuler_gcc_arm64le_patch.log
echo "------------------------------------------"
echo "Now building the "openeuler_gcc_arm64le" 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_aarch64_linux_release.sh &>> $LOG_PATH/openeuler_gcc_arm64le_build.log
echo "Build openeuler_gcc_arm64le toolchain completed!"