Skip to content

Commit

Permalink
Make target automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
uwueviee committed Aug 28, 2021
1 parent dcbc516 commit 18f4937
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ To allow the scripts to find the sources, please ensure the extracted sources ar
A destination folder and a target folder will need to be created to allow the toolchain to properly link.

Script Usage:
`./create-toolchain.sh "destination folder" "target folder" "source folder" "makeflags"`
`./create-toolchain.sh "destination folder" "source folder" "makeflags"`
25 changes: 13 additions & 12 deletions create-toolchain.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
#! /bin/bash

target=$(uname -m)-yiffos-linux-gnu

echo "########"
echo "Now building the yiffOS toolchain"
echo "########"
echo "Mount: $1"
echo "Target: $2"
echo "Source: $3"
echo "Makeflags: $4"
echo "########"
./binutils.sh $1 $2 $3 $4
./gcc.sh $1 $2 $3 $4
./linux-headers.sh $1 $2 $3 $4
./glibc.sh $1 $2 $3 $4
./libstdcxx.sh $1 $2 $3 $4
./openssl.sh $1 $2 $3 $4
./cmake.sh $1 $2 $3 $4
./clang.sh $1 $2 $3 $4
echo "Target: $target"
echo "Source: $2"
echo "Makeflags: $3"
./binutils.sh $1 $target $2/binutils $3
./gcc.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
./openssl.sh $1 $target $2/openssl $3
./cmake.sh $1 $target $2/cmake $3
./clang.sh $1 $target $2/llvm $3

0 comments on commit 18f4937

Please sign in to comment.