GIT_TAG="$(git tag | tail -1)" # Git Tag
GIT_LASTCOMMIT="$(git rev-parse --verify HEAD)" # Last commit
-TOOLCHAINVER=20220203
+TOOLCHAINVER=20220508
# use multicore and max compression
ZSTD_OPT="-T0 --ultra -22"
fi
buildtoolchain() {
- local error=false
- case "${BUILD_ARCH}:${HOST_ARCH}" in
- # x86_64
- x86_64:x86_64)
- # This is working.
- ;;
-
- # ARM
- arvm7hl:armv7hl|armv7hl:armv7l)
- # These are working.
- ;;
-
- armv6l:armv6l|armv6l:armv7l|armv6l:aarch64)
- # These are working.
- ;;
- armv6l:*)
- error=true
- ;;
- esac
-
- ${error} && \
- exiterror "Cannot build ${BUILD_ARCH} toolchain on $(uname -m). Please use the download if any."
-
local gcc=$(type -p gcc)
if [ -z "${gcc}" ]; then
exiterror "Could not find GCC. You will need a working build enviroment in order to build the toolchain."
lfsmake2 pmacct
lfsmake2 squid-asnbl
lfsmake2 qemu-ga
- lfsmake2 gptfdisk
+ lfsmake2 gptfdisk
+ lfsmake2 oath-toolkit
+ lfsmake2 libqrencode
+ lfsmake2 perl-File-Remove
+ lfsmake2 perl-Module-Build
+ lfsmake2 perl-Module-ScanDeps
+ lfsmake2 perl-YAML-Tiny
}
buildinstaller() {
build)
START_TIME="${SECONDS}"
- # Clear screen
- ${INTERACTIVE} && clear
-
PACKAGE="$BASEDIR/cache/toolchains/$SNAME-$VERSION-toolchain-$TOOLCHAINVER-${BUILD_ARCH}.tar.zst"
#only restore on a clean disk
if [ ! -e "${BASEDIR}/build${TOOLS_DIR}/.toolchain-successful" ]; then
cd - >/dev/null 2>&1
;;
toolchain)
- # Clear screen
- ${INTERACTIVE} && clear
-
prepareenv
print_build_stage "Toolchain compilation (${BUILD_ARCH})"
buildtoolchain
fi
;;
*)
- echo "Usage: $0 [OPTIONS] {build|changelog|clean|gettoolchain|downloadsrc|shell|sync|toolchain|update-contributors|find-dependencies|check-manualpages}"
+ echo "Usage: $0 [OPTIONS] {build|check-manualpages|clean|docker|downloadsrc|find-dependencies|gettoolchain|lang|shell|toolchain|update-contributors|uploadsrc}"
cat doc/make.sh-usage
;;
esac