mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
New.
This commit is contained in:
3
scripts/rtems/header.add
Normal file
3
scripts/rtems/header.add
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
# spec file for building an rtems bsp.
|
||||
#
|
||||
41
scripts/rtems/rtems.add
Normal file
41
scripts/rtems/rtems.add
Normal file
@@ -0,0 +1,41 @@
|
||||
Name: rtems-@target_alias@-@bsp@
|
||||
Version: @rtems_version@
|
||||
Summary: A free operating system for embedded systems
|
||||
Source: ftp://ftp.rtems.org/pub/rtems/rtems-%{version}.tar.bz2
|
||||
|
||||
#
|
||||
# The original sources are not included in the source RPM.
|
||||
# If we included them, then the source RPMs for each target
|
||||
# would duplicate MBs of source unnecessarily.
|
||||
#
|
||||
%{?!_with_sources:NoSource: 0}
|
||||
|
||||
%description
|
||||
RTEMS is a free operating system for embedded systems.
|
||||
|
||||
%prep
|
||||
# untar the sources inside rtems-@target_alias@-@bsp@-@rtems_version@
|
||||
%setup -c -T -n rtems-@target_alias@-@bsp@-@rtems_version@ -a0
|
||||
# no patch needed
|
||||
# %patch
|
||||
|
||||
%build
|
||||
# rtems does not support building inside the source tree
|
||||
mkdir -p build
|
||||
cd build
|
||||
../rtems-@rtems_version@/configure \
|
||||
--target=@target_alias@ \
|
||||
--prefix=%{_prefix}/@target_alias@ \
|
||||
--enable-networking \
|
||||
--enable-posix \
|
||||
--enable-cxx \
|
||||
--disable-tests \
|
||||
--enable-rdbg \
|
||||
--disable-multiprocessing \
|
||||
--disable-itron
|
||||
make RTEMS_BSP=@bsp@
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make RTEMS_BSP=@bsp@ DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
3
scripts/rtems/target-rtems.add
Normal file
3
scripts/rtems/target-rtems.add
Normal file
@@ -0,0 +1,3 @@
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_prefix}
|
||||
Reference in New Issue
Block a user