Skip to content

Commit

Permalink
Toolchain: The toolchain script is now working πŸŽ‰
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax authored and awesomekling committed Apr 29, 2019
1 parent 4977fd2 commit 3761bc3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions LibC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ install: $(LIBRARY)
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Base/usr/include
# Install the library
cp $(LIBRARY) ../Base/usr/lib
cp crt0.o ../Base/usr/lib/
cp crti.ao ../Base/usr/lib/crti.o
cp crtn.ao ../Base/usr/lib/crtn.o
cp crt0.o ../Base/usr/lib/
cp crti.ao ../Base/usr/lib/crti.o
cp crtn.ao ../Base/usr/lib/crtn.o
5 changes: 5 additions & 0 deletions LibM/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ $(LIBRARY): $(OBJS)
clean:
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d

install: $(LIBRARY)
# Copy headers
rsync -a --include '*/' --include '*.h' --exclude '*' . ../Base/usr/include
# Install the library
cp $(LIBRARY) ../Base/usr/lib
5 changes: 4 additions & 1 deletion Toolchain/BuildIt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ SYSROOT="$DIR/../Base"

mkdir -p "$DIR/Tarballs"

source "$DIR/UseIt.sh"

pushd "$DIR/Tarballs"
if [ ! -e "binutils-2.32.tar.gz" ]; then
wget "http:https://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.gz"
Expand Down Expand Up @@ -71,7 +73,8 @@ pushd "$DIR/Build/"
make -j $(nproc) all-gcc all-target-libgcc
make install-gcc install-target-libgcc

make -c ../LibC/ install
make -C "$DIR/../LibC/" install
make -C "$DIR/../LibM/" install

make all-target-libstdc++-v3
make install-target-libstdc++-v3
Expand Down

0 comments on commit 3761bc3

Please sign in to comment.