forked from Imagelibrary/rtems
Successfully built some RPMs. There is still a lot of work to do.
This commit is contained in:
@@ -3,3 +3,26 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
This directory contains the scripts used to build RPMS for GNAT/RTEMS.
|
This directory contains the scripts used to build RPMS for GNAT/RTEMS.
|
||||||
|
|
||||||
|
The scripts are close but do not work completely right yet. I have
|
||||||
|
commented out the info related items in gnatnewlib.in to get the
|
||||||
|
RPMS to build.
|
||||||
|
|
||||||
|
The binutils directory should be ignored for now. In order to
|
||||||
|
build the toolset at all, I had to merge building binutils
|
||||||
|
into the build of gcc, gnat, and newlib. gdb is still built separately.
|
||||||
|
When gnat is based off a more recent gcc version, we can go
|
||||||
|
to the more proper method of building binutils first and
|
||||||
|
separately.
|
||||||
|
|
||||||
|
There is the more general issue that the gcc 2.8.1 RTEMS targets
|
||||||
|
were not always the same object format that the gcc 2.95.x ones
|
||||||
|
are. Thus some BSPs (m68k and i386 in particular) are now ELF
|
||||||
|
based and assume crti.o/crtn.o is installed. The gcc 2.8.1
|
||||||
|
configurations were not ELF and thus it is likely that programs
|
||||||
|
will not link on certain configurations.
|
||||||
|
|
||||||
|
Another more general issue is that GNAT gdb support is at
|
||||||
|
4.17 while remote debugging of RTEMS applications via
|
||||||
|
TCP/IP is in 4.18.
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ MKGDBSPEC = $(SHELL) $(top_builddir)/mkgdbspec
|
|||||||
MKGDBSPEC_DEPS = \
|
MKGDBSPEC_DEPS = \
|
||||||
$(top_builddir)/mkgdbspec gdb.spec.in $(top_builddir)/setup.cache
|
$(top_builddir)/mkgdbspec gdb.spec.in $(top_builddir)/setup.cache
|
||||||
|
|
||||||
|
powerpc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
sparc-rtems-$(GDBVERS).spec: $(MKGDBSPEC_DEPS)
|
||||||
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
|
$(MKGDBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
|
||||||
|
|
||||||
@@ -12,6 +15,7 @@ TEMPLATES = \
|
|||||||
gdb.spec.in
|
gdb.spec.in
|
||||||
|
|
||||||
RPM_SPECS_DATA = \
|
RPM_SPECS_DATA = \
|
||||||
|
powerpc-rtems-$(GDBVERS).spec \
|
||||||
sparc-rtems-$(GDBVERS).spec
|
sparc-rtems-$(GDBVERS).spec
|
||||||
|
|
||||||
noinst_DATA = \
|
noinst_DATA = \
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ MKGNATNEWLIBSPEC = $(SHELL) $(top_builddir)/mkgnatnewlibspec
|
|||||||
MKGNATNEWLIBSPEC_DEPS = \
|
MKGNATNEWLIBSPEC_DEPS = \
|
||||||
$(top_builddir)/mkgnatnewlibspec gnatnewlib.spec.in $(top_builddir)/setup.cache
|
$(top_builddir)/mkgnatnewlibspec gnatnewlib.spec.in $(top_builddir)/setup.cache
|
||||||
|
|
||||||
|
powerpc-rtems-$(GNATNEWLIBVERS).spec: $(MKGNATNEWLIBSPEC_DEPS)
|
||||||
|
$(MKGNATNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . powerpc-rtems
|
||||||
|
|
||||||
sparc-rtems-$(GNATNEWLIBVERS).spec: $(MKGNATNEWLIBSPEC_DEPS)
|
sparc-rtems-$(GNATNEWLIBVERS).spec: $(MKGNATNEWLIBSPEC_DEPS)
|
||||||
$(MKGNATNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
|
$(MKGNATNEWLIBSPEC) -cfg $(top_builddir)/setup.cache -o . sparc-rtems
|
||||||
|
|
||||||
@@ -14,6 +17,7 @@ TEMPLATES = \
|
|||||||
gnatnewlib.spec.in
|
gnatnewlib.spec.in
|
||||||
|
|
||||||
RPM_SPECS_DATA = \
|
RPM_SPECS_DATA = \
|
||||||
|
powerpc-rtems-$(GNATNEWLIBVERS).spec \
|
||||||
sparc-rtems-$(GNATNEWLIBVERS).spec
|
sparc-rtems-$(GNATNEWLIBVERS).spec
|
||||||
|
|
||||||
noinst_DATA = \
|
noinst_DATA = \
|
||||||
|
|||||||
@@ -188,8 +188,10 @@ This is gnat, gcc, and newlib C Library for @target_alias@.
|
|||||||
|
|
||||||
make CC=gcc CFLAGS="-O2" LANGUAGES="c" all
|
make CC=gcc CFLAGS="-O2" LANGUAGES="c" all
|
||||||
make CC=gcc CFLAGS="-O2" LANGUAGES="c" info
|
make CC=gcc CFLAGS="-O2" LANGUAGES="c" info
|
||||||
# must be installed in the real place to allow gnat to continue to build
|
# must be installed to allow gnat to continue to build
|
||||||
make CC=gcc CFLAGS="-O2" LANGUAGES="c" install
|
make CC=gcc CFLAGS="-O2" LANGUAGES="c" install install-info
|
||||||
|
make prefix=$RPM_BUILD_ROOT/opt/gnatrtems \
|
||||||
|
CC=gcc CFLAGS="-O2" LANGUAGES="c" install install-info
|
||||||
|
|
||||||
# When GNAT uses a gcc that finds the RTEMS limits.h, this will not
|
# When GNAT uses a gcc that finds the RTEMS limits.h, this will not
|
||||||
# be needed. This should not be needed if the limits.h trick above works.
|
# be needed. This should not be needed if the limits.h trick above works.
|
||||||
@@ -253,14 +255,15 @@ This is gnat, gcc, and newlib C Library for @target_alias@.
|
|||||||
echo "%dir /opt/gnatrtems/lib/gcc-lib" >> dirs ;
|
echo "%dir /opt/gnatrtems/lib/gcc-lib" >> dirs ;
|
||||||
echo "%dir /opt/gnatrtems/lib/gcc-lib/@target_alias@" >> dirs ;
|
echo "%dir /opt/gnatrtems/lib/gcc-lib/@target_alias@" >> dirs ;
|
||||||
|
|
||||||
if test -f $RPM_BUILD_ROOT/opt/gnatrtems/info/configure.info.gz;
|
touch ../files
|
||||||
then
|
# if test -f $RPM_BUILD_ROOT/opt/gnatrtems/info/configure.info.gz;
|
||||||
|
# then
|
||||||
# These common files are only present in binutils >= 2.9.5
|
# These common files are only present in binutils >= 2.9.5
|
||||||
find $RPM_BUILD_ROOT/opt/gnatrtems/info -name 'configure.*' | \
|
# find $RPM_BUILD_ROOT/opt/gnatrtems/info -name 'configure.*' | \
|
||||||
sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
|
# sed -e "s,^$RPM_BUILD_ROOT,,g" > ../files
|
||||||
else
|
# else
|
||||||
touch ../files
|
# touch ../files
|
||||||
fi
|
# fi
|
||||||
# These target specific files are only present in binutils >= 2.9.5
|
# These target specific files are only present in binutils >= 2.9.5
|
||||||
if test -f /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@;
|
if test -f /opt/gnatrtems/bin/@target_alias@-readelf@exe_ext@;
|
||||||
then
|
then
|
||||||
@@ -288,17 +291,17 @@ This is gnat, gcc, and newlib C Library for @target_alias@.
|
|||||||
|
|
||||||
%files -n rtems-base-gnat-binutils -f files
|
%files -n rtems-base-gnat-binutils -f files
|
||||||
%dir /opt/gnatrtems/info
|
%dir /opt/gnatrtems/info
|
||||||
%doc /opt/gnatrtems/info/dir
|
# %doc /opt/gnatrtems/info/dir
|
||||||
%doc /opt/gnatrtems/info/as.info.gz
|
# %doc /opt/gnatrtems/info/as.info.gz
|
||||||
%doc /opt/gnatrtems/info/as.info-?.gz
|
# %doc /opt/gnatrtems/info/as.info-?.gz
|
||||||
%doc /opt/gnatrtems/info/bfd.info.gz
|
# %doc /opt/gnatrtems/info/bfd.info.gz
|
||||||
%doc /opt/gnatrtems/info/bfd.info-?.gz
|
# %doc /opt/gnatrtems/info/bfd.info-?.gz
|
||||||
%doc /opt/gnatrtems/info/binutils.info.gz
|
# %doc /opt/gnatrtems/info/binutils.info.gz
|
||||||
%doc /opt/gnatrtems/info/binutils.info-?.gz
|
# %doc /opt/gnatrtems/info/binutils.info-?.gz
|
||||||
%doc /opt/gnatrtems/info/ld.info.gz
|
# %doc /opt/gnatrtems/info/ld.info.gz
|
||||||
%doc /opt/gnatrtems/info/ld.info-?.gz
|
# %doc /opt/gnatrtems/info/ld.info-?.gz
|
||||||
%doc /opt/gnatrtems/info/gasp.info.gz
|
# %doc /opt/gnatrtems/info/gasp.info.gz
|
||||||
%doc /opt/gnatrtems/info/standards.info.gz
|
# %doc /opt/gnatrtems/info/standards.info.gz
|
||||||
|
|
||||||
%dir /opt/gnatrtems/man
|
%dir /opt/gnatrtems/man
|
||||||
%dir /opt/gnatrtems/man/man1
|
%dir /opt/gnatrtems/man/man1
|
||||||
@@ -362,7 +365,7 @@ This is gnat, gcc, and newlib C Library for @target_alias@.
|
|||||||
|
|
||||||
%dir /opt/gnatrtems/bin
|
%dir /opt/gnatrtems/bin
|
||||||
# /opt/gnatrtems/bin/cpp@exe_ext@
|
# /opt/gnatrtems/bin/cpp@exe_ext@
|
||||||
/opt/gnatrtems/bin/gcov@exe_ext@
|
# /opt/gnatrtems/bin/gcov@exe_ext@
|
||||||
%dir /opt/gnatrtems/include
|
%dir /opt/gnatrtems/include
|
||||||
# /opt/gnatrtems/include/g++-3
|
# /opt/gnatrtems/include/g++-3
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ binutils_version=2.9.1
|
|||||||
binutils_patch_version=20000126
|
binutils_patch_version=20000126
|
||||||
binutils_rpm_release=1
|
binutils_rpm_release=1
|
||||||
newlib_version=1.8.2
|
newlib_version=1.8.2
|
||||||
newlib_patch_version=20000104
|
newlib_patch_version=20000130
|
||||||
gcc_version=2.8.1
|
gcc_version=2.8.1
|
||||||
gcc_patch_version=20000126
|
gcc_patch_version=20000126
|
||||||
gnat_version=3.12p
|
gnat_version=3.12p
|
||||||
gnat_patch_version=20000126
|
gnat_patch_version=20000126
|
||||||
gnatnewlib_rpm_release=1
|
gnatnewlib_rpm_release=2
|
||||||
gdb_version=4.17
|
gdb_version=4.17
|
||||||
gdb_patch_version=20000126
|
gdb_patch_version=20000126
|
||||||
gdb_rpm_release=1
|
gdb_rpm_release=1
|
||||||
|
|||||||
Reference in New Issue
Block a user