Skip to content

Commit

Permalink
Reorganise scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
uwueviee committed Jan 23, 2022
1 parent a290f7b commit 23e93d8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 19 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion gcc.sh → Outside Chroot/gcc-pass-1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd build
../configure \
--target=$2 \
--prefix=$1/tools \
--with-glibc-version=2.11 \
--with-glibc-version=2.34 \
--with-sysroot=$1 \
--with-newlib \
--without-headers \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 4 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,12 @@
The toolchain that is used to build yiffOS.

You'll need a working clang + gcc setup on the host system to run these scripts.

You'll also need the sources for:
* binutils 2.36.1
* gcc 11.2.0
* linux 5.13.13
* glibc 2.34 with [this patch](https://www.linuxfromscratch.org/patches/downloads/glibc/glibc-2.34-fhs-1.patch)
* openssl 1.1.1l
* cmake 3.21.1
* llvm 12.0.1
* clang 12.0.1
* compiler-rt 12.0.1
* libcxx 12.0.1
* libcxxabi 12.0.1


To allow the scripts to find the sources, please ensure the extracted sources are in a folder with only it's name as the folder name. (Example: gcc 11.2.0 would be in /sources/gcc)

A destination folder will need to be created to allow the toolchain to properly link.
A destination folder will need to be created to allow the toolchain to properly link.

After the script completes, you'll be able to chroot into a yiffOS environment to compile software.

Script Usage:
`./create-toolchain.sh "destination folder" "source folder" "makeflags"`
11 changes: 8 additions & 3 deletions create-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ echo "Mount: $1"
echo "Target: $target"
echo "Source: $2"
echo "Makeflags: $3"
./binutils.sh $1 $target $2/binutils $3
./gcc.sh $1 $target $2/gcc $3

# Do stuff outside of chroot first
cd "Outside Chroot"

# Inital temporary tools
./binutils-pass-1.sh $1 $target $2/binutils $3
./gcc-pass-1.sh $1 $target $2/gcc $3
./linux-headers.sh $1 $target $2/linux $3
./glibc.sh $1 $target $2/glibc $3
./libstdcxx.sh $1 $target $2/gcc $3
./libstdcxx-pass-1.sh $1 $target $2/gcc $3

0 comments on commit 23e93d8

Please sign in to comment.