This repo contains elf (i386 to i686 and sparc) and riscv tools used to make own kernels as used by osdev.org usually. Install script template written by lordmilko (repo: i686-elf-tools) for elf i686 but edited to add support for c, c++, (original) and go (the new addition) and also i386, i486, i586, and sparc. Also new install scripts written for riscv tools.
This script only works on debian based distros
- gcc
- g++
- go or gnu go
To run the script you can do
chmod +x gcc-cross-compiler____.sh
Choose the script instead of putting in gcc-cross-compiler___
.
then
./gcc-cross-compiler.sh____ linux
where it will install in your home directory (unless you did it as root)
chmod +x gcc-cross-compiler-riscv-____.sh
and then
./gcc-cross-compiler-riscv-____.sh
where it will install in your home directory (unless you did it as root)
The script currently only works in debian based distros. But not to worry, I have made a pre-compiled binaries for linux so check the Releases page and then unzip
the zip file in /usr/local/
directory. Only for linux.
I have confirmed that the binaries work in Gentoo, Arch, Debian, but you can make an issue or PR to tell me that it works in other distros.
Read the readme of lordmilko's repo i686-elf-tools for more information. My repo is based mostly on his repo. Also checkout osdev.org wiki to see how to make kernels which inspired this project overall.
This is a just a simple installation script that installs the package from the kernel.org website. I choose v10.1.0 since that was what was given in the osdev.org RISC-V barebones but I will be making scripts for more.
I made this for osdev.org making kernels and hope that this will make it easier for beginners to start.
- Make an install script for binaries
- Make binaries for more versions of the gcc and binutils (1 extra version before feb 8)
- docker file
if anyone can help please do make an pr
If you found it useful, then you could consider liking the repo and you can always change your mind.
Thamognya Kodi
www.thamognya.com