Skip to content

Commit

Permalink
conda: add binutils-or1k-linux package recipe
Browse files Browse the repository at this point in the history
fallen committed Sep 1, 2015
1 parent 8dcec8a commit 93a2e7f
Showing 4 changed files with 44 additions and 0 deletions.
8 changes: 8 additions & 0 deletions conda/binutils-or1k-linux/README.md
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions conda/binutils-or1k-linux/bld.bat
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions conda/binutils-or1k-linux/build.sh
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions conda/binutils-or1k-linux/meta.yaml
Original file line number Diff line number Diff line change
@@ -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.'

0 comments on commit 93a2e7f

Please sign in to comment.