Skip to content

Commit

Permalink
Add Dockerfile for building crosstool-ng toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kokhong Cheng committed Aug 8, 2016
1 parent 71f0086 commit 7a1e2ae
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ My Book Live Firmware Version 02.43.10 - 048 (6/22/2015)
My Book Live Firmware Version 02.43.09 - 038 (1/27/2015)
* http://download.wdc.com/nas/apnc-024310-048-20150507.deb

## Crosstool

context contains a Dockerfile and Makefile that creates a CentOS-based
image to build a crosstools-ng compiler.

Use the profile _powerpc-405-linux-gnu_ to build a toolchain for MyBook Live's architecture.

## Reference

http://mybookworld.wikidot.com/forum/t-558327/previous-firmware-download-links-for-wd-mbl
http://mybookworld.wikidot.com/forum/t-558327/previous-firmware-download-links-for-wd-mbl

http://www.schwabenlan.de/en/blog/2016/02/17/upgrading-to-jessie-on-mybooklive
11 changes: 11 additions & 0 deletions context/Dockerfile
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
22 changes: 22 additions & 0 deletions context/Makefile
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)

0 comments on commit 7a1e2ae

Please sign in to comment.