diff --git a/README.md b/README.md index 52462e4..af2318b 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/context/Dockerfile b/context/Dockerfile new file mode 100644 index 0000000..2235fd8 --- /dev/null +++ b/context/Dockerfile @@ -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 \ No newline at end of file diff --git a/context/Makefile b/context/Makefile new file mode 100644 index 0000000..4797004 --- /dev/null +++ b/context/Makefile @@ -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)