-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile for building crosstool-ng toolchain.
- Loading branch information
Kokhong Cheng
committed
Aug 8, 2016
1 parent
71f0086
commit 7a1e2ae
Showing
3 changed files
with
43 additions
and
1 deletion.
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
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,11 @@ | ||
from centos | ||
|
||
run yum -y update | ||
run yum -y install epel-release | ||
run yum -y install autoconf automake bison bzip2 cpp epel-release file fipscheck fipscheck-lib flex \ | ||
gcc gcc-c++ gcc-go git glibc-devel glibc-headers glibc-static golang golang-bin golang-src gperf groff-base \ | ||
help2man kernel-headers less libedit libgnome-keyring libgo libgo-devel libgomp libmpc libstdc++-devel libstdc++-static libtool \ | ||
m4 make mpfr ncurses-devel openssh openssh-clients patch rsync wget which | ||
run yum -y install texinfo | ||
|
||
add Makefile Makefile |
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,22 @@ | ||
ALL := .git configure Makefile build | ||
|
||
all: $(foreach S,$(ALL),crosstool-ng/$S) | ||
(cd crosstool-ng; make install) | ||
|
||
crosstool-ng/Makefile: | ||
(cd crosstool-ng; ./configure) | ||
|
||
crosstool-ng/configure: | ||
(cd crosstool-ng; ./bootstrap) | ||
|
||
crosstool-ng/build: | ||
mkdir -p $@ | ||
|
||
crosstool-ng/.git: | ||
git clone https://github.com/crosstool-ng/crosstool-ng | ||
|
||
pull: crosstool-ng/.git | ||
(cd crosstool-ng; git pull) | ||
|
||
clean: crosstool-ng/.git | ||
(cd crosstool-ng; git clean -xfd) |