Skip to content

Commit 93a2e7f

Browse files
committedSep 1, 2015
conda: add binutils-or1k-linux package recipe
1 parent 8dcec8a commit 93a2e7f

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed
 

Diff for: ‎conda/binutils-or1k-linux/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
binutils-or1k-linux
2+
===================
3+
4+
To build this package on Windows:
5+
6+
* Install cygwin
7+
* Install the following packages: gcc-core g++-core make texinfo patch
8+
* Run cygwin terminal and execute $ conda build binutils-or1k-linux

Diff for: ‎conda/binutils-or1k-linux/bld.bat

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FOR /F "tokens=* USEBACKQ" %%F IN (`cygpath -u %PREFIX%`) DO (
2+
SET var=%%F
3+
)
4+
set PREFIX=%var%
5+
FOR /F "tokens=* USEBACKQ" %%F IN (`cygpath -u %RECIPE_DIR%`) DO (
6+
SET var=%%F
7+
)
8+
set RECIPE_DIR=%var%
9+
sh %RECIPE_DIR%/build.sh
10+
if errorlevel 1 exit 1

Diff for: ‎conda/binutils-or1k-linux/build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
patch -p1 < $RECIPE_DIR/../../misc/binutils-2.25.1-or1k-R_PCREL-pcrel_offset.patch
2+
mkdir build
3+
cd build
4+
../configure --target=or1k-linux --prefix=$PREFIX
5+
make -j2
6+
make install

Diff for: ‎conda/binutils-or1k-linux/meta.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package:
2+
name: binutils-or1k-linux
3+
version: 2.25.1
4+
5+
source:
6+
fn: binutils-2.25.1.tar.bz2
7+
url: https://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.bz2
8+
sha256: b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22
9+
10+
build:
11+
number: 0
12+
13+
requirements:
14+
build:
15+
- system # [not win]
16+
17+
about:
18+
home: https://www.gnu.org/software/binutils/
19+
license: GPL
20+
summary: 'A set of programming tools for creating and managing binary programs, object files, libraries, profile data, and assembly source code.'

0 commit comments

Comments
 (0)
Please sign in to comment.