From 93a2e7fd85aef40930da95ed7765ce17cfc4d59a Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Tue, 1 Sep 2015 12:08:43 +0200 Subject: [PATCH] conda: add binutils-or1k-linux package recipe --- conda/binutils-or1k-linux/README.md | 8 ++++++++ conda/binutils-or1k-linux/bld.bat | 10 ++++++++++ conda/binutils-or1k-linux/build.sh | 6 ++++++ conda/binutils-or1k-linux/meta.yaml | 20 ++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100755 conda/binutils-or1k-linux/README.md create mode 100644 conda/binutils-or1k-linux/bld.bat create mode 100755 conda/binutils-or1k-linux/build.sh create mode 100644 conda/binutils-or1k-linux/meta.yaml diff --git a/conda/binutils-or1k-linux/README.md b/conda/binutils-or1k-linux/README.md new file mode 100755 index 000000000..d812cc7b2 --- /dev/null +++ b/conda/binutils-or1k-linux/README.md @@ -0,0 +1,8 @@ +binutils-or1k-linux +=================== + +To build this package on Windows: + +* Install cygwin +* Install the following packages: gcc-core g++-core make texinfo patch +* Run cygwin terminal and execute $ conda build binutils-or1k-linux \ No newline at end of file diff --git a/conda/binutils-or1k-linux/bld.bat b/conda/binutils-or1k-linux/bld.bat new file mode 100644 index 000000000..6c709129f --- /dev/null +++ b/conda/binutils-or1k-linux/bld.bat @@ -0,0 +1,10 @@ +FOR /F "tokens=* USEBACKQ" %%F IN (`cygpath -u %PREFIX%`) DO ( +SET var=%%F +) +set PREFIX=%var% +FOR /F "tokens=* USEBACKQ" %%F IN (`cygpath -u %RECIPE_DIR%`) DO ( +SET var=%%F +) +set RECIPE_DIR=%var% +sh %RECIPE_DIR%/build.sh +if errorlevel 1 exit 1 diff --git a/conda/binutils-or1k-linux/build.sh b/conda/binutils-or1k-linux/build.sh new file mode 100755 index 000000000..faa6aa8e4 --- /dev/null +++ b/conda/binutils-or1k-linux/build.sh @@ -0,0 +1,6 @@ +patch -p1 < $RECIPE_DIR/../../misc/binutils-2.25.1-or1k-R_PCREL-pcrel_offset.patch +mkdir build +cd build +../configure --target=or1k-linux --prefix=$PREFIX +make -j2 +make install diff --git a/conda/binutils-or1k-linux/meta.yaml b/conda/binutils-or1k-linux/meta.yaml new file mode 100644 index 000000000..d8e8f9e71 --- /dev/null +++ b/conda/binutils-or1k-linux/meta.yaml @@ -0,0 +1,20 @@ +package: + name: binutils-or1k-linux + version: 2.25.1 + +source: + fn: binutils-2.25.1.tar.bz2 + url: https://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.bz2 + sha256: b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22 + +build: + number: 0 + +requirements: + build: + - system # [not win] + +about: + home: https://www.gnu.org/software/binutils/ + license: GPL + summary: 'A set of programming tools for creating and managing binary programs, object files, libraries, profile data, and assembly source code.'