Skip to content

GCC Cross-compiler for LoongArch64, built with crosstool-NG (Arch Linux package)

License

Notifications You must be signed in to change notification settings

AnClark/loongarch64-linux-crosstool-gcc-PKGBUILD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LoongArch64 GCC Toolchain for Arch Linux

简体中文

This is a PKGBUILD of LoongArch64 GCC Toolchain for Arch Linux, built with Crosstool-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 from Jiege's {maintaining, programming, and board debugging} Notes. Reference:

Features

  • Uses Jiege's Crosstool-NG fork with LoongArch64 support, and related config files. But he has removed the related branch, so this repo will use my 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).

Usage

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

License

MIT License


为 Arch Linux 设计的 LoongArch64 GCC 工具链

这是适用于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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages