PZ7020-StarLite_ZYNQ7010-20-15_Xilinx FPGA Evaluation Kit_Product_Puzhi Electronic Technology (Shanghai) Co. , Ltd (puzhitech.com)
mkdir -p ~/tools
cd ~/tools
sudo apt update
echo "Installing GCC 13..."
sudo bash -c '
UBUNTU_VERSION=$(lsb_release -cs) && \
echo "deb https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu $UBUNTU_VERSION main" | \
tee /etc/apt/sources.list.d/ubuntu-toolchain-r-test.list && \
echo "deb-src https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu $UBUNTU_VERSION main" | \
tee -a /etc/apt/sources.list.d/ubuntu-toolchain-r-test.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C8EC952E2A0E1FBDC5090F6A2C277A0A352154E5 && \
apt update && \
apt-get install gcc-13 g++-13 -y'
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 --slave /usr/bin/g++ g++ /usr/bin/g++-13
echo "Installing build tools for CMake..."
sudo apt install make ninja-build gettext unzip curl -y
echo "Installing CMake..."
wget https://github.com/Kitware/CMake/releases/download/v3.29.7/cmake-3.29.7.tar.gz
tar -xzvf cmake-3.29.7.tar.gz && rm cmake-3.29.7.tar.gz
cd cmake-3.29.7
./bootstrap --parallel=$(nproc) && make -j$(nproc) && sudo make install
echo "Installing additional utilities..."
sudo apt install npm fonts-nanum zsh -y
echo "Installing Node.js..."
sudo npm install -g n
sudo n 17
hash -r
echo "Configuring npm..."
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.profile
source ~/.profile
echo "Installing Neovim..."
cd ~/tools
git clone https://github.com/neovim/neovim
cd neovim && make CMAKE_BUILD_TYPE=RelWithDebInfo -j$(nproc)
sudo make install