From 153cfa01818b7df014a615f9b9107a767aa8101a Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Mon, 7 Jul 2025 21:41:10 +0200 Subject: [PATCH] Minimal build enabled --- build.sh | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/build.sh b/build.sh index 94a39e3..963808a 100755 --- a/build.sh +++ b/build.sh @@ -372,6 +372,16 @@ xtchain_build() cp ${WRKDIR}/scripts/xtchain${EXTENSION} ${BINDIR}/ } +# This function generates XTCHAIN version file +xtchain_vergen() +{ + cd ${WRKDIR} + : ${XTCVER:=$(git describe --exact-match --tags 2>/dev/null)} + : ${XTCVER:=DEVEL} + [ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min" + echo "${XTCVER}" > ${BINDIR}/Version +} + # Parse all arguments provided to the script @@ -426,28 +436,26 @@ fi mkdir -p ${BINDIR} mkdir -p ${SRCDIR} -# Build XTChain tools +# Build XTchain tools #xtchain_build # Download and build Wine tools #wine_fetch #wine_build -# Download and build LLVM -#llvm_fetch -#llvm_build +if [ ${BUILD_MINIMAL} -eq 0 ]; then + # Download and build LLVM + #llvm_fetch + #llvm_build -# Download and build CMake -#cmake_fetch -#cmake_build + # Download and build CMake + #cmake_fetch + #cmake_build -# Download and build Ninja -#ninja_fetch -#ninja_build + # Download and build Ninja + #ninja_fetch + #ninja_build +fi -# Save XT Toolchain version -cd ${WRKDIR} -: ${XTCVER:=$(git describe --exact-match --tags 2>/dev/null)} -: ${XTCVER:=DEVEL} -[ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min" -echo "${XTCVER}" > ${BINDIR}/Version +# Generate XTchain version file +#xtchain_vergen