blob: fb775676c64abb6a27ba2d40c4d32e6d62b01bc0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#
# or1ksim 1.x.x Version 1.
#
# This configuration file configure's, make's and install's or1ksim.
#
%if %{release} == %{nil}
%define release 1
%endif
Name: or1ksim-%{or1ksim_version}-%{_host}-%{release}
Summary: or1ksim-github
Version: %{or1ksim_version}
Release: %{release}
URL: https://github.com/openrisc/or1ksim
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
#
# Source
#
%source set or1ksim https://github.com/openrisc/or1ksim/archive/or1k-master.zip
#
# Prepare the source code.
#
%prep
build_top=$(pwd)
%source setup or1ksim -q -n or1ksim-or1k-master
cd ${build_top}
%build
build_top=$(pwd)
cd or1ksim-or1k-master/
../or1ksim-or1k-master/configure \
--target=or1k-elf \
--prefix=%{_prefix} \
CFLAGS="-O0 -DINLINE=static -DNO_SOFTFLOAT_UNUSED"
%{__make} %{?_smp_mflags} all$
cd ${build_top}
%install
build_top=$(pwd)
rm -rf $SB_BUILD_ROOT
cd or1ksim-or1k-master
%{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
cd ${build_top}
|