mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
conda: add binutils-or1k-linux package recipe
This commit is contained in:
parent
8dcec8a997
commit
93a2e7fd85
8
conda/binutils-or1k-linux/README.md
Executable file
8
conda/binutils-or1k-linux/README.md
Executable file
@ -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
conda/binutils-or1k-linux/bld.bat
Normal file
10
conda/binutils-or1k-linux/bld.bat
Normal file
@ -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
conda/binutils-or1k-linux/build.sh
Executable file
6
conda/binutils-or1k-linux/build.sh
Executable file
@ -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
conda/binutils-or1k-linux/meta.yaml
Normal file
20
conda/binutils-or1k-linux/meta.yaml
Normal file
@ -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.'
|
Loading…
Reference in New Issue
Block a user