#!/bin/bash ##———————————————— ————- ## Configuration variables ##———————————————— ————- root_dir=”/home/prometheus/module-test/cross-compile” target=”powerpc-eabi” clean_install=true build_binutils=true build_gcc_static=true build_newlib=true build_gcc=true # gcc dependency isl_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.15.tar.bz2″ mpfr_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2″ mpc_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz” gmp_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2″ # use gcc492, confirmed ok binutils_tar_link=”http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz” #binutils_tar_link=”https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.gz” #gcc_tar_link=”http://mirrors.kernel.org/gnu/gcc/gcc-6.1.0/gcc-4.9.2.tar.gz” gcc_tar_link=”https://mirrors.kernel.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.gz” newlib_tar_link=”ftp://sourceware.org/pub/newlib/newlib-2.4.0.tar.gz” ##———————————————— ————- ## Function definitions ##———————————————— ————- function announce {<!– –> now=$(date + “%T”) echo echo “[$now] $1” echo } pushd () {<!– […]
Tag: toolchain
Ubuntu installs riscv-gnu-toolchain compilation chain and spike, pk usage guide
riscv-gnu-toolchain compilation chain and spike, pk installation and usage guide 1. Environment: Ubuntu18.04 2. Install dependency packages (needed for various compilations): $ sudo apt install autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev 3. Differentiate between downloading riscv-gnu-toolchain and riscv-tools As for why we […]
ToolChainsUsage of CLion (VS2019) + CMake + Vcpkg
Reference blog: https://blog.51cto.com/u_15075510/4201238 http://t.csdn.cn/pADDU https://zhuanlan.zhihu.com/p/454233496 https://blog.csdn.net/weixin_43803955/article/details/123544106 https://blog.songjiahao.com/archives/872#toc-head-19 Important Vcpkg Overview Vcpkg is a cross-platform C++ package management tool developed by the Microsoft community. It is designed to solve the pain points of dependency management in the C++ development process. It supports multiple operating systems, including: Windows, Linux and macOS, allowing developers to more conveniently install, […]
Source code compilation of risc-v virtual machine and compiler riscv-gnu-toolchain and riscv-tools in ubuntu 22.04
1. Compile riscv-gnu-toolchain 1.1 Preparation environment $ sudo apt-get install autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev 1.2 Download source code https://github.com/riscv-collab/riscv-gnu-toolchain git clone –recursive https://github.com/riscv-collab/riscv-gnu-toolchain.git 1.3 Compile elf tool cd riscv-gnu-toolchain/ for riscv64-unknown-elf-gcc: ./configure –prefix=/opt/riscv sudo make -j 1.4 Compilation linux tools […]
BizDevOps toolchain powered by LLM: Expand end-to-end touchpoints, built-in processes and norms
In the first two articles of this series, “LLM-Enabled R&D Effectiveness” and “LLM-Enabled Software Architecture”, we introduced a series of experiments that we combined with BizDevOps and software architecture in LLM. Around these two categories of exploration, we have built two open source LLM tools: AI-assisted programming tool AutoDev (IDEA plug-in), and architecture management tool […]
Code Standards How to use the Lint toolchain to ensure code style and quality?
In the previous section, we explained in detail how to implement the CSS engineering solution in Vite, taking the first step in building a scaffolding project. In this section, let us turn our attention to another very important part of the project – code specification. Code is not only for machines to read, it is […]
ZYNQ’s investigation on the problem of stdlib.h No such file or directory when compiling xilinx_axidma with Petalinux toolchain in Linux environment
ZYNQ’s investigation on the problem of stdlib.h No such file or directory when compiling xilinx_axidma with Petalinux toolchain in Linux environment Article directory ZYNQ’s investigation on the problem of stdlib.h No such file or directory when compiling xilinx_axidma with Petalinux toolchain in Linux environment Petalinux toolchain compiles xilinx_axidma error: Analysis reason 1 (/opt/petalinux/2020.2/environment-setup-cortexa9t2hf-neon-xilinx-linux-gnueabi) environment configuration […]
ZYNQ’s investigation on the problem of linux amba xilinx_dma.h No such file or directory when compiling xilinx_axidma with Petalinux toolchain in Linux environment
ZYNQ’s investigation on the problem of fatal error linux amba xilinx_dma.h No such file or directory when compiling xilinx_axidma with Petalinux toolchain in Linux environment Article directory ZYNQ’s investigation on the problem of fatal error linux amba xilinx_dma.h No such file or directory when compiling xilinx_axidma with Petalinux toolchain in Linux environment Petalinux toolchain compiles […]
Com of “AUTOSAR Genealogy Decomposition (ETAS Toolchain)”
Com of “AUTOSAR Genealogy Decomposition (ETAS Toolchain)” Article directory Com of “AUTOSAR Genealogy Decomposition (ETAS Toolchain)” com ComConfig ComGeneral EXP: standard interface function Com ComConfig ComDataMemSize EXP: Size of internal Com data in bytes (static memory allocation) – memory required by the post-build configuration must be less than this constant. This parameter is only required […]
Cross-compilation instructions: toolchain installation and environment variable configuration
Directory A simple understanding of cross-compilation ① What is cross compilation ② Why do you need cross-compilation ③ host machine and target machine 2. Build a cross-compilation working environment ① Install the tool chain ② Configure environment variables ● Configure temporary environment variables ● Configure permanent environment variables Three cross-compilation host and target ● The […]