This repository has been archived by the owner on Sep 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up builds for consistency (#29)
- Loading branch information
1 parent
2f461bf
commit 06b6e3b
Showing
18 changed files
with
208 additions
and
113 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
brew install wget binutils gnu-tar coreutils | ||
brew install gcc@6 | ||
|
||
zsh download.sh | ||
zsh repack.sh | ||
|
||
echo alias ar=gar | ||
echo alias tar=gtar | ||
|
||
cd mac | ||
make sysroot | ||
sudo gcp sysroot-install/usr/local/* /usr/local/ -r | ||
make binutils | ||
sudo gcp binutils-install/usr/local/* /usr/local/ -r | ||
|
||
make gcc gdb tree pkg tarpkg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
docker pull wpilib/toolchain-builder:18.04 \ | ||
&& docker run -v ${PWD}:/artifacts wpilib/toolchain-builder:18.04 bash -c "\ | ||
cp /artifacts/download.sh /artifacts/repack.sh /artifacts/versions.sh . \ | ||
&& cp -R /artifacts/deb /artifacts/tools /artifacts/linux /artifacts/windows . \ | ||
&& zsh download.sh \ | ||
&& zsh repack.sh \ | ||
&& cd linux \ | ||
&& make sysroot \ | ||
&& sudo cp sysroot-install/usr/local/* /usr/local/ -r \ | ||
&& make binutils \ | ||
&& sudo cp binutils-install/usr/local/* /usr/local/ -r \ | ||
&& make gcc \ | ||
&& sudo cp gcc-install/usr/local/* /usr/local/ -r \ | ||
&& cd ../windows \ | ||
&& make sysroot binutils gcc gdb tree zip \ | ||
&& cp *.zip /artifacts/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
include ../versions.sh | ||
|
||
#export PATH:="${PWD}/gcc-install/usr/bin:${PWD}/binutils-install/usr/bin:${PATH}" | ||
|
||
all: clean sysroot binutils gcc gdb tree tarpkg | ||
|
||
|
||
sysroot: | ||
rm -rf sysroot-* | ||
mkdir sysroot-libc-linux | ||
cd sysroot-libc-linux && tar xf ../../libc6-frc2019-armel-cross_$(Va_LIBC).orig.tar.bz2 | ||
cd sysroot-libc-linux && tar xf ../../linux-libc-dev-frc2019-armel-cross_$(Va_LINUX).orig.tar.bz2 | ||
cd sysroot-libc-linux && tar xf ../../libgcc1-frc2019-armel-cross_$(Va_LIBGCC).orig.tar.bz2 | ||
cd sysroot-libc-linux && tar xf ../../libstdc++6-frc2019-armel-cross_$(Va_LIBSTDCPP).orig.tar.bz2 | ||
cd sysroot-libc-linux && tar xf ../../libc6-frc$(V_YEAR)-armel-cross_$(Va_LIBC).orig.tar.bz2 | ||
cd sysroot-libc-linux && tar xf ../../linux-libc-dev-frc$(V_YEAR)-armel-cross_$(Va_LINUX).orig.tar.bz2 | ||
cd sysroot-libc-linux && tar xf ../../libgcc1-frc$(V_YEAR)-armel-cross_$(Va_LIBGCC).orig.tar.bz2 | ||
cd sysroot-libc-linux && tar xf ../../libstdc++6-frc$(V_YEAR)-armel-cross_$(Va_LIBSTDCPP).orig.tar.bz2 | ||
makes/sysroot | ||
|
||
binutils: | ||
tar xf ../binutils-$(V_BINUTILS).tar.bz2 | ||
V_BINUTILS=$(V_BINUTILS) makes/binutils | ||
echo 'export PATH=$$PATH:${PWD}/binutils-install/usr/bin' | ||
V_YEAR=$(V_YEAR) V_BINUTILS=$(V_BINUTILS) makes/binutils | ||
|
||
gdb: | ||
tar xf ../gdb-$(V_GDB).tar.gz | ||
V_GDB=$(V_GDB) makes/gdb | ||
V_YEAR=$(V_YEAR) V_GDB=$(V_GDB) makes/gdb | ||
|
||
gcc: | ||
@# gcc does its own extraction | ||
makes/gcc | ||
echo "export PATH=$$PATH:${PWD}/gcc-install/usr/bin" | ||
|
||
tree: | ||
V_GCC=$(V_GCC) makes/tree | ||
V_YEAR=$(V_YEAR) V_GCC=$(V_GCC) makes/tree | ||
|
||
tarpkg: | ||
mkdir -p frc2019 | ||
mkdir -p frc2019/roborio | ||
cp -R tree-install/usr/local/* frc2019/roborio/ | ||
tar czf FRC-$(V_YEAR)-Linux-Toolchain-$(V_GCC).tar.gz frc2019 | ||
mkdir -p frc$(V_YEAR) | ||
mkdir -p frc$(V_YEAR)/roborio | ||
cp -R tree-install/usr/local/* frc$(V_YEAR)/roborio/ | ||
tar czf FRC-$(V_YEAR)-Linux-Toolchain-$(V_GCC).tar.gz frc$(V_YEAR) | ||
|
||
clean: | ||
rm -rf binutils* roborio* sysroot* gcc* tree-install *-Toolchain-*.tar.gz | ||
rm -rf binutils* roborio* sysroot* gcc* tree-install gdb* *-Toolchain-*.tar.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.