- Notifications
You must be signed in to change notification settings - Fork1
GCC Cross-compiler for LoongArch64, built with crosstool-NG (Arch Linux package)
License
AnClark/loongarch64-linux-crosstool-gcc-PKGBUILD
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is aPKGBUILD
of LoongArch64 GCC Toolchain for Arch Linux, built withCrosstool-NG.
You will get a Pacman-compatible package. You can install for yourself, or install on other devices with Arch Linux (or derivatives) installed.
This project is based on a guide fromJiege's {maintaining, programming, and board debugging} Notes. Reference:
- Uses Jiege'sCrosstool-NG fork with LoongArch64 support, andrelated config files. But he has removed the related branch, so this repo will usemy own backup.
- No need to install Crosstool-NG into your system. Instead, directly run it within
makepkg
procedures. - Obeys canonical path of cross-toolchains (like MinGW-w64 in Arch official repo).
1. Install dependencies of Crosstool-NG:
sudo pacman -S bison flex autoconf automake help2man
2. Build:
makepkg
3. Install:
sudo pacman -U loongarch64-linux-crosstool-gcc-12.1.0-1-x86_64.pkg.tar.zst
MIT License
这是适用于Arch Linux的LoongArch64 GCC工具链PKGBUILD
,借助Crosstool-NG来构建。
最终你会得到适用于Pacman的安装包,可以为自己安装,也可以在其他Arch Linux(或衍生版本)的设备上安装并运行。
本项目基于杰哥的{运维,编程,调板子}小笔记 的经验教程而编写,参考了他的以下文章:
- 使用杰哥提供的Crosstool-NG(加入了LoongArch64支持),以及相关的配置文件。但是,原作者已经移除了相关分支,因此本repo将使用我的备份。
- 无需将Crosstool-NG安装到系统中,直接在
makepkg
过程中运行之。 - 遵循交叉编译工具链的安装路径规范(如Arch官方源的MinGW-w64)。
第一步, 安装Crosstool-ng依赖项:
sudo pacman -S bison flex autoconf automake help2man
第二步, 开始构建:
makepkg
第三步, 安装:
sudo pacman -U loongarch64-linux-crosstool-gcc-12.1.0-1-x86_64.pkg.tar.zst
MIT License
About
GCC Cross-compiler for LoongArch64, built with crosstool-NG (Arch Linux package)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.