mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-08 00:40:21 +08:00
New.
This commit is contained in:
1 parent
4018204d6a
commit
2b0ee29905
10 files changed
+1710
No files matched your search
@@ -0,0 +1,4 @@
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.spec
|
||||
*.spec.in
|
||||
@@ -0,0 +1,34 @@
|
||||
# $Id$
|
||||
|
||||
rtems_api = 4.11
|
||||
TARGET = arm-rtemseabi4.11
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.21
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 1
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.6.0
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 1
|
||||
|
||||
NEWLIB_VERS = 1.19.0
|
||||
NEWLIB_PKGVERS = $(NEWLIB_VERS)
|
||||
NEWLIB_RPMREL = `$(GCC_RPMREL)
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=cxx
|
||||
|
||||
GDB_VERS = 7.2
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 1
|
||||
include ../gdb.am
|
||||
GDB_OPTS +=
|
||||
|
||||
# CPUKIT_VERS = 4.10.99.0
|
||||
# CPUKIT_PKGVERS = $(CPUKIT_VERS)-YYYYMMDD-R
|
||||
# CPUKIT_RPMREL = 1
|
||||
# include ../cpukit.am
|
||||
# CPUKIT_OPTS +=
|
||||
@@ -0,0 +1,2 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/binutils-2.21-rtems4.11-20110107.diff
|
||||
@@ -0,0 +1 @@
|
||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/rtems-%{cpukit_pkgvers}.tar.bz2
|
||||
@@ -0,0 +1,49 @@
|
||||
%if "%{gcc_version}" == "4.6.0"
|
||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-core-4.6.0-rtems4.11-20110522.diff
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.5.3"
|
||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-core-4.5.3-rtems4.11-20110426.diff
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.5.2"
|
||||
Source0: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-core-%{gcc_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-core-4.5.2-rtems4.11-20110220.diff
|
||||
%endif
|
||||
|
||||
%if %build_cxx
|
||||
%if "%{gcc_version}" == "4.6.0"
|
||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.5.3"
|
||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-g++-4.5.3-rtems4.11-20110426.diff
|
||||
%endif
|
||||
%if "%{gcc_version}" == "4.5.2"
|
||||
Source1: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-g++-%{gcc_pkgvers}.tar.bz2
|
||||
Patch1: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gcc-g++-4.5.2-rtems4.11-20110131.diff
|
||||
%endif
|
||||
|
||||
%endif
|
||||
%if %build_fortran
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
|
||||
%endif
|
||||
%if %build_newlib
|
||||
%if "%{newlib_version}" == "1.19.0"
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/newlib-1.19.0-rtems4.11-20110517.diff
|
||||
%endif
|
||||
%endif
|
||||
@@ -0,0 +1,8 @@
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.2-rtems4.11-20100903.diff
|
||||
%endif
|
||||
%if "%{gdb_version}" == "7.1"
|
||||
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.1.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/gdb-7.1-rtems4.11-20100812.diff
|
||||
%endif
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,157 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.11
|
||||
%define _exec_prefix %{_prefix}
|
||||
%define _bindir %{_exec_prefix}/bin
|
||||
%define _sbindir %{_exec_prefix}/sbin
|
||||
%define _libexecdir %{_exec_prefix}/libexec
|
||||
%define _datarootdir %{_prefix}/share
|
||||
%define _datadir %{_datarootdir}
|
||||
%define _sysconfdir %{_prefix}/etc
|
||||
%define _sharedstatedir %{_prefix}/com
|
||||
%define _localstatedir %{_prefix}/var
|
||||
%define _includedir %{_prefix}/include
|
||||
%define _libdir %{_exec_prefix}/%{_lib}
|
||||
%define _mandir %{_datarootdir}/man
|
||||
%define _infodir %{_datarootdir}/info
|
||||
%define _localedir %{_datarootdir}/locale
|
||||
|
||||
%ifos cygwin cygwin32 mingw mingw32
|
||||
%define _exeext .exe
|
||||
%define debug_package %{nil}
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
%else
|
||||
%define _exeext %{nil}
|
||||
%endif
|
||||
|
||||
%ifos cygwin cygwin32
|
||||
%define optflags -O3 -pipe -march=i486 -funroll-loops
|
||||
%endif
|
||||
|
||||
%ifos mingw mingw32
|
||||
%if %{defined _mingw32_cflags}
|
||||
%define optflags %{_mingw32_cflags}
|
||||
%else
|
||||
%define optflags -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
%define _host_rpmprefix %{_host}-
|
||||
%else
|
||||
%define _host_rpmprefix %{nil}
|
||||
%endif
|
||||
|
||||
|
||||
%define cpukit_pkgvers 4.9.99.0-20090206-2
|
||||
%define cpukit_version 4.9.99.0
|
||||
%define cpukit_rpmvers %{expand:%(echo "4.9.99.0-20090206-2" | tr - . )}
|
||||
|
||||
Name: rtems-4.11-arm-rtemseabi4.11-cpukit
|
||||
Summary: arm-rtemseabi4.11 cpukit
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{cpukit_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
License: GPL
|
||||
URL: http://cpukit.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
BuildRequires: rtems-4.11-arm-rtemseabi4.11-gcc
|
||||
|
||||
Source0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.11/rtems-%{cpukit_pkgvers}.tar.bz2
|
||||
|
||||
%description
|
||||
RTEMS cpukit for arm-rtemseabi4.11.
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
../rtems-%{cpukit_version}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--target=arm-rtemseabi4.11 \
|
||||
--enable-multilib \
|
||||
--disable-rtemsbsp
|
||||
|
||||
make all RTEMS_BSP=
|
||||
cd ..
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/man
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/bin
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
cat << \EOF > os_install_post~
|
||||
%__os_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized brp-*scripts
|
||||
cat os_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent brp-strip* from trying to handle foreign binaries
|
||||
*/brp-strip*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,find $RPM_BUILD_ROOT,find $RPM_BUILD_ROOT%_bindir $RPM_BUILD_ROOT%_libexecdir,' $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
# Fix up brp-compress to handle %%_prefix != /usr
|
||||
*/brp-compress*)
|
||||
b=$(basename $a)
|
||||
sed -e 's,\./usr/,.%{_prefix}/,g' < $a > $b
|
||||
chmod a+x $b
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{version}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/arm-rtemseabi4.11/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/arm-rtemseabi4.11/' | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{version}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{version}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{version}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/arm-rtemseabi4.11/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/arm-rtemseabi4.11/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{version}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%description -n rtems-4.11-arm-rtemseabi4.11-cpukit
|
||||
RTEMS cpukit for target arm-rtemseabi4.11.
|
||||
|
||||
%files -n rtems-4.11-arm-rtemseabi4.11-cpukit
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%{_prefix}/arm-rtemseabi4.11
|
||||
# Violates the FHS
|
||||
%exclude %{_prefix}/make
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user