gcc-cross/openeuler_gcc_arm64le/pre_construction.sh
dingguangya 39d6434120 [gcc-cross] Provides the ability to build 32-bit and 64 bit programs in parallel
(cherry picked from commit faa939e8ba6b0de255ef062b298ad587bb1b616f)
2022-11-17 16:04:16 +08:00

26 lines
513 B
Bash
Executable File

#!/bin/bash
set -e
set -x
readonly ROOT_BUILD_SRC="$PWD/../../open_source"
readonly OUTPUT_INSTALL="$PWD/../../output/openeuler_gcc_arm64le"
source $PWD/../config.xml
#clear history build legacy files
clean(){
[ -n "$OUTPUT_INSTALL" ] && rm -rf $OUTPUT_INSTALL
mkdir -p $OUTPUT_INSTALL
}
#clean the build direcoty
clean
chmod 777 $ROOT_BUILD_SRC -R
# Extract kernel header files
cd $ROOT_BUILD_SRC/$LINUX_KERNEL_64
make headers_install ARCH=arm64 INSTALL_HDR_PATH=$ROOT_BUILD_SRC/$KERNEL_HEADERS_64
cd -