4.104.114.84.95
Line | |
---|
1 | Name: rtems-@target_alias@-@bsp@ |
---|
2 | Version: @rtems_version@ |
---|
3 | Summary: A free operating system for embedded systems |
---|
4 | Source: ftp://ftp.rtems.org/pub/rtems/rtems-%{version}.tar.bz2 |
---|
5 | |
---|
6 | # |
---|
7 | # The original sources are not included in the source RPM. |
---|
8 | # If we included them, then the source RPMs for each target |
---|
9 | # would duplicate MBs of source unnecessarily. |
---|
10 | # |
---|
11 | %{?!_with_sources:NoSource: 0} |
---|
12 | |
---|
13 | %description |
---|
14 | RTEMS is a free operating system for embedded systems. |
---|
15 | |
---|
16 | %prep |
---|
17 | # untar the sources inside rtems-@target_alias@-@bsp@-@rtems_version@ |
---|
18 | %setup -c -T -n rtems-@target_alias@-@bsp@-@rtems_version@ -a0 |
---|
19 | # no patch needed |
---|
20 | # %patch |
---|
21 | |
---|
22 | %build |
---|
23 | # rtems does not support building inside the source tree |
---|
24 | mkdir -p build |
---|
25 | cd build |
---|
26 | ../rtems-@rtems_version@/configure \ |
---|
27 | --target=@target_alias@ \ |
---|
28 | --prefix=%{_prefix}/@target_alias@ \ |
---|
29 | --enable-networking \ |
---|
30 | --enable-posix \ |
---|
31 | --enable-cxx \ |
---|
32 | --disable-tests \ |
---|
33 | --enable-rdbg \ |
---|
34 | --disable-multiprocessing \ |
---|
35 | --disable-itron |
---|
36 | make RTEMS_BSP=@bsp@ |
---|
37 | |
---|
38 | %install |
---|
39 | rm -rf $RPM_BUILD_ROOT |
---|
40 | make RTEMS_BSP=@bsp@ DESTDIR=$RPM_BUILD_ROOT install |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.