-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carl Dong
committed
Jul 3, 2018
1 parent
b34fd30
commit 84d8956
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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,41 @@ | ||
#!/bin/echo Use "./mkroot.sh dropbear" | ||
|
||
# Example overlay file, adding dropbear (which requires zlib) | ||
|
||
echo === download source | ||
|
||
download 810fb70bd721e1d9f446b6503afe0a9088b62986 \ | ||
https://ftp.gnu.org/gnu/gcc/gcc-4.8.2/gcc-4.8.2.tar.bz2 | ||
|
||
[ -z "$TARGET" ] && TARGET="${CROSS_BASE/-*/}" | ||
[ -z "$TARGET" ] && TARGET="$(uname -m)" | ||
|
||
setupfor gcc | ||
./contrib/download_prerequisites && | ||
mkdir build && | ||
cd build && | ||
../configure \ | ||
--prefix=/tools \ | ||
--target="$TARGET" \ | ||
--with-sysroot="$ROOT" \ | ||
--with-newlib \ | ||
--without-headers \ | ||
--with-local-prefix=/tools \ | ||
--with-native-system-header-dir=/tools/include \ | ||
--disable-nls \ | ||
--disable-shared \ | ||
--disable-multilib \ | ||
--disable-decimal-float \ | ||
--disable-threads \ | ||
--disable-libatomic \ | ||
--disable-libgomp \ | ||
--disable-libitm \ | ||
--disable-libmudflap \ | ||
--disable-libquadmath \ | ||
--disable-libsanitizer \ | ||
--disable-libssp \ | ||
--disable-libstdc++-v3 \ | ||
--enable-languages=c,c++ && | ||
make -j && | ||
make install | ||
cleanup |