-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conda: add binutils-or1k-linux package recipe
Showing
4 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.' |