mirror of
https://github.com/QIDITECH/klipper.git
synced 2026-02-01 08:28:41 +03:00
plus4的klipper版本
This commit is contained in:
@@ -16,7 +16,7 @@ mkdir -p ${BUILD_DIR} ${CACHE_DIR}
|
||||
######################################################################
|
||||
|
||||
echo -e "\n\n=============== Install system dependencies\n\n"
|
||||
PKGS="virtualenv python-dev libffi-dev build-essential"
|
||||
PKGS="virtualenv python2-dev libffi-dev build-essential"
|
||||
PKGS="${PKGS} gcc-avr avr-libc"
|
||||
PKGS="${PKGS} libnewlib-arm-none-eabi gcc-arm-none-eabi binutils-arm-none-eabi"
|
||||
PKGS="${PKGS} pv libmpfr-dev libgmp-dev libmpc-dev texinfo bison flex"
|
||||
@@ -35,10 +35,10 @@ if [ ! -f ${PRU_FILE} ]; then
|
||||
cd ${BUILD_DIR}
|
||||
git config --global user.email "you@example.com"
|
||||
git config --global user.name "Your Name"
|
||||
git clone https://github.com/dinuxbg/gnupru -b 2018.03-beta-rc3 --depth 1
|
||||
git clone https://github.com/dinuxbg/gnupru -b 2023.01 --depth 1
|
||||
cd gnupru
|
||||
export PREFIX=${PRU_DIR}
|
||||
./download-and-patch.sh 2>&1 | pv -nli 30 > ${BUILD_DIR}/gnupru-build.log
|
||||
./download-and-prepare.sh 2>&1 | pv -nli 30 > ${BUILD_DIR}/gnupru-build.log
|
||||
./build.sh 2>&1 | pv -nli 30 >> ${BUILD_DIR}/gnupru-build.log
|
||||
cd ${BUILD_DIR}
|
||||
tar cfz ${PRU_FILE} pru-gcc/
|
||||
@@ -47,7 +47,21 @@ else
|
||||
tar xfz ${PRU_FILE}
|
||||
fi
|
||||
|
||||
######################################################################
|
||||
# Install or1k-linux-musl toolchain
|
||||
######################################################################
|
||||
|
||||
echo -e "\n\n=============== Install or1k-linux-musl toolchain\n\n"
|
||||
TOOLCHAIN=or1k-linux-musl-cross
|
||||
TOOLCHAIN_ZIP=${TOOLCHAIN}.tgz
|
||||
GCC_VERSION=10
|
||||
TOOLCHAIN_ZIP_V=${TOOLCHAIN}-${GCC_VERSION}.tgz
|
||||
URL=https://more.musl.cc/${GCC_VERSION}/x86_64-linux-musl/
|
||||
if [ ! -f ${CACHE_DIR}/${TOOLCHAIN_ZIP_V} ]; then
|
||||
curl ${URL}/${TOOLCHAIN_ZIP} -o ${CACHE_DIR}/${TOOLCHAIN_ZIP_V}
|
||||
fi
|
||||
cd ${BUILD_DIR}
|
||||
tar xf ${CACHE_DIR}/${TOOLCHAIN_ZIP_V}
|
||||
######################################################################
|
||||
# Create python3 virtualenv environment
|
||||
######################################################################
|
||||
|
||||
Reference in New Issue
Block a user