4.11
Last change
on this file since 80cf137 was
8197b8e,
checked in by Chris Johns <chrisj@…>, on 01/18/15 at 04:34:35
|
Add the host name to the package name.
Adding the host name results in the tar files created by the
--bset-tar-file and --pkg-tar-files to contain the host name.
This is useful when building Cxc packages.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | # |
---|
2 | # or1ksim 1.x.x Version 1. |
---|
3 | # |
---|
4 | # This configuration file configure's, make's and install's or1ksim. |
---|
5 | # |
---|
6 | |
---|
7 | %if %{release} == %{nil} |
---|
8 | %define release 1 |
---|
9 | %endif |
---|
10 | |
---|
11 | Name: or1ksim-%{or1ksim_version}-%{_host}-%{release} |
---|
12 | Summary: or1ksim-github |
---|
13 | Version: %{or1ksim_version} |
---|
14 | Release: %{release} |
---|
15 | URL: https://github.com/openrisc/or1ksim |
---|
16 | BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n) |
---|
17 | |
---|
18 | # |
---|
19 | # Source |
---|
20 | # |
---|
21 | %source set or1ksim https://github.com/openrisc/or1ksim/archive/or1k-master.zip |
---|
22 | |
---|
23 | # |
---|
24 | # Prepare the source code. |
---|
25 | # |
---|
26 | %prep |
---|
27 | build_top=$(pwd) |
---|
28 | |
---|
29 | %source setup or1ksim -q -n or1ksim-or1k-master |
---|
30 | |
---|
31 | cd ${build_top} |
---|
32 | |
---|
33 | %build |
---|
34 | build_top=$(pwd) |
---|
35 | |
---|
36 | cd or1ksim-or1k-master/ |
---|
37 | |
---|
38 | ../or1ksim-or1k-master/configure \ |
---|
39 | --target=or1k-elf \ |
---|
40 | --prefix=%{_prefix} \ |
---|
41 | CFLAGS="-O0 -DINLINE=static -DNO_SOFTFLOAT_UNUSED" |
---|
42 | |
---|
43 | |
---|
44 | %{__make} %{?_smp_mflags} all$ |
---|
45 | |
---|
46 | |
---|
47 | cd ${build_top} |
---|
48 | |
---|
49 | %install |
---|
50 | build_top=$(pwd) |
---|
51 | |
---|
52 | rm -rf $SB_BUILD_ROOT |
---|
53 | |
---|
54 | cd or1ksim-or1k-master |
---|
55 | %{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install |
---|
56 | |
---|
57 | cd ${build_top} |
---|
Note: See
TracBrowser
for help on using the repository browser.