|
|
|
@ -44,7 +44,7 @@ IASL_VERSION=20200717
|
|
|
|
|
PYTHON_VERSION=3.8.5
|
|
|
|
|
EXPAT_VERSION=2.2.9
|
|
|
|
|
# CLANG version number
|
|
|
|
|
CLANG_VERSION=9.0.0
|
|
|
|
|
CLANG_VERSION=10.0.1
|
|
|
|
|
CMAKE_VERSION=3.18.1
|
|
|
|
|
NASM_VERSION=2.15.03
|
|
|
|
|
|
|
|
|
@ -62,16 +62,16 @@ IASL_ARCHIVE="https://acpica.org/sites/acpica/files/acpica-unix2-${IASL_VERSION}
|
|
|
|
|
PYTHON_ARCHIVE="https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz"
|
|
|
|
|
EXPAT_ARCHIVE="https://downloads.sourceforge.net/sourceforge/expat/expat-${EXPAT_VERSION}.tar.bz2"
|
|
|
|
|
# CLANG toolchain archive locations
|
|
|
|
|
LLVM_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/llvm-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
CFE_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/cfe-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
CRT_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/compiler-rt-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
CTE_ARCHIVE="https://releases.llvm.org/${CLANG_VERSION}/clang-tools-extra-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
LLVM_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/llvm-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
CLANG_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/clang-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
CRT_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/compiler-rt-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
CTE_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/clang-tools-extra-${CLANG_VERSION}.src.tar.xz"
|
|
|
|
|
CMAKE_ARCHIVE="https://cmake.org/files/v3.18/cmake-${CMAKE_VERSION}.tar.gz"
|
|
|
|
|
NASM_ARCHIVE="https://www.nasm.us/pub/nasm/releasebuilds/${NASM_VERSION}/nasm-${NASM_VERSION}.tar.bz2"
|
|
|
|
|
|
|
|
|
|
ALL_ARCHIVES="$GMP_ARCHIVE $MPFR_ARCHIVE $MPC_ARCHIVE \
|
|
|
|
|
$GCC_ARCHIVE $BINUTILS_ARCHIVE $GDB_ARCHIVE $IASL_ARCHIVE \
|
|
|
|
|
$PYTHON_ARCHIVE $EXPAT_ARCHIVE $LLVM_ARCHIVE $CFE_ARCHIVE \
|
|
|
|
|
$PYTHON_ARCHIVE $EXPAT_ARCHIVE $LLVM_ARCHIVE $CLANG_ARCHIVE \
|
|
|
|
|
$CRT_ARCHIVE $CTE_ARCHIVE $CMAKE_ARCHIVE $NASM_ARCHIVE"
|
|
|
|
|
|
|
|
|
|
# GCC toolchain directories
|
|
|
|
@ -88,7 +88,7 @@ PYTHON_DIR="Python-${PYTHON_VERSION}"
|
|
|
|
|
EXPAT_DIR="expat-${EXPAT_VERSION}"
|
|
|
|
|
# CLANG toolchain directories
|
|
|
|
|
LLVM_DIR="llvm-${CLANG_VERSION}.src"
|
|
|
|
|
CFE_DIR="cfe-${CLANG_VERSION}.src"
|
|
|
|
|
CLANG_DIR="clang-${CLANG_VERSION}.src"
|
|
|
|
|
CRT_DIR="compiler-rt-${CLANG_VERSION}.src"
|
|
|
|
|
CTE_DIR="clang-tools-extra-${CLANG_VERSION}.src"
|
|
|
|
|
CMAKE_DIR="cmake-${CMAKE_VERSION}"
|
|
|
|
@ -851,7 +851,7 @@ build_IASL() {
|
|
|
|
|
build_LLVM() {
|
|
|
|
|
|
|
|
|
|
cd .. || exit 1
|
|
|
|
|
ln -sf "$PWD/$CFE_DIR" "$LLVM_DIR/tools/clang"
|
|
|
|
|
ln -sf "$PWD/$CLANG_DIR" "$LLVM_DIR/tools/clang"
|
|
|
|
|
ln -sf "$PWD/$CTE_DIR" "$LLVM_DIR/tools/clang/tools/extra"
|
|
|
|
|
ln -sf "$PWD/$CRT_DIR" "$LLVM_DIR/projects/compiler-rt"
|
|
|
|
|
cd - || exit 1
|
|
|
|
@ -863,8 +863,8 @@ build_LLVM() {
|
|
|
|
|
$MAKE $JOBS || touch .failed
|
|
|
|
|
$MAKE install || touch .failed
|
|
|
|
|
|
|
|
|
|
cp -a ../$CFE_DIR/tools/scan-build/* "$DESTDIR$TARGETDIR/bin"
|
|
|
|
|
cp -a ../$CFE_DIR/tools/scan-view/* "$DESTDIR$TARGETDIR/bin"
|
|
|
|
|
cp -a ../$CLANG_DIR/tools/scan-build/* "$DESTDIR$TARGETDIR/bin"
|
|
|
|
|
cp -a ../$CLANG_DIR/tools/scan-view/* "$DESTDIR$TARGETDIR/bin"
|
|
|
|
|
|
|
|
|
|
# create symlinks to work around broken --print-librt-file-name
|
|
|
|
|
# when used with -target.
|
|
|
|
@ -1014,7 +1014,7 @@ case "$PACKAGE" in
|
|
|
|
|
CLANG|clang)
|
|
|
|
|
NAME="LLVM clang"
|
|
|
|
|
LLVM_VERSION=${CLANG_VERSION}
|
|
|
|
|
PACKAGES="CMAKE LLVM CFE CRT CTE"
|
|
|
|
|
PACKAGES="CMAKE LLVM CLANG CRT CTE"
|
|
|
|
|
CMAKE=${DESTDIR}${TARGETDIR}/bin/cmake
|
|
|
|
|
;;
|
|
|
|
|
IASL|iasl)
|
|
|
|
|