forked from Imagelibrary/rtems
Remove (Moved to git.rtems.org/data/git/rtems-crossrpms.git).
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
Chris Johns <chrisj@rtems.org>
|
||||
- Testing.
|
||||
- Bugfixes.
|
||||
- mingw32.
|
||||
|
||||
Joel Sherrill <joel@oarcorp.com>
|
||||
- Testing.
|
||||
@@ -1,340 +0,0 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
||||
@@ -1,138 +0,0 @@
|
||||
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require autoconf-2.68, automake-1.11.1.
|
||||
|
||||
2008-09-25 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* rtems4.10/sparc/Makefile.am: Bump RTEMS CPU Kit version.
|
||||
* patches/gcc-ada-4.3.2-rtems4.10-20080910.diff: New file.
|
||||
* patches/gcc-ada-4.2.0-rtems4.8-20070705.diff: Removed.
|
||||
|
||||
2007-12-17 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* rtems4.8/.cvsignore, rtems4.8/arm/.cvsignore,
|
||||
rtems4.8/avr/.cvsignore, rtems4.8/bfin/.cvsignore,
|
||||
rtems4.8/h8300/.cvsignore, rtems4.8/i386/.cvsignore,
|
||||
rtems4.8/m68k/.cvsignore, rtems4.8/mips/.cvsignore,
|
||||
rtems4.8/mipstx39/.cvsignore, rtems4.8/powerpc/.cvsignore,
|
||||
rtems4.8/sh/.cvsignore, rtems4.8/sparc/.cvsignore,
|
||||
rtems4.8/tic4x/.cvsignore: New.
|
||||
|
||||
2006-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: New BUG-REPORT address.
|
||||
|
||||
2006-11-19 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* autotools/Makefile.am, autotools/autoconf.add:
|
||||
Upgrade to autoconf-2.61.
|
||||
|
||||
2006-11-15 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* patches/gcc-core-4.2-20061114-rtems4.8-20061115.diff: New.
|
||||
* patches/newlib-1.14.0-bfinrtems-20060810a.diff: Remove (Obsolete).
|
||||
* patches/gcc-4.1.1-bfinrtems-20060810a.diff: Remove (Obsolete).
|
||||
* rtems-4.8/bfin/Makefile.am, rtems-4.8/bin/gcc-sources.add:
|
||||
GCC_REL=4. Upgrade to gcc-core-4.2-20061114-rtems4.8-20061115.diff.
|
||||
|
||||
2006-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac, Makefile.am: Remove rtems4.7.
|
||||
* rtems4.7: Remove (Development now in rtems-4-7-branch only).
|
||||
|
||||
2006-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* patches/newlib-1.14.0-rtems4.8-20061027.diff: New.
|
||||
* patches/newlib-1.14.0-rtems-20061026.diff: Remove (broken).
|
||||
|
||||
2006-10-26 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* patches/newlib-1.14.0-rtems-20061026.diff: New file.
|
||||
|
||||
2006-10-22 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* Makefile.am, configure.ac: Add rtems-4.8.
|
||||
|
||||
2006-10-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Set RTEMS_API to 4.8.
|
||||
|
||||
2006-10-16 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* autotools/Makefile.am, autotools/automake.add: Update to
|
||||
automake-1.10.
|
||||
|
||||
2006-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* rtems4.7/arm/gcc-sources.add, rtems4.7/h8300/gcc-sources.add,
|
||||
rtems4.7/i386/gcc-sources.add, rtems4.7/m68k/gcc-sources.add,
|
||||
rtems4.7/mips/gcc-sources.add, rtems4.7/powerpc/gcc-sources.add
|
||||
rtems4.7/sh/gcc-sources.add, rtems4.7/sparc/gcc-sources.add
|
||||
rtems4.7/tic4x/gcc-sources.add: Add gcc-4.0.3.
|
||||
|
||||
2006-08-23 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* gcc/build.add: Revert --disable-libssp etc. hacks.
|
||||
|
||||
2006-08-22 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* rtems4.7/avr/gcc-sources.add: Add the 4.0.3 patch.
|
||||
* patches/gcc-core-4.0.3-rtems-20060822.diff:
|
||||
The .exe for the versioned execuable for MinGW.
|
||||
|
||||
2006-08-21 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* rtems4.7/h8300/binutils-sources.add,
|
||||
rtems4.7/m68k/binutils-sources.add: Add h8300 _tinydata patch and
|
||||
bump patch for targets needing it.
|
||||
* patches/binutils-2.17-rtems-20060815.diff: New file.
|
||||
|
||||
2006-08-11 Joel Sherrill <joel@oarcorp.com>
|
||||
|
||||
* configure.ac, gcc/build.add, gcc/target-gcc.add: Add bfin target
|
||||
prior to merge. Add ability to disable libssp and libstdcxx-pch which
|
||||
apparently are required to build the Blackfin port.
|
||||
* patches/binutils-2.17-rtems-bfin-20060810.diff,
|
||||
patches/gcc-4.1.1-bfinrtems-20060810a.diff,
|
||||
patches/gdb-6.5-bfinrtems-20060810a.diff,
|
||||
patches/newlib-1.14.0-bfinrtems-20060810a.diff,
|
||||
rtems4.7/bfin/.cvsignore, rtems4.7/bfin/Makefile.am,
|
||||
rtems4.7/bfin/binutils-sources.add, rtems4.7/bfin/gcc-sources.add,
|
||||
rtems4.7/bfin/gdb-sources.add: New files.
|
||||
|
||||
2006-08-09 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* .cvsignore: Add INSTALL.
|
||||
|
||||
2006-07-19 Chris Johns <chrisj@rtems.org>
|
||||
|
||||
* patches/gcc-core-4.1.1-rtems-20060720.diff:
|
||||
Added patch to fix GCC bug PR28400.
|
||||
|
||||
2006-07-13 Joel Sherrill <joel@oarcorp.com>
|
||||
|
||||
* configure.ac, rtems4.7/Makefile.am, rtems4.7/arm/Makefile.am,
|
||||
rtems4.7/arm/gdb-sources.add, rtems4.7/avr/Makefile.am,
|
||||
rtems4.7/avr/gdb-sources.add, rtems4.7/h8300/Makefile.am,
|
||||
rtems4.7/h8300/gdb-sources.add, rtems4.7/i386/Makefile.am,
|
||||
rtems4.7/i386/gdb-sources.add, rtems4.7/m68k/Makefile.am,
|
||||
rtems4.7/m68k/gdb-sources.add, rtems4.7/mips/Makefile.am,
|
||||
rtems4.7/mips/gdb-sources.add, rtems4.7/powerpc/Makefile.am,
|
||||
rtems4.7/powerpc/gdb-sources.add, rtems4.7/sh/Makefile.am,
|
||||
rtems4.7/sh/gdb-sources.add, rtems4.7/sparc/Makefile.am,
|
||||
rtems4.7/sparc/gdb-sources.add, rtems4.7/tic4x/gdb-sources.add:
|
||||
Updated to gdb 6.5
|
||||
* patches/gdb-6.5-rtems-20060713.diff, rtems4.7/mipstx39/.cvsignore,
|
||||
rtems4.7/mipstx39/Makefile.am, rtems4.7/mipstx39/gdb-sources.add: New files.
|
||||
|
||||
2006-07-12 Joel Sherrill <joel@oarcorp.com>
|
||||
|
||||
* rtems4.7/arm/gdb-sources.add, rtems4.7/avr/gdb-sources.add,
|
||||
rtems4.7/h8300/gdb-sources.add, rtems4.7/i386/gdb-sources.add,
|
||||
rtems4.7/m68k/gdb-sources.add, rtems4.7/mips/gdb-sources.add,
|
||||
rtems4.7/powerpc/gdb-sources.add, rtems4.7/sh/gdb-sources.add,
|
||||
rtems4.7/sparc/gdb-sources.add, rtems4.7/tic4x/gdb-sources.add:
|
||||
Update gdb to use newer patch. This lets sparc build simulator and
|
||||
mips build at all.
|
||||
* patches/gdb-6.4-rtems-20060712.diff: New file.
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
SUBDIRS = @HOST_SUBDIRS@ @TARGET_SUBDIRS@
|
||||
|
||||
DIST_SUBDIRS =
|
||||
DIST_SUBDIRS += rtems4.10
|
||||
DIST_SUBDIRS += autotools
|
||||
|
||||
EXTRA_DIST += specstrip
|
||||
EXTRA_DIST += $(srcdir)/patches/*.diff
|
||||
|
||||
install-patches:
|
||||
@rpmsourcedir=`rpm --eval '%_sourcedir'`; \
|
||||
for f in $(srcdir)/patches/*.diff; do \
|
||||
echo "$(INSTALL_DATA) $$f $$rpmsourcedir"; \
|
||||
$(INSTALL_DATA) $$f $$rpmsourcedir; \
|
||||
done
|
||||
@@ -1,19 +0,0 @@
|
||||
2006-07-24 Add provisory/preliminary autotools support.
|
||||
|
||||
2006-07-23 Rename "*-base-*" packages into <tool>-common.
|
||||
Rename GCC's "*-<lang>" packages into "*-gcc-<lang>".
|
||||
Many small directory ownership fixes.
|
||||
Build all GCC packages with --enable-threads.
|
||||
|
||||
2006-07-10 Completely reworked and restructurized.
|
||||
|
||||
2006-03-10 Add preliminary rtems-gdb specs.
|
||||
(Immature, incomplete, needs further testing).
|
||||
|
||||
2006-03-09 Add fortran and objc to GCC's default languages for freebsd5.2,
|
||||
freebsd6.0 and solaris.
|
||||
|
||||
2006-03-02 Pass --enable-sysroot to non-rtems binutils (Required by
|
||||
GCC-4.1 sys-root'ed toolchains).
|
||||
|
||||
2006-02-25 Put this package under the GPL.
|
||||
@@ -1,18 +0,0 @@
|
||||
|
||||
Copyright (C) 2006 Ralf Corsépius, Ulm, Germany <ralf.corsepius@rtems.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
* Improve autotools support:
|
||||
- Problem: The autotools packages conflict with OS provided packages
|
||||
for --prefix=/usr.
|
||||
|
||||
* Improve info files treatment:
|
||||
- Problem: Infos are not target canonicalized. Therefore, installing them to
|
||||
/usr or /usr/local is likely to conflict with vendor provided infos rsp.
|
||||
locally installed packages. Additionally, installing to /usr/local is
|
||||
completely out of our control.
|
||||
- Current approach: Install infos/provide base packages only for
|
||||
$prefix ==/opt/rtems* or if user is forcing them with --enable-infos
|
||||
- Consider to canonicalize the infos (How?). Probably better be done by
|
||||
upstream.
|
||||
|
||||
* Ada:
|
||||
- Consider to remove it (Lack of multilibs renders it unusable for rtems
|
||||
toolchains).
|
||||
- Consider to add support for non-multilib'ed toolchains.
|
||||
|
||||
* gcc/build.add: Use --languages=fortran instead of f95 for gcc >= 4.1
|
||||
(--languages=f95 is deprecated in gcc >= 4.1)
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
# RTEMS_CANONICAL_SPLIT(THING)
|
||||
# --------------------------
|
||||
# Generate the variables THING, THING_{alias cpu vendor os}.
|
||||
m4_define([RTEMS_CANONICAL_SPLIT],
|
||||
[case $ac_cv_$1 in
|
||||
*-*-*) ;;
|
||||
*) AC_MSG_ERROR([invalid value of canonical $1]);;
|
||||
esac
|
||||
ac_save_IFS=$IFS; IFS='-'
|
||||
set x $ac_cv_$1
|
||||
shift
|
||||
$1_cpu=$[1]
|
||||
$1_vendor=$[2]
|
||||
shift; shift
|
||||
[# Remember, the first character of IFS is used to create $]*,
|
||||
# except with old shells:
|
||||
$1_os=$[*]
|
||||
IFS=$ac_save_IFS
|
||||
case $$1_os in *\ *) $1_os=`echo "$$1_os" | sed 's/ /-/g'`;; esac
|
||||
])# RTEMS_CANONICAL_SPLIT
|
||||
@@ -1,13 +0,0 @@
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
AUTOCONF_VERS = 2.68
|
||||
AUTOCONF_RPMREL = 2
|
||||
include ./autoconf.am
|
||||
|
||||
AUTOMAKE_VERS = 1.11.1
|
||||
AUTOMAKE_RPMREL = 2
|
||||
include ./automake.am
|
||||
@@ -1,9 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{srcvers}.tar.bz2
|
||||
%if "%{srcvers}" == "2.66"
|
||||
# Fedora's patch to fix
|
||||
# http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
|
||||
# http://lists.gnu.org/archive/html/bug-autoconf/2010-07/msg00012.html
|
||||
Patch0: autoconf-2.66-611661.diff
|
||||
%endif
|
||||
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
%define srcvers @AUTOCONF_VERS@
|
||||
%define rpmvers %{expand:%(echo "@AUTOCONF_VERS@" | tr - _ )}
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%define name @rpmprefix@autoconf
|
||||
%else
|
||||
%define name autoconf
|
||||
%endif
|
||||
|
||||
# --with alltests enable all tests
|
||||
%bcond_with alltests
|
||||
|
||||
Name: %{name}
|
||||
License: GPL
|
||||
URL: http://www.gnu.org/software/autoconf
|
||||
Group: Development/Tools
|
||||
Version: %{rpmvers}
|
||||
Release: @AUTOCONF_RPMREL@
|
||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl m4 gawk emacs
|
||||
%if "%{version}" >= "2.62"
|
||||
BuildRequires: m4 >= 1.4.5
|
||||
%endif
|
||||
Requires: m4 gawk
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
@SOURCES@
|
||||
|
||||
%description
|
||||
GNU's Autoconf is a tool for configuring source code and Makefiles.
|
||||
Using Autoconf, programmers can create portable and configurable
|
||||
packages, since the person building the package is allowed to
|
||||
specify various configuration options.
|
||||
You should install Autoconf if you are developing software and you'd
|
||||
like to use it to create shell scripts which will configure your
|
||||
source code packages.
|
||||
Note that the Autoconf package is not required for the end user who
|
||||
may be configuring software with an Autoconf-generated script;
|
||||
Autoconf is only required for the generation of the scripts, not
|
||||
their use.
|
||||
|
||||
%prep
|
||||
%setup -q -n autoconf-%{srcvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
|
||||
# Work around rpm inserting bogus perl-module deps
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/^perl(Autom4te/d'
|
||||
EOF
|
||||
%define __perl_provides %{_builddir}/autoconf-%{srcvers}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
cat << \EOF > %{name}-requ
|
||||
#!/bin/sh
|
||||
%{__perl_requires} $* |\
|
||||
sed -e '/^perl(Autom4te/d'
|
||||
EOF
|
||||
%define __perl_requires %{_builddir}/autoconf-%{srcvers}/%{name}-requ
|
||||
chmod +x %{__perl_requires}
|
||||
|
||||
%build
|
||||
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
||||
--bindir=%{_bindir} --datadir=%{_datadir}
|
||||
make
|
||||
|
||||
%check
|
||||
%if "%{_build}" == "%{_host}"
|
||||
%if "%{srcvers}" <= "2.66"
|
||||
# test 193 fails sporadically
|
||||
# test 199 fails deterministically
|
||||
TESTSUITEFLAGS='-192 194-198 200-'
|
||||
%endif
|
||||
|
||||
%if "%{srcvers}" == "2.67"
|
||||
# test 199 fails deterministically
|
||||
TESTSUITEFLAGS='-198 200-'
|
||||
%endif
|
||||
|
||||
%if "%{srcvers}" == "2.68"
|
||||
# test 205 fails deterministically
|
||||
TESTSUITEFLAGS='-204 206-'
|
||||
%endif
|
||||
|
||||
make check %{!?with_alltests:TESTSUITEFLAGS="${TESTSUITEFLAGS}"}
|
||||
%endif
|
||||
|
||||
%install
|
||||
rm -rf "${RPM_BUILD_ROOT}"
|
||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
||||
|
||||
# Create this directory to prevent the corresponding line
|
||||
# in %%files below to fail
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
|
||||
|
||||
# RTEMS's standards.info comes from binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
AUTOCONF_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/autotools/autoconf.add
|
||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
AUTOCONF_SUBPACKAGES += $(top_srcdir)/autotools/target-autoconf.add
|
||||
|
||||
autoconf.spec.in: $(AUTOCONF_SUBPACKAGES) Makefile.in $(srcdir)/autoconf-sources.add
|
||||
cat $(AUTOCONF_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/autoconf-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "s/[@]AUTOCONF_VERS[@]/$(AUTOCONF_VERS)/" \
|
||||
-e "s/[@]AUTOCONF_RPMREL[@]/$(AUTOCONF_RPMREL)%{?dist}/" > $@
|
||||
CLEANFILES += autoconf.spec.in
|
||||
|
||||
|
||||
@rpmprefix@autoconf.spec: autoconf.spec.in
|
||||
$(MKSPEC) autoconf.spec.in | $(SPECSTRIP) > $@
|
||||
CLEANFILES += @rpmprefix@autoconf.spec
|
||||
noinst_DATA += @rpmprefix@autoconf.spec
|
||||
|
||||
EXTRA_DIST += $(AUTOCONF_SUBPACKAGES)
|
||||
@@ -1,2 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
%define rpmvers @AUTOMAKE_VERS@
|
||||
%define srcvers @AUTOMAKE_VERS@
|
||||
%define amvers 1.11
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%define name @rpmprefix@automake
|
||||
%define requirements @rpmprefix@autoconf >= 2.61
|
||||
%else
|
||||
%define name automake
|
||||
%define requirements autoconf >= 2.61
|
||||
%endif
|
||||
|
||||
Name: %{name}
|
||||
URL: http://sources.redhat.com/automake
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
Version: %{rpmvers}
|
||||
Release: @AUTOMAKE_RPMREL@
|
||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: %{requirements} perl
|
||||
Requires: %{requirements}
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun):/sbin/install-info
|
||||
|
||||
@SOURCES@
|
||||
|
||||
%description
|
||||
Automake is a tool for automatically generating "Makefile.in"s from
|
||||
files called "Makefile.am". "Makefile.am" is basically a series of
|
||||
"make" macro definitions (with rules being thrown in occasionally).
|
||||
The generated "Makefile.in"s are compatible to the GNU Makefile
|
||||
standards.
|
||||
|
||||
%prep
|
||||
%setup -q -n automake-%{srcvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
|
||||
# Work around rpm inserting bogus perl-module deps
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/^perl(Automake/d'
|
||||
EOF
|
||||
%define __perl_provides %{_builddir}/automake-%{srcvers}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
cat << \EOF > %{name}-requ
|
||||
#!/bin/sh
|
||||
%{__perl_requires} $* |\
|
||||
sed -e '/^perl(Automake/d'
|
||||
EOF
|
||||
%define __perl_requires %{_builddir}/automake-%{srcvers}/%{name}-requ
|
||||
chmod +x %{__perl_requires}
|
||||
|
||||
|
||||
%build
|
||||
PATH=%{_bindir}:$PATH
|
||||
case %_host in
|
||||
*-mingw32)
|
||||
# MinGW ships obsolete perl-5.6.1, which doesn't support threads
|
||||
echo am_cv_prog_PERL_ithreads=no > config.cache
|
||||
;;
|
||||
esac
|
||||
|
||||
# Don't use %%configure, it replaces config.sub/config.guess with the
|
||||
# outdated versions bundled with rpm.
|
||||
./configure -C --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
||||
--bindir=%{_bindir} --datadir=%{_datadir} \
|
||||
--docdir=%{_datadir}/automake-%{amvers}/doc
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf "$RPM_BUILD_ROOT"
|
||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/aclocal
|
||||
echo "/usr/share/aclocal" > $RPM_BUILD_ROOT%{_datadir}/aclocal/dirlist
|
||||
%endif
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
AUTOMAKE_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/autotools/automake.add
|
||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
AUTOMAKE_SUBPACKAGES += $(top_srcdir)/autotools/target-automake.add
|
||||
|
||||
automake.spec.in: $(AUTOMAKE_SUBPACKAGES) Makefile.am $(srcdir)/automake-sources.add
|
||||
cat $(AUTOMAKE_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/automake-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "s/[@]AUTOMAKE_VERS[@]/$(AUTOMAKE_VERS)/g" \
|
||||
-e "s/[@]AUTOMAKE_RPMREL[@]/$(AUTOMAKE_RPMREL)%{?dist}/g" > $@
|
||||
CLEANFILES += automake.spec.in
|
||||
|
||||
|
||||
@rpmprefix@automake.spec: automake.spec.in
|
||||
$(MKSPEC) automake.spec.in | $(SPECSTRIP) > $@
|
||||
CLEANFILES += @rpmprefix@automake.spec
|
||||
noinst_DATA += @rpmprefix@automake.spec
|
||||
|
||||
EXTRA_DIST += $(AUTOMAKE_SUBPACKAGES)
|
||||
@@ -1,211 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 srcvers 2.68
|
||||
%define rpmvers %{expand:%(echo "2.68" | tr - _ )}
|
||||
|
||||
%define name rtems-4.10-autoconf
|
||||
|
||||
# --with alltests enable all tests
|
||||
%bcond_with alltests
|
||||
|
||||
Name: %{name}
|
||||
License: GPL
|
||||
URL: http://www.gnu.org/software/autoconf
|
||||
Group: Development/Tools
|
||||
Version: %{rpmvers}
|
||||
Release: 2%{?dist}
|
||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl m4 gawk emacs
|
||||
%if "%{version}" >= "2.62"
|
||||
BuildRequires: m4 >= 1.4.5
|
||||
%endif
|
||||
Requires: m4 gawk
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
Source0: ftp://ftp.gnu.org/gnu/autoconf/autoconf-%{srcvers}.tar.bz2
|
||||
%if "%{srcvers}" == "2.66"
|
||||
# Fedora's patch to fix
|
||||
# http://lists.gnu.org/archive/html/autoconf/2010-07/msg00004.html
|
||||
# http://lists.gnu.org/archive/html/bug-autoconf/2010-07/msg00012.html
|
||||
Patch0: autoconf-2.66-611661.diff
|
||||
%endif
|
||||
|
||||
|
||||
|
||||
%description
|
||||
GNU's Autoconf is a tool for configuring source code and Makefiles.
|
||||
Using Autoconf, programmers can create portable and configurable
|
||||
packages, since the person building the package is allowed to
|
||||
specify various configuration options.
|
||||
You should install Autoconf if you are developing software and you'd
|
||||
like to use it to create shell scripts which will configure your
|
||||
source code packages.
|
||||
Note that the Autoconf package is not required for the end user who
|
||||
may be configuring software with an Autoconf-generated script;
|
||||
Autoconf is only required for the generation of the scripts, not
|
||||
their use.
|
||||
|
||||
%prep
|
||||
%setup -q -n autoconf-%{srcvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
|
||||
# Work around rpm inserting bogus perl-module deps
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/^perl(Autom4te/d'
|
||||
EOF
|
||||
%define __perl_provides %{_builddir}/autoconf-%{srcvers}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
cat << \EOF > %{name}-requ
|
||||
#!/bin/sh
|
||||
%{__perl_requires} $* |\
|
||||
sed -e '/^perl(Autom4te/d'
|
||||
EOF
|
||||
%define __perl_requires %{_builddir}/autoconf-%{srcvers}/%{name}-requ
|
||||
chmod +x %{__perl_requires}
|
||||
|
||||
%build
|
||||
./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
||||
--bindir=%{_bindir} --datadir=%{_datadir}
|
||||
make
|
||||
|
||||
%check
|
||||
%if "%{_build}" == "%{_host}"
|
||||
%if "%{srcvers}" <= "2.66"
|
||||
# test 193 fails sporadically
|
||||
# test 199 fails deterministically
|
||||
TESTSUITEFLAGS='-192 194-198 200-'
|
||||
%endif
|
||||
|
||||
%if "%{srcvers}" == "2.67"
|
||||
# test 199 fails deterministically
|
||||
TESTSUITEFLAGS='-198 200-'
|
||||
%endif
|
||||
|
||||
%if "%{srcvers}" == "2.68"
|
||||
# test 205 fails deterministically
|
||||
TESTSUITEFLAGS='-204 206-'
|
||||
%endif
|
||||
|
||||
make check %{!?with_alltests:TESTSUITEFLAGS="${TESTSUITEFLAGS}"}
|
||||
%endif
|
||||
|
||||
%install
|
||||
rm -rf "${RPM_BUILD_ROOT}"
|
||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
||||
|
||||
# Create this directory to prevent the corresponding line
|
||||
# in %%files below to fail
|
||||
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp
|
||||
|
||||
# RTEMS's standards.info comes from binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
# %doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/*
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
|
||||
%{_infodir}/autoconf.info*
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/*
|
||||
%dir %{_datadir}
|
||||
%{_datadir}/autoconf
|
||||
%exclude %{_datadir}/emacs/site-lisp
|
||||
@@ -1,183 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 rpmvers 1.11.1
|
||||
%define srcvers 1.11.1
|
||||
%define amvers 1.11
|
||||
|
||||
%define name rtems-4.10-automake
|
||||
%define requirements rtems-4.10-autoconf >= 2.61
|
||||
|
||||
Name: %{name}
|
||||
URL: http://sources.redhat.com/automake
|
||||
License: GPL
|
||||
Group: Development/Tools
|
||||
Version: %{rpmvers}
|
||||
Release: 2%{?dist}
|
||||
Summary: Tool for automatically generating GNU style Makefile.in's
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: %{requirements} perl
|
||||
Requires: %{requirements}
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun):/sbin/install-info
|
||||
|
||||
Source0: ftp://ftp.gnu.org/gnu/automake/automake-%{srcvers}.tar.bz2
|
||||
|
||||
|
||||
%description
|
||||
Automake is a tool for automatically generating "Makefile.in"s from
|
||||
files called "Makefile.am". "Makefile.am" is basically a series of
|
||||
"make" macro definitions (with rules being thrown in occasionally).
|
||||
The generated "Makefile.in"s are compatible to the GNU Makefile
|
||||
standards.
|
||||
|
||||
%prep
|
||||
%setup -q -n automake-%{srcvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
|
||||
# Work around rpm inserting bogus perl-module deps
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/^perl(Automake/d'
|
||||
EOF
|
||||
%define __perl_provides %{_builddir}/automake-%{srcvers}/%{name}-prov
|
||||
chmod +x %{__perl_provides}
|
||||
|
||||
cat << \EOF > %{name}-requ
|
||||
#!/bin/sh
|
||||
%{__perl_requires} $* |\
|
||||
sed -e '/^perl(Automake/d'
|
||||
EOF
|
||||
%define __perl_requires %{_builddir}/automake-%{srcvers}/%{name}-requ
|
||||
chmod +x %{__perl_requires}
|
||||
|
||||
|
||||
%build
|
||||
PATH=%{_bindir}:$PATH
|
||||
case %_host in
|
||||
*-mingw32)
|
||||
# MinGW ships obsolete perl-5.6.1, which doesn't support threads
|
||||
echo am_cv_prog_PERL_ithreads=no > config.cache
|
||||
;;
|
||||
esac
|
||||
|
||||
# Don't use %%configure, it replaces config.sub/config.guess with the
|
||||
# outdated versions bundled with rpm.
|
||||
./configure -C --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \
|
||||
--bindir=%{_bindir} --datadir=%{_datadir} \
|
||||
--docdir=%{_datadir}/automake-%{amvers}/doc
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf "$RPM_BUILD_ROOT"
|
||||
make DESTDIR=${RPM_BUILD_ROOT} install
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/aclocal
|
||||
echo "/usr/share/aclocal" > $RPM_BUILD_ROOT%{_datadir}/aclocal/dirlist
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/aclocal*
|
||||
%{_bindir}/automake*
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/automake.info*.gz
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/*
|
||||
%dir %{_datadir}
|
||||
%{_datadir}/aclocal
|
||||
%{_datadir}/aclocal-%{amvers}
|
||||
%{_datadir}/automake-%{amvers}
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
%post
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz ||:
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
# %doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/*
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
|
||||
%{_infodir}/autoconf.info*
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/*
|
||||
%sysdir %{_datadir}
|
||||
%{_datadir}/autoconf
|
||||
%exclude %{_datadir}/emacs/site-lisp
|
||||
@@ -1,27 +0,0 @@
|
||||
%post
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/automake.info.gz ||:
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/aclocal*
|
||||
%{_bindir}/automake*
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/automake.info*.gz
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/*
|
||||
%sysdir %{_datadir}
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%{_datadir}/aclocal
|
||||
%endif
|
||||
%{_datadir}/aclocal-%{amvers}
|
||||
%{_datadir}/automake-%{amvers}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
%if %build_infos
|
||||
# ==============================================================
|
||||
# @rpmprefix@binutils-common
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@binutils-common
|
||||
Summary: Base package for RTEMS binutils
|
||||
Group: Development/Tools
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n @rpmprefix@binutils-common
|
||||
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the base for binutils regardless of target CPU.
|
||||
|
||||
%post -n @rpmprefix@binutils-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
|
||||
%preun -n @rpmprefix@binutils-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n @rpmprefix@binutils-common
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/as.info*
|
||||
%{_infodir}/bfd.info*
|
||||
%{_infodir}/binutils.info*
|
||||
%{_infodir}/ld.info*
|
||||
%{_infodir}/standards.info*
|
||||
%{_infodir}/gprof.info*
|
||||
|
||||
%sysdir %{_prefix}/share
|
||||
%sysdir %{_prefix}/share/locale
|
||||
%endif
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
%define binutils_pkgvers @BINUTILS_PKGVERS@
|
||||
%define binutils_version @BINUTILS_VERS@
|
||||
%define binutils_rpmvers %{expand:%(echo "@BINUTILS_VERS@" | tr - _ )}
|
||||
|
||||
Name: @rpmprefix@@tool_target@-binutils
|
||||
Summary: Binutils for target @tool_target@
|
||||
Group: Development/Tools
|
||||
Version: %{binutils_rpmvers}
|
||||
Release: @BINUTILS_RPMREL@
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{binutils_version}" >= "2.18"
|
||||
# Bug in bfd: Doesn't build without texinfo installed
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
%if %build_infos
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
%if "@tool_target@" == "i686-pc-cygwin"
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
%if %build_infos
|
||||
|
||||
Requires: @rpmprefix@binutils-common
|
||||
%endif
|
||||
|
||||
@SOURCES@
|
||||
|
||||
%description
|
||||
Cross binutils for target @tool_target@
|
||||
@@ -1,29 +0,0 @@
|
||||
%build
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../binutils-%{binutils_pkgvers}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=@tool_target@ \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--with-sysroot=%{_prefix}/@tool_target@/sys-root \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--exec-prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
%if %build_infos
|
||||
make info
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
%install
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
%if %build_infos
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
||||
install-info
|
||||
%endif
|
||||
|
||||
%if %build_infos
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||
%else
|
||||
# Conflict with a native binutils' infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
%endif
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-dlltool%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-dlltool*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-nlmconv%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-nlmconv*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-windres%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-windres*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/@tool_target@-windmc%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/@tool_target@-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd binutils-%{binutils_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
# 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
|
||||
;;
|
||||
%if "%{_prefix}" != "/usr"
|
||||
# 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
|
||||
;;
|
||||
%endif
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
%if "%{_prefix}" != "/usr"
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
%endif
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
# ==============================================================
|
||||
# @tool_target@-binutils
|
||||
# ==============================================================
|
||||
# %package -n @rpmprefix@@tool_target@-binutils
|
||||
# Summary: rtems binutils for @tool_target@
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: @rpmprefix@binutils-common
|
||||
# %endif
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-binutils
|
||||
GNU binutils targetting @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-binutils
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_datarootdir}
|
||||
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/@tool_target@-*.1*
|
||||
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/@tool_target@-*
|
||||
|
||||
%dir %{_exec_prefix}/@tool_target@
|
||||
%dir %{_exec_prefix}/@tool_target@/bin
|
||||
%{_exec_prefix}/@tool_target@/bin/*
|
||||
|
||||
%dir %{_exec_prefix}/@tool_target@/lib
|
||||
%{_exec_prefix}/@tool_target@/lib/ldscripts
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
autoreconf -fis
|
||||
@@ -1,3 +0,0 @@
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%if "%{_prefix}" != "/usr"
|
||||
%define _prefix @_prefix@
|
||||
%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
|
||||
%endif
|
||||
|
||||
%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
|
||||
|
||||
@@ -1,170 +0,0 @@
|
||||
## $Id$
|
||||
|
||||
m4_define([RTEMS_API],[4.10])
|
||||
|
||||
AC_PREREQ([2.68])
|
||||
AC_INIT([crossrpms],[0.20100607.0],[http://www.rtems.org/bugzilla])
|
||||
AC_CONFIG_SRCDIR([binutils/binutils.add])
|
||||
AC_CONFIG_AUX_DIR(.)
|
||||
|
||||
AC_CANONICAL_HOST
|
||||
|
||||
AC_PREFIX_DEFAULT([/opt/rtems-][RTEMS_API])
|
||||
|
||||
AM_INIT_AUTOMAKE([1.11.1])
|
||||
|
||||
AC_ARG_ENABLE([targets],
|
||||
AS_HELP_STRING([--enable-targets=<targets>],[build for targets <targets>]),
|
||||
[targets="$enable_targets"],
|
||||
[targets=rtems]
|
||||
)
|
||||
|
||||
case $targets in
|
||||
rtems )
|
||||
savdir=`pwd`
|
||||
cd $srcdir
|
||||
targets=
|
||||
for d in rtems*/*/Makefile.am; do
|
||||
o=`echo $d | sed -e 's,/.*,,'`
|
||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
||||
targets="$targets $a-$o"
|
||||
done
|
||||
cd $savdir
|
||||
;;
|
||||
all )
|
||||
savdir=`pwd`
|
||||
cd $srcdir
|
||||
targets=
|
||||
for d in rtems*/*/Makefile.am; do
|
||||
o=`echo $d | sed -e 's,/.*,,'`
|
||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
||||
targets="$targets $a-$o"
|
||||
done
|
||||
for d in freebsd*/*/Makefile.am \
|
||||
netbsd*/*/Makefile.am \
|
||||
cygwin*/*/Makefile.am \
|
||||
mingw*/*/Makefile.am; \
|
||||
do
|
||||
o=`echo $d | sed -e 's,/.*,,'`
|
||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
||||
targets="$targets $a-pc-$o"
|
||||
done
|
||||
for d in solaris*/*/Makefile.am; \
|
||||
do
|
||||
o=`echo $d | sed -e 's,/.*,,'`
|
||||
a=`echo $d | sed -e 's,/Makefile\.am,,;s,.*/,,'`
|
||||
targets="$targets $a-sun-$o"
|
||||
done
|
||||
cd $savdir
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$prefix" in
|
||||
/usr)
|
||||
sysdirpattern="/%sysdir/d"
|
||||
rpmprefix=
|
||||
host_subdirs=
|
||||
;;
|
||||
/usr/local)
|
||||
sysdirpattern="/%sysdir/d"
|
||||
rpmprefix="local-"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
/opt/rtems)
|
||||
sysdirpattern="s/^%sysdir/%dir/g"
|
||||
rpmprefix="rtems-"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
NONE|${ac_default_prefix}) # Default prefix
|
||||
sysdirpattern="s/^%sysdir/%dir/g"
|
||||
rpmprefix="[rtems-]RTEMS_API[-]"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
*)
|
||||
sysdirpattern="s/^%sysdir/%dir/g"
|
||||
rpmprefix="custom-"
|
||||
host_subdirs=autotools
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(sysdirpattern)
|
||||
AC_SUBST(HOST_SUBDIRS,$host_subdirs)
|
||||
|
||||
AC_ARG_ENABLE([rpmprefix],
|
||||
[ --enable-rpmprefix=<rpmprefix> prefix rpms],[
|
||||
case "$enable_rpmprefix" in
|
||||
yes) # ignore, use default
|
||||
;;
|
||||
no) rpmprefix=
|
||||
;;
|
||||
*) # presume user knows what he is doing
|
||||
rpmprefix=$enable_rpmprefix;;
|
||||
esac
|
||||
])
|
||||
AC_SUBST(rpmprefix)
|
||||
|
||||
SPECSTRIP_OPTS=
|
||||
|
||||
AC_ARG_ENABLE([infos],
|
||||
[ --enable-infos enable building infos],[
|
||||
case "$enable_infos" in
|
||||
yes)
|
||||
SPECSTRIP_OPTS="$SPECSTRIP_OPTS --enable-infos";;
|
||||
no)
|
||||
SPECSTRIP_OPTS="$SPECSTRIP_OPTS --disable-infos";;
|
||||
*)
|
||||
AC_MSG_ERROR([Invalid argument to --enable-infos])
|
||||
esac
|
||||
])
|
||||
AC_SUBST(SPECSTRIP_OPTS)
|
||||
|
||||
AS_IF([test "${host}" != "${build}"],[
|
||||
AC_MSG_CHECKING(for RPM OS)
|
||||
case "$host" in
|
||||
i?86-*cygwin*) RPM_OS=cygwin ;;
|
||||
i?86-*mingw*) RPM_OS=mingw32 ;;
|
||||
sparc-*solaris*) RPM_OS=solaris2.7 ;;
|
||||
i?86-*freebsd5*) RPM_OS=freebsd5.2 ;;
|
||||
i?86-*freebsd6.0) RPM_OS=freebsd6.0 ;;
|
||||
i?86-*freebsd6.1) RPM_OS=freebsd6.1 ;;
|
||||
*)
|
||||
AC_MSG_ERROR([Unsupported host ${host}])
|
||||
;;
|
||||
esac
|
||||
AC_MSG_RESULT($RPM_OS)
|
||||
])
|
||||
AC_SUBST(RPM_OS)
|
||||
|
||||
for f in $targets; do
|
||||
ac_cv_mytarget=`$SHELL "$ac_aux_dir/config.sub" $f` ||
|
||||
AC_MSG_ERROR([$SHELL $ac_aux_dir/config.sub $f failed])
|
||||
RTEMS_CANONICAL_SPLIT(mytarget)
|
||||
|
||||
AS_IF([test -d $srcdir/$mytarget_os/$mytarget_cpu],[
|
||||
target_subdirs="$target_subdirs $mytarget_os/$mytarget_cpu"],[
|
||||
AC_MSG_WARN([ignoring unsupported target $f])
|
||||
])
|
||||
done
|
||||
AC_SUBST(TARGET_SUBDIRS,$target_subdirs)
|
||||
AC_SUBST(rtems_api,RTEMS_API)
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
|
||||
AC_CONFIG_FILES([rtems4.10/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/arm/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/avr/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/bfin/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/h8300/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/i386/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/lm32/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/m32c/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/m32r/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/m68k/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/mips/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/mipstx39/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/powerpc/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/sh/Makefile])
|
||||
AC_CONFIG_FILES([rtems4.10/sparc/Makefile])
|
||||
|
||||
AC_CONFIG_FILES([autotools/Makefile])
|
||||
|
||||
AC_OUTPUT
|
||||
@@ -1,16 +0,0 @@
|
||||
%build
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
../rtems-%{cpukit_version}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--target=@tool_target@ \
|
||||
--enable-multilib \
|
||||
--disable-rtemsbsp
|
||||
|
||||
make all RTEMS_BSP=
|
||||
cd ..
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
|
||||
%define cpukit_pkgvers @CPUKIT_PKGVERS@
|
||||
%define cpukit_version @CPUKIT_VERS@
|
||||
%define cpukit_rpmvers %{expand:%(echo "@CPUKIT_PKGVERS@" | tr - . )}
|
||||
|
||||
Name: @rpmprefix@@tool_target@-cpukit
|
||||
Summary: @tool_target@ cpukit
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{cpukit_rpmvers}
|
||||
Release: @CPUKIT_RPMREL@
|
||||
License: GPL
|
||||
URL: http://cpukit.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
|
||||
%define debug_package %{nil}
|
||||
|
||||
BuildRequires: @rpmprefix@@tool_target@-gcc
|
||||
|
||||
@SOURCES@
|
||||
|
||||
%description
|
||||
RTEMS cpukit for @tool_target@.
|
||||
@@ -1,11 +0,0 @@
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/share/man
|
||||
rm -rf $RPM_BUILD_ROOT%{_prefix}/bin
|
||||
@@ -1,6 +0,0 @@
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
|
||||
@PREP@
|
||||
@@ -1,49 +0,0 @@
|
||||
# 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
|
||||
;;
|
||||
%if "%{_prefix}" != "/usr"
|
||||
# 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
|
||||
;;
|
||||
%endif
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
%if "%{_prefix}" != "/usr"
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
%endif
|
||||
< 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}/@tool_target@/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/@tool_target@/' | %__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}/@tool_target@/(lib|include|sys-root)' \
|
||||
| grep -v '^${RPM_BUILD_ROOT}%{cpukitlib}/@tool_target@/' | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{version}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
%description -n @rpmprefix@@tool_target@-cpukit
|
||||
RTEMS cpukit for target @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-cpukit
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%{_prefix}/@tool_target@
|
||||
# Violates the FHS
|
||||
%exclude %{_prefix}/make
|
||||
@@ -1,53 +0,0 @@
|
||||
%if %build_infos
|
||||
# ==============================================================
|
||||
# @rpmprefix@gcc-common
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@gcc-common
|
||||
Summary: Base package for rtems gcc and newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n @rpmprefix@gcc-common
|
||||
GCC files that are shared by all targets.
|
||||
|
||||
%files -n @rpmprefix@gcc-common
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_prefix}/share
|
||||
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/cpp.info*
|
||||
%{_infodir}/cppinternals.info*
|
||||
%{_infodir}/gcc.info*
|
||||
%{_infodir}/gccint.info*
|
||||
%{_infodir}/gccinstall.info*
|
||||
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man7
|
||||
%{_mandir}/man7/fsf-funding.7*
|
||||
%{_mandir}/man7/gfdl.7*
|
||||
%{_mandir}/man7/gpl.7*
|
||||
|
||||
%post -n @rpmprefix@gcc-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
|
||||
%preun -n @rpmprefix@gcc-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
fi
|
||||
|
||||
%endif
|
||||
@@ -1,55 +0,0 @@
|
||||
%if %build_infos
|
||||
%if %build_gcj
|
||||
# ==============================================================
|
||||
# @rpmprefix@gcc-gcj-common
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@gcc-gcj-common
|
||||
Summary: Base package for rtems gcc/java compiler (gcj)
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n @rpmprefix@gcc-gcj-common
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the files for gcc/java (gcj) that are shared by all targets.
|
||||
|
||||
%files -n @rpmprefix@gcc-gcj-common
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_prefix}/share
|
||||
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gcj.info*
|
||||
%{_infodir}/fastjar.info*
|
||||
|
||||
%if "%{gcc_version}" < "4.0"
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/gcjh.1*
|
||||
%{_mandir}/man1/jv-scan.1*
|
||||
%{_mandir}/man1/jcf-dump.1*
|
||||
%{_mandir}/man1/gij.1*
|
||||
%{_mandir}/man1/jv-convert.1*
|
||||
%{_mandir}/man1/rmic.1*
|
||||
%{_mandir}/man1/rmiregistry.1*
|
||||
%{_mandir}/man1/jar.1*
|
||||
%{_mandir}/man1/grepjar.1*
|
||||
%endif
|
||||
|
||||
%post -n @rpmprefix@gcc-gcj-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcj.info* || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/fastjar.info* || :
|
||||
|
||||
%preun -n @rpmprefix@gcc-gcj-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcj.info* || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/fastjar.info* || :
|
||||
fi
|
||||
|
||||
%endif
|
||||
%endif
|
||||
@@ -1,38 +0,0 @@
|
||||
%if %build_infos
|
||||
%if %build_fortran
|
||||
# ==============================================================
|
||||
# @rpmprefix@gcc-gfortran-common
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@gcc-gfortran-common
|
||||
Summary: Base package for RTEMS gcc/gfortran compiler
|
||||
Group: Development/Tools
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n @rpmprefix@gcc-gfortran-common
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the files for gcc/gfortran that are shared by all targets.
|
||||
|
||||
%files -n @rpmprefix@gcc-gfortran-common
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_prefix}/share
|
||||
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gfortran.info*.gz
|
||||
|
||||
%post -n @rpmprefix@gcc-gfortran-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :
|
||||
|
||||
%preun -n @rpmprefix@gcc-gfortran-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gfortran.info.gz || :
|
||||
fi
|
||||
|
||||
%endif
|
||||
%endif
|
||||
@@ -1,40 +0,0 @@
|
||||
%if %build_infos
|
||||
%if %build_gnat
|
||||
# ==============================================================
|
||||
# @rpmprefix@gcc-gnat-common
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@gcc-gnat-common
|
||||
Summary: Base package for RTEMS gcc/gnat compiler
|
||||
Group: Development/Tools
|
||||
License: GPL
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n @rpmprefix@gcc-gnat-common
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the gcc/gnat tools for the gcc/gnat compiler
|
||||
|
||||
%files -n @rpmprefix@gcc-gnat-common
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/vxaddr2line%{_exeext}
|
||||
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gnat*
|
||||
|
||||
%post -n @rpmprefix@gcc-gnat-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gnat_rm.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gnat-style.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gnat_ugn_unw.info.gz || :
|
||||
|
||||
%preun -n @rpmprefix@gcc-gnat-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gnat_rm.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gnat-style.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gnat_ugn_unw.info.gz || :
|
||||
fi
|
||||
%endif
|
||||
%endif
|
||||
@@ -1,41 +0,0 @@
|
||||
%if %build_infos
|
||||
%if %build_newlib
|
||||
# ==============================================================
|
||||
# @rpmprefix@newlib-common
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@newlib-common
|
||||
Summary: Base package for RTEMS newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{newlib_version}
|
||||
Release: @NEWLIB_RPMREL@
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: Distributable
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n @rpmprefix@newlib-common
|
||||
newlib files that are shared by all targets.
|
||||
|
||||
%files -n @rpmprefix@newlib-common
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_prefix}/share
|
||||
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/libc.info*
|
||||
%{_infodir}/libm.info*
|
||||
|
||||
%post -n @rpmprefix@newlib-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
|
||||
%preun -n @rpmprefix@newlib-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
fi
|
||||
|
||||
%endif
|
||||
%endif
|
||||
@@ -1,75 +0,0 @@
|
||||
%build
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
languages="c"
|
||||
%if %build_cxx
|
||||
languages="$languages,c++"
|
||||
%endif
|
||||
%if %build_fortran
|
||||
languages="$languages,fortran"
|
||||
%endif
|
||||
%if %build_gcj
|
||||
languages="$languages,java"
|
||||
%endif
|
||||
%if %build_objc
|
||||
languages="$languages,objc"
|
||||
%endif
|
||||
%if %build_gnat
|
||||
languages="$languages,ada"
|
||||
%endif
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
||||
%else
|
||||
# gcc is not ready to be compiled with -std=gnu99
|
||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||
%endif
|
||||
../gcc-%{gcc_pkgvers}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--exec_prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_gcclibdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--datadir=%{_datadir} \
|
||||
--build=%_build --host=%_host \
|
||||
--target=@tool_target@ \
|
||||
--disable-libstdcxx-pch \
|
||||
--with-gnu-as --with-gnu-ld --verbose \
|
||||
--with-newlib \
|
||||
--with-system-zlib \
|
||||
--disable-nls --without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--enable-threads \
|
||||
--with-sysroot=%{_exec_prefix}/@tool_target@/sys-root \
|
||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
||||
%if %build_newlib
|
||||
--enable-newlib-io-c99-formats \
|
||||
%endif
|
||||
%if %build_libgcj
|
||||
--enable-libgcj \
|
||||
%endif
|
||||
--enable-languages="$languages"
|
||||
|
||||
%if "%_host" != "%_build"
|
||||
# Bug in gcc-3.2.1:
|
||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
||||
mkdir -p gcc/include
|
||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
%if %build_infos
|
||||
make info
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
@@ -1,253 +0,0 @@
|
||||
|
||||
%define gcc_pkgvers @GCC_PKGVERS@
|
||||
%define gcc_version @GCC_VERS@
|
||||
%define gcc_rpmvers %{expand:%(echo "@GCC_VERS@" | tr - _ )}
|
||||
|
||||
%if %build_newlib
|
||||
%define newlib_pkgvers @NEWLIB_PKGVERS@
|
||||
%define newlib_version @NEWLIB_VERS@
|
||||
%endif
|
||||
|
||||
Name: @rpmprefix@@tool_target@-gcc
|
||||
Summary: @tool_target@ gcc
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
Release: @GCC_RPMREL@
|
||||
License: GPL
|
||||
URL: http://gcc.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
||||
%bcond_with lto
|
||||
|
||||
# FIXME: Disable python gdb scripts
|
||||
# ATM, no idea how to package them
|
||||
%bcond_with pygdb
|
||||
|
||||
# FIXME: Disable GCC-plugin
|
||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
||||
%bcond_with plugin
|
||||
|
||||
# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
|
||||
# Should be applicable to gcc >= 4.5.0
|
||||
%bcond_with gcc_stdint
|
||||
|
||||
# versions of libraries, we conditionally bundle if necessary
|
||||
%global mpc_version 0.8.1
|
||||
%global mpfr_version 2.4.2
|
||||
%global gmp_version 4.3.2
|
||||
%global libelf_version 0.8.13
|
||||
|
||||
# versions of libraries these distros are known to ship
|
||||
%if 0%{?fc16}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc15}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc14}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el6}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el5}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided %{nil}
|
||||
%global gmp_provided 4.1.4
|
||||
%endif
|
||||
|
||||
%if 0%{?suse12_1}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.1
|
||||
%global gmp_provided 5.0.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_3}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_4}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 5.0.1
|
||||
%endif
|
||||
|
||||
%if 0%{?cygwin}
|
||||
%global mpc_provided 0.8
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?mingw32}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
%if %build_fortran
|
||||
%define gmp_required 4.1
|
||||
%define mpfr_required 2.2.1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%define gmp_required 4.1
|
||||
%define mpfr_required 2.3.1
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.3"
|
||||
%define cloog_required 0.15
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.4.0"
|
||||
%define mpfr_required 2.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%define mpc_required 0.8
|
||||
%if %{with lto}
|
||||
%define libelf_required 0.8.12
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined mpc_required}
|
||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpc 1
|
||||
%define gmp_required 4.2
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined gmp_required}
|
||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
||||
BuildRequires: gmp-devel >= %{gmp_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_gmp 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined libelf_required}
|
||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
||||
BuildRequires: libelf-devel >= %{libelf_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_libelf 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined cloog_required}
|
||||
%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%{?suse11_3:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined mpfr_required}
|
||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpfr 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
# Not strictly required, but patches may introduce a need to use them.
|
||||
# For reasons of simplicity, always require them.
|
||||
BuildRequires: flex bison
|
||||
|
||||
BuildRequires: texinfo >= 4.2
|
||||
BuildRequires: @rpmprefix@@tool_target@-binutils
|
||||
BuildRequires: @rpmprefix@@tool_target@-sys-root
|
||||
BuildRequires: @rpmprefix@@tool_target@-w32api-sys-root
|
||||
|
||||
%if %build_infos
|
||||
Requires: @rpmprefix@gcc-common
|
||||
%endif
|
||||
Requires: @rpmprefix@@tool_target@-binutils
|
||||
Requires: @rpmprefix@@tool_target@-sys-root
|
||||
Requires: @rpmprefix@@tool_target@-w32api-sys-root
|
||||
Requires: @rpmprefix@@tool_target@-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
||||
%if %build_newlib
|
||||
Requires: @rpmprefix@@tool_target@-newlib = %{newlib_version}-@NEWLIB_RPMREL@
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
BuildRequires: zlib-devel
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
||||
%endif
|
||||
%else
|
||||
%if %build_gcj
|
||||
BuildRequires: zlib-devel
|
||||
%endif
|
||||
%endif
|
||||
%if %build_gnat
|
||||
# Building gnat requires gnat
|
||||
BuildRequires: gcc-gnat
|
||||
BuildRequires: @rpmprefix@@tool_target@-newlib < %{newlib_version}-@NEWLIB_RPMREL@
|
||||
%endif
|
||||
|
||||
%global _gcclibdir %{_prefix}/lib
|
||||
|
||||
@SOURCES@
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross gcc for @tool_target@.
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
%install
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
%if %build_newlib
|
||||
cd build/@tool_target@/newlib
|
||||
make DESTDIR=$RPM_BUILD_ROOT install-info
|
||||
cd ../../..
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" <= "4.1.2"
|
||||
# Misplaced header file
|
||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include/
|
||||
fi
|
||||
%endif
|
||||
|
||||
# host library
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
# libiberty doesn't honor --libdir, but always installs to a
|
||||
# magically guessed _libdir
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||
%else
|
||||
# libiberty installs to --libdir=...
|
||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
||||
%endif
|
||||
|
||||
# We use the version from binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/@tool_target@-c++filt%{_exeext}
|
||||
|
||||
%if %build_gnat
|
||||
# Seemingly a VAX tool. Not meaningful, here.
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/vxaddr2line%{_exeext}
|
||||
%endif
|
||||
|
||||
%if %build_infos
|
||||
# We don't ship info/dir
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
%else
|
||||
# Conflict with a native GCC's infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
|
||||
# Conflict with a native GCC's man pages
|
||||
rm -rf $RPM_BUILD_ROOT%{_mandir}/man7
|
||||
%endif
|
||||
|
||||
# We don't want libffi's man-pages
|
||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
|
||||
|
||||
# Bug in gcc-3.4.0pre
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/@tool_target@-@tool_target@-gcjh%{_exeext}
|
||||
|
||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
||||
# the fixinclude-install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/install-tools
|
||||
|
||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/@tool_target@/include/bits; then
|
||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/@tool_target@/include/bits
|
||||
fi
|
||||
|
||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
||||
%if ! %{with pygdb}
|
||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
||||
fi
|
||||
%endif
|
||||
|
||||
# Collect multilib subdirectories
|
||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
||||
|
||||
%if %build_newlib
|
||||
echo "%defattr(-,root,root,-)" > build/files.newlib
|
||||
TGTDIR="%{_exec_prefix}/@tool_target@/lib"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) echo "%dir ${TGTDIR}" >> build/files.newlib
|
||||
;;
|
||||
*) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
|
||||
;;
|
||||
esac
|
||||
done
|
||||
%endif
|
||||
|
||||
rm -f dirs ;
|
||||
echo "%defattr(-,root,root,-)" >> dirs
|
||||
TGTDIR="%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) ;; # ignore, handled elsewhere
|
||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Collect files to go into different packages
|
||||
cp dirs build/files.gcc
|
||||
cp dirs build/files.gfortran
|
||||
cp dirs build/files.objc
|
||||
cp dirs build/files.gcj
|
||||
cp dirs build/files.g++
|
||||
|
||||
TGTDIR="%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
||||
*f771) ;;
|
||||
*f951) ;;
|
||||
*cc1) ;;
|
||||
*cc1obj) ;;
|
||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
||||
*collect2) ;;
|
||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
||||
*include/objc*) ;;
|
||||
*include/g++*);;
|
||||
*include/c++*);;
|
||||
*include-fixed/*);;
|
||||
*finclude/*);;
|
||||
*adainclude*);;
|
||||
*adalib*);;
|
||||
*gnat1);;
|
||||
*jc1) ;;
|
||||
*jvgenmain) ;;
|
||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*) echo "$i" >> build/files.gcc ;;
|
||||
esac
|
||||
done
|
||||
|
||||
TGTDIR="%{_exec_prefix}/@tool_target@/lib"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
||||
# all other files belong to newlib
|
||||
*) echo "$i" >> build/files.newlib ;;
|
||||
esac
|
||||
done
|
||||
@@ -1,88 +0,0 @@
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%if %build_cxx
|
||||
%setup -q -T -D -n %{name}-%{version} -a1
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
%{?PATCH1:%patch1 -p1}
|
||||
cd ..
|
||||
%endif
|
||||
|
||||
%if %build_fortran
|
||||
%setup -q -T -D -n %{name}-%{version} -a2
|
||||
%{?PATCH2:%patch2 -p0}
|
||||
%endif
|
||||
|
||||
%if %build_gcj
|
||||
%setup -q -T -D -n %{name}-%{version} -a3
|
||||
%{?PATCH3:%patch3 -p0}
|
||||
%endif
|
||||
|
||||
%if %build_gnat
|
||||
%setup -q -T -D -n %{name}-%{version} -a4
|
||||
%{?PATCH4:%patch4 -p0}
|
||||
%endif
|
||||
|
||||
%if %build_objc
|
||||
%setup -q -T -D -n %{name}-%{version} -a5
|
||||
%{?PATCH5:%patch5 -p0}
|
||||
%endif
|
||||
|
||||
%if %{with gcc_stdint}
|
||||
sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
|
||||
%endif
|
||||
|
||||
%if %build_newlib
|
||||
%setup -q -T -D -n %{name}-%{version} -a50
|
||||
cd newlib-%{newlib_version}
|
||||
%{?PATCH50:%patch50 -p1}
|
||||
cd ..
|
||||
# Copy the C library into gcc's source tree
|
||||
ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
|
||||
%if %{with gcc_stdint}
|
||||
rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
|
||||
%endif
|
||||
# Make sure not to be using GPL'ed sources
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
%setup -q -T -D -n %{name}-%{version} -a60
|
||||
%{?PATCH60:%patch60 -p1}
|
||||
# Build mpfr one-tree style
|
||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
%setup -q -T -D -n %{name}-%{version} -a61
|
||||
%{?PATCH61:%patch61 -p1}
|
||||
# Build mpc one-tree style
|
||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
%setup -q -T -D -n %{name}-%{version} -a62
|
||||
%{?PATCH62:%patch62 -p1}
|
||||
# Build gmp one-tree style
|
||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
%setup -q -T -D -n %{name}-%{version} -a63
|
||||
%{?PATCH63:%patch63 -p1}
|
||||
# Build libelf one-tree style
|
||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
||||
%endif
|
||||
|
||||
@PREP@
|
||||
|
||||
# Fix timestamps
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
contrib/gcc_update --touch
|
||||
cd ..
|
||||
@@ -1,73 +0,0 @@
|
||||
# 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
|
||||
;;
|
||||
%if "%{_prefix}" != "/usr"
|
||||
# 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
|
||||
;;
|
||||
%endif
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
%if "%{_prefix}" != "/usr"
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
%endif
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/@tool_target@/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/@tool_target@/'} | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/@tool_target@/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/@tool_target@/'} | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
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
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
%if %build_cxx
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcc-c++
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-c++
|
||||
Summary: GCC c++ compiler for @tool_target@
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
Requires: @rpmprefix@@tool_target@-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: @rpmprefix@@tool_target@-gcc-c++ = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
%if %build_infos
|
||||
Requires: @rpmprefix@gcc-common
|
||||
%endif
|
||||
Requires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-c++
|
||||
GCC c++ compiler for @tool_target@.
|
||||
|
||||
|
||||
%package -n @rpmprefix@@tool_target@-gcc-libstdc++
|
||||
Summary: libstdc++ for @tool_target@
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-libstdc++
|
||||
%{summary}
|
||||
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-c++
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/@tool_target@-g++.1*
|
||||
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/@tool_target@-c++%{_exeext}
|
||||
%{_bindir}/@tool_target@-g++%{_exeext}
|
||||
|
||||
%sysdir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/@tool_target@
|
||||
%dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/cc1plus%{_exeext}
|
||||
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-libstdc++ -f build/files.g++
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include
|
||||
%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include/c++
|
||||
%endif
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcc
|
||||
# ==============================================================
|
||||
# %package -n @rpmprefix@@tool_target@-gcc
|
||||
# Summary: GNU cc compiler for @tool_target@
|
||||
# Group: Development/Tools
|
||||
# Version: %{gcc_rpmvers}
|
||||
# Requires: @rpmprefix@@tool_target@-binutils
|
||||
# Requires: @rpmprefix@@tool_target@-newlib = %{newlib_version}-@NEWLIB_RPMREL@
|
||||
# License: GPL
|
||||
|
||||
# %if %build_infos
|
||||
# Requires: @rpmprefix@gcc-common
|
||||
# %endif
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc
|
||||
GNU cc compiler for @tool_target@.
|
||||
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcc-libgcc
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-libgcc
|
||||
Summary: libgcc for @tool_target@-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
Requires: @rpmprefix@@tool_target@-newlib = %{newlib_version}-@NEWLIB_RPMREL@
|
||||
License: GPL
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-libgcc
|
||||
libgcc @tool_target@-gcc.
|
||||
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/@tool_target@-gcc.1*
|
||||
%{_mandir}/man1/@tool_target@-cpp.1*
|
||||
%{_mandir}/man1/@tool_target@-gcov.1*
|
||||
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/@tool_target@-cpp%{_exeext}
|
||||
%{_bindir}/@tool_target@-gcc%{_exeext}
|
||||
%{_bindir}/@tool_target@-gcc-%{gcc_version}%{_exeext}
|
||||
%{_bindir}/@tool_target@-gcov%{_exeext}
|
||||
%if "%{gcc_version}" < "4.6.0"
|
||||
%{_bindir}/@tool_target@-gccbug
|
||||
%endif
|
||||
|
||||
%sysdir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/@tool_target@
|
||||
%dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/cc1%{_exeext}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/collect2%{_exeext}
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%{?with_lto:%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/lto%{_exeext}}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/lto-wrapper%{_exeext}
|
||||
%endif
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-libgcc -f build/files.gcc
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include
|
||||
|
||||
%if "%{gcc_version}" > "4.0.3"
|
||||
%if "@tool_target@" != "bfin-rtems@rtems_api@"
|
||||
%if "@tool_target@" != "avr-rtems@rtems_api@"
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include/ssp
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include-fixed
|
||||
%endif
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
%if %build_gcj
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcj
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-gcj
|
||||
Summary: Java support (gcj) for @tool_target@-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
|
||||
%if %build_infos
|
||||
Requires: @rpmprefix@gcc-gcj-common
|
||||
%endif
|
||||
Requires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-gcj
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the gcc/java compiler for @tool_target@
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-gcj -f build/files.gcj
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/@tool_target@-gcj%{_exeext}
|
||||
%{_bindir}/@tool_target@-jcf-dump%{_exeext}
|
||||
%{_bindir}/@tool_target@-jv-scan%{_exeext}
|
||||
%{_bindir}/@tool_target@-gcjh%{_exeext}
|
||||
%{_bindir}/@tool_target@-*jar%{_exeext}
|
||||
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/@tool_target@-*jar.1*
|
||||
%{_mandir}/man1/@tool_target@-gcj*.1*
|
||||
%{_mandir}/man1/@tool_target@-jv-*.1*
|
||||
%{_mandir}/man1/@tool_target@-jcf-dump.1*
|
||||
%{_mandir}/man1/@tool_target@-gij.1*
|
||||
|
||||
%if "%{gcc_version}" >= "4.0"
|
||||
%{_mandir}/man1/@tool_target@-grmi*.1*
|
||||
%else
|
||||
%{_mandir}/man1/@tool_target@-rmi*.1*
|
||||
%endif
|
||||
|
||||
%sysdir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/@tool_target@
|
||||
%dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/jc1%{_exeext}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/jvgenmain%{_exeext}
|
||||
|
||||
%sysdir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}
|
||||
|
||||
%endif
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
%if %build_fortran
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcc-gfortran
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-gfortran
|
||||
Summary: Fortran 95 support for @tool_target@-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
|
||||
%if %build_infos
|
||||
Requires: @rpmprefix@gcc-gfortran-common
|
||||
%endif
|
||||
Requires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}-%{release}
|
||||
Requires: @rpmprefix@@tool_target@-gcc-libgfortran = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-gfortran
|
||||
GCC fortran compiler for @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-gfortran
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/@tool_target@-gfortran%{_exeext}
|
||||
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/@tool_target@-gfortran.1*
|
||||
|
||||
%sysdir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/@tool_target@
|
||||
%dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/f951%{_exeext}
|
||||
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcc-libgfortran
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-libgfortran
|
||||
Summary: Fortran 95 support libraries for @tool_target@-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-libgfortran
|
||||
%{summary}
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-libgfortran -f build/files.gfortran
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/finclude
|
||||
%endif
|
||||
%endif
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
%if %build_gnat
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gnat
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-gnat
|
||||
Summary: Ada support for for @tool_target@-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
|
||||
%if %_build_infos
|
||||
Requires: @rpmprefix@gcc-gnat-common
|
||||
%endif
|
||||
Requires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-gnat
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the gcc/gnat compiler for @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-gnat
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/@tool_target@-gnat*
|
||||
%{_bindir}/@tool_target@-gprmake%{_exeext}
|
||||
|
||||
%sysdir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/@tool_target@
|
||||
%dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/gnat1%{_exeext}
|
||||
|
||||
%sysdir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/adalib
|
||||
%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/adainclude
|
||||
%endif
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
%if %build_newlib
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-newlib
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-newlib
|
||||
Summary: C Library (newlib) for @tool_target@
|
||||
Group: Development/Tools
|
||||
License: Distributable
|
||||
Version: %{newlib_version}
|
||||
Release: @NEWLIB_RPMREL@
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
%if %build_infos
|
||||
Requires: @rpmprefix@newlib-common
|
||||
%endif
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-newlib
|
||||
Newlib C Library for @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-newlib -f build/files.newlib
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_exec_prefix}
|
||||
%dir %{_exec_prefix}/@tool_target@
|
||||
%{_exec_prefix}/@tool_target@/include
|
||||
|
||||
%endif
|
||||
@@ -1,49 +0,0 @@
|
||||
%if %build_objc
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcc-objc
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-objc
|
||||
Summary: Objective C support for @tool_target@-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
|
||||
Requires: @rpmprefix@@tool_target@-gcc = %{gcc_rpmvers}-%{release}
|
||||
Requires: @rpmprefix@@tool_target@-gcc-libobjc = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-objc
|
||||
GCC objc compiler for @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-objc
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_exec_prefix}
|
||||
%sysdir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/@tool_target@
|
||||
%dir %{_libexecdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%{_libexecdir}/gcc/@tool_target@/%{gcc_version}/cc1obj%{_exeext}
|
||||
|
||||
# ==============================================================
|
||||
# @rpmprefix@@tool_target@-gcc-libobjc
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@@tool_target@-gcc-libobjc
|
||||
Summary: Objective C support for @tool_target@-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gcc-libobjc
|
||||
Support libraries for GCC's objc compiler for @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gcc-libobjc -f build/files.objc
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include
|
||||
%{_gcclibdir}/gcc/@tool_target@/%{gcc_version}/include/objc
|
||||
%endif
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
%if %build_infos
|
||||
# ==============================================================
|
||||
# @rpmprefix@gdb-common
|
||||
# ==============================================================
|
||||
%package -n @rpmprefix@gdb-common
|
||||
Summary: Base package for RTEMS gdbs
|
||||
Group: Development/Tools
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
%description -n @rpmprefix@gdb-common
|
||||
|
||||
GDB files shared by all targets.
|
||||
|
||||
%post -n @rpmprefix@gdb-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
|
||||
%preun -n @rpmprefix@gdb-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n @rpmprefix@gdb-common
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_prefix}/share
|
||||
|
||||
%sysdir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gdb.info*
|
||||
|
||||
%{_infodir}/gdbint.info*
|
||||
%{_infodir}/stabs.info*
|
||||
%{_infodir}/annotate.info*
|
||||
|
||||
%endif
|
||||
@@ -1,33 +0,0 @@
|
||||
%build
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../gdb-%{gdb_version}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=@tool_target@ \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?with_system_readline:--with-system-readline} \
|
||||
--with-expat \
|
||||
%{?with_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/@tool_target@-gdb \
|
||||
--with-sysroot=%{_prefix}/@tool_target@/sys-root \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
%if %build_infos
|
||||
make info
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
%define gdb_version @GDB_VERS@
|
||||
%define gdb_rpmvers %{expand:%(echo @GDB_VERS@ | tr - _)}
|
||||
|
||||
Name: @rpmprefix@@tool_target@-gdb
|
||||
Summary: Gdb for target @tool_target@
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: @GDB_RPMREL@
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%global build_sim --enable-sim
|
||||
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%if "@tool_target@" == "powerpc-rtems@rtems_api@"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# psim doesn't support Cdn-X
|
||||
%global build_sim --disable-sim
|
||||
%else
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
%endif
|
||||
%endif
|
||||
%if "@tool_target@" == "sparc-rtems@rtems_api@"
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the sparc simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
%endif
|
||||
%if "@tool_target@" == "h8300-rtems@rtems_api@"
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the h8300 simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
%endif
|
||||
%if "@tool_target@" == "m32c-rtems@rtems_api@"
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the m32c simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
%endif
|
||||
%if "@tool_target@" == "lm32-rtems@rtems_api@"
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the lm32 simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
%endif
|
||||
%if "@tool_target@" == "mipstx39-rtems@rtems_api@"
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the mipstx39 simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
%else
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
|
||||
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
|
||||
BuildRequires: %{_host_rpmprefix}ncurses-devel
|
||||
|
||||
%if %build_infos
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
Requires: @rpmprefix@gdb-common
|
||||
|
||||
%endif
|
||||
@SOURCES@
|
||||
|
||||
%description
|
||||
GDB for target @tool_target@
|
||||
@@ -1,48 +0,0 @@
|
||||
%install
|
||||
%if "%{_prefix}" != "/usr"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%endif
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
%if %build_infos
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# These come from other packages
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
|
||||
%else
|
||||
# Conflict with a native gdb's infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
%endif
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
|
||||
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/syscalls"
|
||||
fi
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd gdb-%{gdb_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
# Force using a system-provided libreadline
|
||||
%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
|
||||
@@ -1,32 +0,0 @@
|
||||
# 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
|
||||
;;
|
||||
%if "%{_prefix}" != "/usr"
|
||||
# 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
|
||||
;;
|
||||
%endif
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
|
||||
%if "%{_prefix}" != "/usr"
|
||||
-e 's,^[ ]*/usr/lib/rpm.*/brp-compress,./brp-compress,' \
|
||||
%endif
|
||||
< os_install_post~ > os_install_post
|
||||
%define __os_install_post . ./os_install_post
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# ==============================================================
|
||||
# @tool_target@-gdb
|
||||
# ==============================================================
|
||||
# %package -n @rpmprefix@@tool_target@-gdb
|
||||
# Summary: rtems gdb for @tool_target@
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: @rpmprefix@gdb-common
|
||||
# %endif
|
||||
|
||||
%description -n @rpmprefix@@tool_target@-gdb
|
||||
GNU gdb targetting @tool_target@.
|
||||
|
||||
%files -n @rpmprefix@@tool_target@-gdb
|
||||
%defattr(-,root,root)
|
||||
%sysdir %{_prefix}
|
||||
%sysdir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/@tool_target@-gdb}
|
||||
|
||||
%sysdir %{_mandir}
|
||||
%sysdir %{_mandir}/man1
|
||||
%{_mandir}/man1/@tool_target@-*.1*
|
||||
|
||||
%sysdir %{_bindir}
|
||||
%{_bindir}/@tool_target@-*
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
noinst_DATA =
|
||||
CLEANFILES =
|
||||
EXTRA_DIST =
|
||||
|
||||
SPECSTRIP = $(top_srcdir)/specstrip --prefix=$(prefix) $(SPECSTRIP_OPTS)
|
||||
|
||||
MKSPEC = sed \
|
||||
-e "s,[@]rpmprefix[@],$(rpmprefix),g" \
|
||||
-e "s,[@]_prefix[@],$(prefix),g" \
|
||||
-e "s/[@]tool_target[@]/$(TARGET)/g" \
|
||||
-e "/^%package -n [@]rpmprefix[@][@]tool_target[@]-gcc/d" \
|
||||
-e "@sysdirpattern@" \
|
||||
-e "/[@]PATCH/d"
|
||||
|
||||
MKSPEC0 = sed \
|
||||
-e "s/[@]tool_target[@]/$(TARGET)/g" \
|
||||
-e "s/[@]rtems_api[@]/$(rtems_api)/g"
|
||||
@@ -1,24 +0,0 @@
|
||||
diff -Naur binutils-2.20.1.orig/bfd/Makefile.am binutils-2.20.1/bfd/Makefile.am
|
||||
--- binutils-2.20.1.orig/bfd/Makefile.am 2010-03-03 14:31:55.000000000 +0100
|
||||
+++ binutils-2.20.1/bfd/Makefile.am 2010-03-10 07:14:32.000000000 +0100
|
||||
@@ -4,7 +4,7 @@
|
||||
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
|
||||
|
||||
# Uncomment the following line when doing a release.
|
||||
-# RELEASE=y
|
||||
+RELEASE=y
|
||||
|
||||
INCDIR = $(srcdir)/../include
|
||||
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
||||
diff -Naur binutils-2.20.1.orig/bfd/Makefile.in binutils-2.20.1/bfd/Makefile.in
|
||||
--- binutils-2.20.1.orig/bfd/Makefile.in 2010-03-03 14:59:15.000000000 +0100
|
||||
+++ binutils-2.20.1/bfd/Makefile.in 2010-03-10 07:26:28.000000000 +0100
|
||||
@@ -317,7 +317,7 @@
|
||||
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
|
||||
|
||||
# Uncomment the following line when doing a release.
|
||||
-# RELEASE=y
|
||||
+RELEASE = y
|
||||
INCDIR = $(srcdir)/../include
|
||||
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
||||
SUBDIRS = doc po
|
||||
@@ -1,47 +0,0 @@
|
||||
diff -Naur binutils-2.20.1.orig/bfd/ChangeLog.rtems binutils-2.20.1/bfd/ChangeLog.rtems
|
||||
--- binutils-2.20.1.orig/bfd/ChangeLog.rtems 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ binutils-2.20.1/bfd/ChangeLog.rtems 2010-08-26 05:03:08.221352824 +0200
|
||||
@@ -0,0 +1,6 @@
|
||||
+2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||
+
|
||||
+ PR ld/11939
|
||||
+ * elflink.c (elf_link_add_object_symbols): Don't set
|
||||
+ unique_global for non-ELF hash link table.
|
||||
+
|
||||
diff -Naur binutils-2.20.1.orig/bfd/elflink.c binutils-2.20.1/bfd/elflink.c
|
||||
--- binutils-2.20.1.orig/bfd/elflink.c 2009-09-10 13:47:12.000000000 +0200
|
||||
+++ binutils-2.20.1/bfd/elflink.c 2010-08-26 05:03:08.225352726 +0200
|
||||
@@ -4154,7 +4154,8 @@
|
||||
h = (struct elf_link_hash_entry *) h->root.u.i.link;
|
||||
|
||||
*sym_hash = h;
|
||||
- h->unique_global = (flags & BSF_GNU_UNIQUE) != 0;
|
||||
+ if (is_elf_hash_table (htab))
|
||||
+ h->unique_global = (flags & BSF_GNU_UNIQUE) != 0;
|
||||
|
||||
new_weakdef = FALSE;
|
||||
if (dynamic
|
||||
diff -Naur binutils-2.20.1.orig/bfd/Makefile.am binutils-2.20.1/bfd/Makefile.am
|
||||
--- binutils-2.20.1.orig/bfd/Makefile.am 2010-03-03 14:31:55.000000000 +0100
|
||||
+++ binutils-2.20.1/bfd/Makefile.am 2010-08-26 05:02:54.181352514 +0200
|
||||
@@ -4,7 +4,7 @@
|
||||
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
|
||||
|
||||
# Uncomment the following line when doing a release.
|
||||
-# RELEASE=y
|
||||
+RELEASE=y
|
||||
|
||||
INCDIR = $(srcdir)/../include
|
||||
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
||||
diff -Naur binutils-2.20.1.orig/bfd/Makefile.in binutils-2.20.1/bfd/Makefile.in
|
||||
--- binutils-2.20.1.orig/bfd/Makefile.in 2010-03-03 14:59:15.000000000 +0100
|
||||
+++ binutils-2.20.1/bfd/Makefile.in 2010-08-26 05:02:54.181352514 +0200
|
||||
@@ -317,7 +317,7 @@
|
||||
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
|
||||
|
||||
# Uncomment the following line when doing a release.
|
||||
-# RELEASE=y
|
||||
+RELEASE = y
|
||||
INCDIR = $(srcdir)/../include
|
||||
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
|
||||
SUBDIRS = doc po
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,104 +0,0 @@
|
||||
diff -Naur gcc-4.4.6.orig/gcc/cp/cfns.h gcc-4.4.6gcc/cp/cfns.h
|
||||
--- gcc-4.4.6.orig/gcc/cp/cfns.h 2011-08-29 08:52:31.238300940 +0200
|
||||
+++ gcc-4.4.6gcc/cp/cfns.h 2011-08-29 08:53:20.485041120 +0200
|
||||
@@ -1,5 +1,5 @@
|
||||
-/* ANSI-C code produced by gperf version 3.0.1 */
|
||||
-/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C ../../gcc/cp/cfns.gperf */
|
||||
+/* ANSI-C code produced by gperf version 3.0.3 */
|
||||
+/* Command-line: gperf -o -C -E -k '1-6,$' -j1 -D -N libc_name_p -L ANSI-C cfns.gperf */
|
||||
|
||||
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
|
||||
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
|
||||
@@ -74,13 +74,13 @@
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 0, 0,
|
||||
- 1, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
+ 1, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 28, 90, 0,
|
||||
95, 0, 51, 93, 114, 26, 109, 124, 5, 1,
|
||||
- 6, 13, 37, 128, 3, 0, 0, 49, 38, 0,
|
||||
+ 6, 13, 37, 128, 3, 0, 0, 49, 38, 0,
|
||||
104, 45, 0, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
400, 400, 400, 400, 400, 400, 400, 400, 400, 400,
|
||||
@@ -101,29 +101,32 @@
|
||||
switch (hval)
|
||||
{
|
||||
default:
|
||||
- hval += asso_values[(unsigned char)str[5]+1];
|
||||
+ hval += asso_values[(unsigned char)str[5]+1];
|
||||
/*FALLTHROUGH*/
|
||||
case 5:
|
||||
- hval += asso_values[(unsigned char)str[4]];
|
||||
+ hval += asso_values[(unsigned char)str[4]];
|
||||
/*FALLTHROUGH*/
|
||||
case 4:
|
||||
- hval += asso_values[(unsigned char)str[3]];
|
||||
+ hval += asso_values[(unsigned char)str[3]];
|
||||
/*FALLTHROUGH*/
|
||||
case 3:
|
||||
- hval += asso_values[(unsigned char)str[2]];
|
||||
+ hval += asso_values[(unsigned char)str[2]];
|
||||
/*FALLTHROUGH*/
|
||||
case 2:
|
||||
- hval += asso_values[(unsigned char)str[1]];
|
||||
+ hval += asso_values[(unsigned char)str[1]];
|
||||
/*FALLTHROUGH*/
|
||||
case 1:
|
||||
- hval += asso_values[(unsigned char)str[0]];
|
||||
- break;
|
||||
+ hval += asso_values[(unsigned char)str[0]];
|
||||
+ break;
|
||||
}
|
||||
return hval + asso_values[(unsigned char)str[len - 1]];
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
__inline
|
||||
+#ifdef __GNUC_STDC_INLINE__
|
||||
+__attribute__ ((__gnu_inline__))
|
||||
+#endif
|
||||
#endif
|
||||
const char *
|
||||
libc_name_p (register const char *str, register unsigned int len)
|
||||
@@ -346,17 +349,17 @@
|
||||
register int key = hash (str, len);
|
||||
|
||||
if (key <= MAX_HASH_VALUE && key >= 0)
|
||||
- {
|
||||
- register int index = lookup[key];
|
||||
+ {
|
||||
+ register int index = lookup[key];
|
||||
|
||||
- if (index >= 0)
|
||||
- {
|
||||
- register const char *s = wordlist[index];
|
||||
-
|
||||
- if (*str == *s && !strcmp (str + 1, s + 1))
|
||||
- return s;
|
||||
- }
|
||||
- }
|
||||
+ if (index >= 0)
|
||||
+ {
|
||||
+ register const char *s = wordlist[index];
|
||||
+
|
||||
+ if (*str == *s && !strcmp (str + 1, s + 1))
|
||||
+ return s;
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
diff -Naur gcc-4.4.6.orig/gcc/cp/ChangeLog.rtems gcc-4.4.6gcc/cp/ChangeLog.rtems
|
||||
--- gcc-4.4.6.orig/gcc/cp/ChangeLog.rtems 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ gcc-4.4.6gcc/cp/ChangeLog.rtems 2011-08-29 07:14:47.561734025 +0200
|
||||
@@ -0,0 +1,5 @@
|
||||
+2011-08-29 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
+ and Eric Norum <wenorum@lbl.gov>
|
||||
+
|
||||
+ Fix bootstrap breakdowns on OS X 10.7.1 (Lion):
|
||||
+ * cfns.h: Regenerate.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,532 +0,0 @@
|
||||
diff -Naur gdb-7.1.orig/gdb/lm32-tdep.c gdb-7.1/gdb/lm32-tdep.c
|
||||
--- gdb-7.1.orig/gdb/lm32-tdep.c 2010-01-01 08:31:37.000000000 +0100
|
||||
+++ gdb-7.1/gdb/lm32-tdep.c 2010-03-19 03:59:20.000000000 +0100
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "regcache.h"
|
||||
#include "trad-frame.h"
|
||||
#include "reggroups.h"
|
||||
-#include "opcodes/lm32-desc.h"
|
||||
+#include "../opcodes/lm32-desc.h"
|
||||
|
||||
#include "gdb_string.h"
|
||||
|
||||
diff -Naur gdb-7.1.orig/gdb/sparc-tdep.c gdb-7.1/gdb/sparc-tdep.c
|
||||
--- gdb-7.1.orig/gdb/sparc-tdep.c 2010-01-01 08:31:42.000000000 +0100
|
||||
+++ gdb-7.1/gdb/sparc-tdep.c 2010-03-19 03:59:20.000000000 +0100
|
||||
@@ -1100,7 +1100,7 @@
|
||||
sparc32_store_return_value (struct type *type, struct regcache *regcache,
|
||||
const gdb_byte *valbuf)
|
||||
{
|
||||
- int len = TYPE_LENGTH (type);
|
||||
+ size_t len = TYPE_LENGTH (type);
|
||||
gdb_byte buf[8];
|
||||
|
||||
gdb_assert (!sparc_structure_or_union_p (type));
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/configure gdb-7.1/sim/erc32/configure
|
||||
--- gdb-7.1.orig/sim/erc32/configure 2010-01-09 22:11:39.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/configure 2010-03-19 03:59:20.000000000 +0100
|
||||
@@ -591,8 +591,9 @@
|
||||
ac_subst_vars='LTLIBOBJS
|
||||
LIBOBJS
|
||||
cgen_breaks
|
||||
+READLINE_CFLAGS
|
||||
+READLINE_DEPS
|
||||
READLINE
|
||||
-TERMCAP
|
||||
REPORT_BUGS_TEXI
|
||||
REPORT_BUGS_TO
|
||||
PKGVERSION
|
||||
@@ -716,6 +717,7 @@
|
||||
enable_sim_profile
|
||||
with_pkgversion
|
||||
with_bugurl
|
||||
+with_system_readline
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1358,6 +1360,7 @@
|
||||
--with-zlib include zlib support (auto/yes/no) default=auto
|
||||
--with-pkgversion=PKG Use PKG in the version string in place of "GDB"
|
||||
--with-bugurl=URL Direct users to URL to report a bug
|
||||
+ --with-system-readline use installed readline library
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
@@ -2416,7 +2419,6 @@
|
||||
|
||||
|
||||
|
||||
-
|
||||
# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
|
||||
# it by inlining the macro's contents.
|
||||
# This file contains common code used by all simulators.
|
||||
@@ -2916,18 +2918,18 @@
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-
|
||||
+return 0;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
ac_clean_files_save=$ac_clean_files
|
||||
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
|
||||
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
||||
# Try to create an executable without -o first, disregard a.out.
|
||||
# It will help us diagnose broken compilers, and finding out an intuition
|
||||
# of exeext.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
-$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
+$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
||||
|
||||
# The possible output files:
|
||||
@@ -2989,10 +2991,10 @@
|
||||
else
|
||||
ac_file=''
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
-$as_echo "$ac_file" >&6; }
|
||||
if test -z "$ac_file"; then :
|
||||
- $as_echo "$as_me: failed program was:" >&5
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
+$as_echo "no" >&6; }
|
||||
+$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
@@ -3000,51 +3002,18 @@
|
||||
{ as_fn_set_status 77
|
||||
as_fn_error "C compiler cannot create executables
|
||||
See \`config.log' for more details." "$LINENO" 5; }; }
|
||||
+else
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
+$as_echo "yes" >&6; }
|
||||
fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
+$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
+$as_echo "$ac_file" >&6; }
|
||||
ac_exeext=$ac_cv_exeext
|
||||
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
-$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
-# If not cross compiling, check that we can run a simple program.
|
||||
-if test "$cross_compiling" != yes; then
|
||||
- if { ac_try='./$ac_file'
|
||||
- { { case "(($ac_try" in
|
||||
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
- *) ac_try_echo=$ac_try;;
|
||||
-esac
|
||||
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
-$as_echo "$ac_try_echo"; } >&5
|
||||
- (eval "$ac_try") 2>&5
|
||||
- ac_status=$?
|
||||
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
- test $ac_status = 0; }; }; then
|
||||
- cross_compiling=no
|
||||
- else
|
||||
- if test "$cross_compiling" = maybe; then
|
||||
- cross_compiling=yes
|
||||
- else
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error "cannot run C compiled programs.
|
||||
-If you meant to cross compile, use \`--host'.
|
||||
-See \`config.log' for more details." "$LINENO" 5; }
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
-$as_echo "yes" >&6; }
|
||||
-
|
||||
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
|
||||
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
||||
ac_clean_files=$ac_clean_files_save
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
-$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
-$as_echo "$cross_compiling" >&6; }
|
||||
-
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
||||
$as_echo_n "checking for suffix of executables... " >&6; }
|
||||
if { { ac_try="$ac_link"
|
||||
@@ -3084,6 +3053,63 @@
|
||||
rm -f conftest.$ac_ext
|
||||
EXEEXT=$ac_cv_exeext
|
||||
ac_exeext=$EXEEXT
|
||||
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+ac_clean_files="$ac_clean_files conftest.out"
|
||||
+# Check that the compiler produces executables we can run. If not, either
|
||||
+# the compiler is broken, or we cross compile.
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
+$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
+if test "$cross_compiling" != yes; then
|
||||
+ { { ac_try="$ac_link"
|
||||
+case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_link") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }
|
||||
+ if { ac_try='./conftest$ac_cv_exeext'
|
||||
+ { { case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_try") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }; }; then
|
||||
+ cross_compiling=no
|
||||
+ else
|
||||
+ if test "$cross_compiling" = maybe; then
|
||||
+ cross_compiling=yes
|
||||
+ else
|
||||
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
+as_fn_error "cannot run C compiled programs.
|
||||
+If you meant to cross compile, use \`--host'.
|
||||
+See \`config.log' for more details." "$LINENO" 5; }
|
||||
+ fi
|
||||
+ fi
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
+$as_echo "$cross_compiling" >&6; }
|
||||
+
|
||||
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
||||
+ac_clean_files=$ac_clean_files_save
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
||||
$as_echo_n "checking for suffix of object files... " >&6; }
|
||||
if test "${ac_cv_objext+set}" = set; then :
|
||||
@@ -4532,86 +4558,41 @@
|
||||
done
|
||||
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
|
||||
-$as_echo_n "checking for cygwin... " >&6; }
|
||||
-if test "${sim_cv_os_cygwin+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif
|
||||
-_ACEOF
|
||||
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
- $EGREP "lose" >/dev/null 2>&1; then :
|
||||
- sim_cv_os_cygwin=yes
|
||||
-else
|
||||
- sim_cv_os_cygwin=no
|
||||
+# Check whether --with-system-readline was given.
|
||||
+if test "${with_system_readline+set}" = set; then :
|
||||
+ withval=$with_system_readline;
|
||||
fi
|
||||
-rm -f conftest*
|
||||
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
|
||||
-$as_echo "$sim_cv_os_cygwin" >&6; }
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5
|
||||
-$as_echo_n "checking for main in -ltermcap... " >&6; }
|
||||
-if test "${ac_cv_lib_termcap_main+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-ltermcap $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
|
||||
+$as_echo_n "checking for readline... " >&6; }
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
-
|
||||
+/* Override any GCC internal prototype to avoid an error.
|
||||
+ Use char because int might match the return type of a GCC
|
||||
+ builtin and then its argument prototype would still apply. */
|
||||
+#ifdef __cplusplus
|
||||
+extern "C"
|
||||
+#endif
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return main ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_termcap_main=yes
|
||||
-else
|
||||
- ac_cv_lib_termcap_main=no
|
||||
-fi
|
||||
-rm -f core conftest.err conftest.$ac_objext \
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5
|
||||
-$as_echo "$ac_cv_lib_termcap_main" >&6; }
|
||||
-if test "x$ac_cv_lib_termcap_main" = x""yes; then :
|
||||
- TERMCAP=-ltermcap
|
||||
-else
|
||||
- TERMCAP=""
|
||||
-fi
|
||||
-
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
|
||||
-$as_echo_n "checking for readline in -lreadline... " >&6; }
|
||||
-if test "${ac_cv_lib_readline_readline+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
+ READLINE=-lreadline
|
||||
else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lreadline $TERMCAP $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
@@ -4620,33 +4601,39 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
-char readline ();
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return readline ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_readline_readline=yes
|
||||
+ READLINE="-lreadline -lncurses"
|
||||
else
|
||||
- ac_cv_lib_readline_readline=no
|
||||
+ as_fn_error "unable to detect readline" "$LINENO" 5
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
+
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
|
||||
-$as_echo "$ac_cv_lib_readline_readline" >&6; }
|
||||
-if test "x$ac_cv_lib_readline_readline" = x""yes; then :
|
||||
- READLINE=-lreadline
|
||||
-else
|
||||
- as_fn_error "the required \"readline\" library is missing" "$LINENO" 5
|
||||
+rm -f core conftest.err conftest.$ac_objext \
|
||||
+ conftest$ac_exeext conftest.$ac_ext
|
||||
+ LIBS="$save_LIBS"
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
|
||||
+$as_echo "$READLINE" >&6; }
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
+else
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
|
||||
-fi
|
||||
+
|
||||
+
|
||||
|
||||
|
||||
ac_sources="$sim_link_files"
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/configure.ac gdb-7.1/sim/erc32/configure.ac
|
||||
--- gdb-7.1.orig/sim/erc32/configure.ac 2006-12-20 23:35:51.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/configure.ac 2010-03-19 03:58:40.000000000 +0100
|
||||
@@ -11,27 +11,32 @@
|
||||
|
||||
AC_CHECK_HEADERS(stdlib.h)
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
|
||||
-[AC_EGREP_CPP(lose, [
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
|
||||
+AC_ARG_WITH([system-readline],
|
||||
+ [AS_HELP_STRING([--with-system-readline],
|
||||
+ [use installed readline library])])
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ AC_MSG_CHECKING([for readline])
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE=-lreadline],
|
||||
+ [ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE="-lreadline -lncurses"],
|
||||
+ [AC_MSG_ERROR([unable to detect readline])])
|
||||
+ ])
|
||||
+ LIBS="$save_LIBS"
|
||||
+ AC_MSG_RESULT($READLINE)
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
else
|
||||
- AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
|
||||
-fi
|
||||
-AC_SUBST(TERMCAP)
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
|
||||
- AC_ERROR([the required "readline" library is missing]), $TERMCAP)
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
AC_SUBST(READLINE)
|
||||
+AC_SUBST(READLINE_DEPS)
|
||||
+AC_SUBST(READLINE_CFLAGS)
|
||||
+
|
||||
SIM_AC_OUTPUT
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/erc32.c gdb-7.1/sim/erc32/erc32.c
|
||||
--- gdb-7.1.orig/sim/erc32/erc32.c 2008-11-11 23:20:54.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/erc32.c 2010-03-19 03:58:40.000000000 +0100
|
||||
@@ -414,7 +414,7 @@
|
||||
if (rom8) mec_memcfg &= ~0x20000;
|
||||
else mec_memcfg |= 0x20000;
|
||||
|
||||
- mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
+ mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
|
||||
|
||||
if (sparclite_board) {
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/Makefile.in gdb-7.1/sim/erc32/Makefile.in
|
||||
--- gdb-7.1.orig/sim/erc32/Makefile.in 2010-01-01 11:03:28.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/Makefile.in 2010-03-19 03:58:40.000000000 +0100
|
||||
@@ -19,12 +19,12 @@
|
||||
|
||||
## COMMON_PRE_CONFIG_FRAG
|
||||
|
||||
-TERMCAP_LIB = @TERMCAP@
|
||||
+# TERMCAP_LIB = -lncurses
|
||||
READLINE_LIB = @READLINE@
|
||||
|
||||
SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
|
||||
SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
|
||||
-SIM_EXTRA_ALL = sis
|
||||
+SIM_EXTRA_ALL = sis$(EXEEXT)
|
||||
SIM_EXTRA_INSTALL = install-sis
|
||||
SIM_EXTRA_CLEAN = clean-sis
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
# `sis' doesn't need interf.o.
|
||||
SIS_OFILES = exec.o erc32.o func.o help.o float.o
|
||||
|
||||
-sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
- $(CC) $(ALL_CFLAGS) -o sis \
|
||||
+sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
+ $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
|
||||
sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
|
||||
|
||||
# FIXME: This computes the build host's endianness, doesn't it?
|
||||
@@ -52,11 +52,11 @@
|
||||
|
||||
# Copy the files into directories where they will be run.
|
||||
install-sis: installdirs
|
||||
- n=`echo sis | sed '$(program_transform_name)'`; \
|
||||
- $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
|
||||
+ n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \
|
||||
+ $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n
|
||||
|
||||
clean-sis:
|
||||
- rm -f sis end end.h
|
||||
+ rm -f sis$(EXEEXT) end end.h
|
||||
|
||||
configure:
|
||||
@echo "Rebuilding configure..."
|
||||
diff -Naur gdb-7.1.orig/sim/h8300/compile.c gdb-7.1/sim/h8300/compile.c
|
||||
--- gdb-7.1.orig/sim/h8300/compile.c 2009-12-09 06:32:16.000000000 +0100
|
||||
+++ gdb-7.1/sim/h8300/compile.c 2010-03-19 03:58:54.000000000 +0100
|
||||
@@ -38,6 +38,12 @@
|
||||
# define SIGTRAP 5
|
||||
#endif
|
||||
|
||||
+#ifdef _WIN32
|
||||
+#ifndef SIGBUS
|
||||
+#define SIGBUS 10
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
int debug;
|
||||
|
||||
host_callback *sim_callback;
|
||||
diff -Naur gdb-7.1.orig/sim/m32c/Makefile.in gdb-7.1/sim/m32c/Makefile.in
|
||||
--- gdb-7.1.orig/sim/m32c/Makefile.in 2010-01-01 11:03:31.000000000 +0100
|
||||
+++ gdb-7.1/sim/m32c/Makefile.in 2010-03-19 03:58:54.000000000 +0100
|
||||
@@ -55,7 +55,7 @@
|
||||
./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
|
||||
|
||||
opc2c : opc2c.o safe-fgets.o
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $^ -o $@
|
||||
|
||||
sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
|
||||
../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
|
||||
@@ -83,8 +83,10 @@
|
||||
mem.o : mem.h cpu.h syscalls.h
|
||||
misc.o : cpu.h misc.h
|
||||
opc2c.o : safe-fgets.h
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/opc2c.c
|
||||
reg.o : cpu.h
|
||||
safe-fgets.o : safe-fgets.h
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/safe-fgets.c
|
||||
srcdest.c : cpu.h mem.h
|
||||
syscalls.c : cpu.h mem.h syscalls.h
|
||||
|
||||
@@ -1,622 +0,0 @@
|
||||
diff -Naur gdb-7.1.orig/gdb/config.in gdb-7.1/gdb/config.in
|
||||
--- gdb-7.1.orig/gdb/config.in 2010-01-15 01:34:37.000000000 +0100
|
||||
+++ gdb-7.1/gdb/config.in 2010-08-13 04:38:34.066094217 +0200
|
||||
@@ -222,6 +222,9 @@
|
||||
/* Define if Python 2.6 is being used. */
|
||||
#undef HAVE_LIBPYTHON2_6
|
||||
|
||||
+/* Define if Python 2.7 is being used. */
|
||||
+#undef HAVE_LIBPYTHON2_7
|
||||
+
|
||||
/* Define if libunwind library is being used. */
|
||||
#undef HAVE_LIBUNWIND
|
||||
|
||||
diff -Naur gdb-7.1.orig/gdb/configure gdb-7.1/gdb/configure
|
||||
--- gdb-7.1.orig/gdb/configure 2010-03-15 18:06:12.000000000 +0100
|
||||
+++ gdb-7.1/gdb/configure 2010-08-13 04:38:34.071094149 +0200
|
||||
@@ -9471,6 +9471,44 @@
|
||||
have_libpython=no
|
||||
if test "${have_libpython}" = no; then
|
||||
|
||||
+ version=python2.7
|
||||
+
|
||||
+
|
||||
+ HAVE_LIBPYTHON2_7=no
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
|
||||
+$as_echo_n "checking for ${version}... " >&6; }
|
||||
+ save_LIBS=$LIBS
|
||||
+ LIBS="$LIBS -l${version}"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+#include "${version}/Python.h"
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+Py_Initialize ();
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+if ac_fn_c_try_link "$LINENO"; then :
|
||||
+ HAVE_LIBPYTHON2_7=yes
|
||||
+ have_libpython=yes
|
||||
+else
|
||||
+ LIBS=$save_LIBS
|
||||
+fi
|
||||
+rm -f core conftest.err conftest.$ac_objext \
|
||||
+ conftest$ac_exeext conftest.$ac_ext
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_7" >&5
|
||||
+$as_echo "$HAVE_LIBPYTHON2_7" >&6; }
|
||||
+
|
||||
+ if test "${HAVE_LIBPYTHON2_7}" = yes; then
|
||||
+
|
||||
+$as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
|
||||
+
|
||||
+ fi
|
||||
+ fi
|
||||
+ if test "${have_libpython}" = no; then
|
||||
+
|
||||
version=python2.6
|
||||
|
||||
|
||||
diff -Naur gdb-7.1.orig/gdb/configure.ac gdb-7.1/gdb/configure.ac
|
||||
--- gdb-7.1.orig/gdb/configure.ac 2010-03-15 18:06:12.000000000 +0100
|
||||
+++ gdb-7.1/gdb/configure.ac 2010-08-13 04:38:34.072094137 +0200
|
||||
@@ -638,6 +638,12 @@
|
||||
LIBS="$LIBS ${python_libs}"
|
||||
have_libpython=no
|
||||
if test "${have_libpython}" = no; then
|
||||
+ AC_TRY_LIBPYTHON(python2.7, have_libpython)
|
||||
+ if test "${HAVE_LIBPYTHON2_7}" = yes; then
|
||||
+ AC_DEFINE(HAVE_LIBPYTHON2_7, 1, [Define if Python 2.7 is being used.])
|
||||
+ fi
|
||||
+ fi
|
||||
+ if test "${have_libpython}" = no; then
|
||||
AC_TRY_LIBPYTHON(python2.6, have_libpython)
|
||||
if test "${HAVE_LIBPYTHON2_6}" = yes; then
|
||||
AC_DEFINE(HAVE_LIBPYTHON2_6, 1, [Define if Python 2.6 is being used.])
|
||||
diff -Naur gdb-7.1.orig/gdb/lm32-tdep.c gdb-7.1/gdb/lm32-tdep.c
|
||||
--- gdb-7.1.orig/gdb/lm32-tdep.c 2010-01-01 08:31:37.000000000 +0100
|
||||
+++ gdb-7.1/gdb/lm32-tdep.c 2010-08-13 04:38:34.072094137 +0200
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "regcache.h"
|
||||
#include "trad-frame.h"
|
||||
#include "reggroups.h"
|
||||
-#include "opcodes/lm32-desc.h"
|
||||
+#include "../opcodes/lm32-desc.h"
|
||||
|
||||
#include "gdb_string.h"
|
||||
|
||||
diff -Naur gdb-7.1.orig/gdb/python/python-internal.h gdb-7.1/gdb/python/python-internal.h
|
||||
--- gdb-7.1.orig/gdb/python/python-internal.h 2010-02-17 15:58:54.000000000 +0100
|
||||
+++ gdb-7.1/gdb/python/python-internal.h 2010-08-13 04:38:34.073094077 +0200
|
||||
@@ -45,6 +45,9 @@
|
||||
#elif HAVE_LIBPYTHON2_6
|
||||
#include "python2.6/Python.h"
|
||||
#include "python2.6/frameobject.h"
|
||||
+#elif HAVE_LIBPYTHON2_7
|
||||
+#include "python2.7/Python.h"
|
||||
+#include "python2.7/frameobject.h"
|
||||
#else
|
||||
#error "Unable to find usable Python.h"
|
||||
#endif
|
||||
diff -Naur gdb-7.1.orig/gdb/sparc-tdep.c gdb-7.1/gdb/sparc-tdep.c
|
||||
--- gdb-7.1.orig/gdb/sparc-tdep.c 2010-01-01 08:31:42.000000000 +0100
|
||||
+++ gdb-7.1/gdb/sparc-tdep.c 2010-08-13 04:38:34.073094077 +0200
|
||||
@@ -1100,7 +1100,7 @@
|
||||
sparc32_store_return_value (struct type *type, struct regcache *regcache,
|
||||
const gdb_byte *valbuf)
|
||||
{
|
||||
- int len = TYPE_LENGTH (type);
|
||||
+ size_t len = TYPE_LENGTH (type);
|
||||
gdb_byte buf[8];
|
||||
|
||||
gdb_assert (!sparc_structure_or_union_p (type));
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/configure gdb-7.1/sim/erc32/configure
|
||||
--- gdb-7.1.orig/sim/erc32/configure 2010-01-09 22:11:39.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/configure 2010-08-13 04:38:34.087108561 +0200
|
||||
@@ -591,8 +591,9 @@
|
||||
ac_subst_vars='LTLIBOBJS
|
||||
LIBOBJS
|
||||
cgen_breaks
|
||||
+READLINE_CFLAGS
|
||||
+READLINE_DEPS
|
||||
READLINE
|
||||
-TERMCAP
|
||||
REPORT_BUGS_TEXI
|
||||
REPORT_BUGS_TO
|
||||
PKGVERSION
|
||||
@@ -716,6 +717,7 @@
|
||||
enable_sim_profile
|
||||
with_pkgversion
|
||||
with_bugurl
|
||||
+with_system_readline
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1358,6 +1360,7 @@
|
||||
--with-zlib include zlib support (auto/yes/no) default=auto
|
||||
--with-pkgversion=PKG Use PKG in the version string in place of "GDB"
|
||||
--with-bugurl=URL Direct users to URL to report a bug
|
||||
+ --with-system-readline use installed readline library
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
@@ -2416,7 +2419,6 @@
|
||||
|
||||
|
||||
|
||||
-
|
||||
# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
|
||||
# it by inlining the macro's contents.
|
||||
# This file contains common code used by all simulators.
|
||||
@@ -2916,18 +2918,18 @@
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-
|
||||
+return 0;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
ac_clean_files_save=$ac_clean_files
|
||||
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
|
||||
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
||||
# Try to create an executable without -o first, disregard a.out.
|
||||
# It will help us diagnose broken compilers, and finding out an intuition
|
||||
# of exeext.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
-$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
+$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
||||
|
||||
# The possible output files:
|
||||
@@ -2989,10 +2991,10 @@
|
||||
else
|
||||
ac_file=''
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
-$as_echo "$ac_file" >&6; }
|
||||
if test -z "$ac_file"; then :
|
||||
- $as_echo "$as_me: failed program was:" >&5
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
+$as_echo "no" >&6; }
|
||||
+$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
@@ -3000,51 +3002,18 @@
|
||||
{ as_fn_set_status 77
|
||||
as_fn_error "C compiler cannot create executables
|
||||
See \`config.log' for more details." "$LINENO" 5; }; }
|
||||
+else
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
+$as_echo "yes" >&6; }
|
||||
fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
+$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
+$as_echo "$ac_file" >&6; }
|
||||
ac_exeext=$ac_cv_exeext
|
||||
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
-$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
-# If not cross compiling, check that we can run a simple program.
|
||||
-if test "$cross_compiling" != yes; then
|
||||
- if { ac_try='./$ac_file'
|
||||
- { { case "(($ac_try" in
|
||||
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
- *) ac_try_echo=$ac_try;;
|
||||
-esac
|
||||
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
-$as_echo "$ac_try_echo"; } >&5
|
||||
- (eval "$ac_try") 2>&5
|
||||
- ac_status=$?
|
||||
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
- test $ac_status = 0; }; }; then
|
||||
- cross_compiling=no
|
||||
- else
|
||||
- if test "$cross_compiling" = maybe; then
|
||||
- cross_compiling=yes
|
||||
- else
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error "cannot run C compiled programs.
|
||||
-If you meant to cross compile, use \`--host'.
|
||||
-See \`config.log' for more details." "$LINENO" 5; }
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
-$as_echo "yes" >&6; }
|
||||
-
|
||||
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
|
||||
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
||||
ac_clean_files=$ac_clean_files_save
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
-$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
-$as_echo "$cross_compiling" >&6; }
|
||||
-
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
||||
$as_echo_n "checking for suffix of executables... " >&6; }
|
||||
if { { ac_try="$ac_link"
|
||||
@@ -3084,6 +3053,63 @@
|
||||
rm -f conftest.$ac_ext
|
||||
EXEEXT=$ac_cv_exeext
|
||||
ac_exeext=$EXEEXT
|
||||
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+ac_clean_files="$ac_clean_files conftest.out"
|
||||
+# Check that the compiler produces executables we can run. If not, either
|
||||
+# the compiler is broken, or we cross compile.
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
+$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
+if test "$cross_compiling" != yes; then
|
||||
+ { { ac_try="$ac_link"
|
||||
+case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_link") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }
|
||||
+ if { ac_try='./conftest$ac_cv_exeext'
|
||||
+ { { case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_try") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }; }; then
|
||||
+ cross_compiling=no
|
||||
+ else
|
||||
+ if test "$cross_compiling" = maybe; then
|
||||
+ cross_compiling=yes
|
||||
+ else
|
||||
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
+as_fn_error "cannot run C compiled programs.
|
||||
+If you meant to cross compile, use \`--host'.
|
||||
+See \`config.log' for more details." "$LINENO" 5; }
|
||||
+ fi
|
||||
+ fi
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
+$as_echo "$cross_compiling" >&6; }
|
||||
+
|
||||
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
||||
+ac_clean_files=$ac_clean_files_save
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
||||
$as_echo_n "checking for suffix of object files... " >&6; }
|
||||
if test "${ac_cv_objext+set}" = set; then :
|
||||
@@ -4532,86 +4558,41 @@
|
||||
done
|
||||
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
|
||||
-$as_echo_n "checking for cygwin... " >&6; }
|
||||
-if test "${sim_cv_os_cygwin+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif
|
||||
-_ACEOF
|
||||
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
- $EGREP "lose" >/dev/null 2>&1; then :
|
||||
- sim_cv_os_cygwin=yes
|
||||
-else
|
||||
- sim_cv_os_cygwin=no
|
||||
+# Check whether --with-system-readline was given.
|
||||
+if test "${with_system_readline+set}" = set; then :
|
||||
+ withval=$with_system_readline;
|
||||
fi
|
||||
-rm -f conftest*
|
||||
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
|
||||
-$as_echo "$sim_cv_os_cygwin" >&6; }
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5
|
||||
-$as_echo_n "checking for main in -ltermcap... " >&6; }
|
||||
-if test "${ac_cv_lib_termcap_main+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-ltermcap $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
|
||||
+$as_echo_n "checking for readline... " >&6; }
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
-
|
||||
+/* Override any GCC internal prototype to avoid an error.
|
||||
+ Use char because int might match the return type of a GCC
|
||||
+ builtin and then its argument prototype would still apply. */
|
||||
+#ifdef __cplusplus
|
||||
+extern "C"
|
||||
+#endif
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return main ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_termcap_main=yes
|
||||
-else
|
||||
- ac_cv_lib_termcap_main=no
|
||||
-fi
|
||||
-rm -f core conftest.err conftest.$ac_objext \
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5
|
||||
-$as_echo "$ac_cv_lib_termcap_main" >&6; }
|
||||
-if test "x$ac_cv_lib_termcap_main" = x""yes; then :
|
||||
- TERMCAP=-ltermcap
|
||||
-else
|
||||
- TERMCAP=""
|
||||
-fi
|
||||
-
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
|
||||
-$as_echo_n "checking for readline in -lreadline... " >&6; }
|
||||
-if test "${ac_cv_lib_readline_readline+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
+ READLINE=-lreadline
|
||||
else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lreadline $TERMCAP $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
@@ -4620,33 +4601,39 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
-char readline ();
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return readline ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_readline_readline=yes
|
||||
+ READLINE="-lreadline -lncurses"
|
||||
else
|
||||
- ac_cv_lib_readline_readline=no
|
||||
+ as_fn_error "unable to detect readline" "$LINENO" 5
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
+
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
|
||||
-$as_echo "$ac_cv_lib_readline_readline" >&6; }
|
||||
-if test "x$ac_cv_lib_readline_readline" = x""yes; then :
|
||||
- READLINE=-lreadline
|
||||
-else
|
||||
- as_fn_error "the required \"readline\" library is missing" "$LINENO" 5
|
||||
+rm -f core conftest.err conftest.$ac_objext \
|
||||
+ conftest$ac_exeext conftest.$ac_ext
|
||||
+ LIBS="$save_LIBS"
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
|
||||
+$as_echo "$READLINE" >&6; }
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
+else
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
|
||||
-fi
|
||||
+
|
||||
+
|
||||
|
||||
|
||||
ac_sources="$sim_link_files"
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/configure.ac gdb-7.1/sim/erc32/configure.ac
|
||||
--- gdb-7.1.orig/sim/erc32/configure.ac 2006-12-20 23:35:51.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/configure.ac 2010-08-13 04:38:34.087108561 +0200
|
||||
@@ -11,27 +11,32 @@
|
||||
|
||||
AC_CHECK_HEADERS(stdlib.h)
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
|
||||
-[AC_EGREP_CPP(lose, [
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
|
||||
+AC_ARG_WITH([system-readline],
|
||||
+ [AS_HELP_STRING([--with-system-readline],
|
||||
+ [use installed readline library])])
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ AC_MSG_CHECKING([for readline])
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE=-lreadline],
|
||||
+ [ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE="-lreadline -lncurses"],
|
||||
+ [AC_MSG_ERROR([unable to detect readline])])
|
||||
+ ])
|
||||
+ LIBS="$save_LIBS"
|
||||
+ AC_MSG_RESULT($READLINE)
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
else
|
||||
- AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
|
||||
-fi
|
||||
-AC_SUBST(TERMCAP)
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
|
||||
- AC_ERROR([the required "readline" library is missing]), $TERMCAP)
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
AC_SUBST(READLINE)
|
||||
+AC_SUBST(READLINE_DEPS)
|
||||
+AC_SUBST(READLINE_CFLAGS)
|
||||
+
|
||||
SIM_AC_OUTPUT
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/erc32.c gdb-7.1/sim/erc32/erc32.c
|
||||
--- gdb-7.1.orig/sim/erc32/erc32.c 2008-11-11 23:20:54.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/erc32.c 2010-08-13 04:38:34.088094136 +0200
|
||||
@@ -414,7 +414,7 @@
|
||||
if (rom8) mec_memcfg &= ~0x20000;
|
||||
else mec_memcfg |= 0x20000;
|
||||
|
||||
- mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
+ mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
|
||||
|
||||
if (sparclite_board) {
|
||||
diff -Naur gdb-7.1.orig/sim/erc32/Makefile.in gdb-7.1/sim/erc32/Makefile.in
|
||||
--- gdb-7.1.orig/sim/erc32/Makefile.in 2010-01-01 11:03:28.000000000 +0100
|
||||
+++ gdb-7.1/sim/erc32/Makefile.in 2010-08-13 04:38:34.088094136 +0200
|
||||
@@ -19,12 +19,12 @@
|
||||
|
||||
## COMMON_PRE_CONFIG_FRAG
|
||||
|
||||
-TERMCAP_LIB = @TERMCAP@
|
||||
+# TERMCAP_LIB = -lncurses
|
||||
READLINE_LIB = @READLINE@
|
||||
|
||||
SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
|
||||
SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
|
||||
-SIM_EXTRA_ALL = sis
|
||||
+SIM_EXTRA_ALL = sis$(EXEEXT)
|
||||
SIM_EXTRA_INSTALL = install-sis
|
||||
SIM_EXTRA_CLEAN = clean-sis
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
# `sis' doesn't need interf.o.
|
||||
SIS_OFILES = exec.o erc32.o func.o help.o float.o
|
||||
|
||||
-sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
- $(CC) $(ALL_CFLAGS) -o sis \
|
||||
+sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
+ $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
|
||||
sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
|
||||
|
||||
# FIXME: This computes the build host's endianness, doesn't it?
|
||||
@@ -52,11 +52,11 @@
|
||||
|
||||
# Copy the files into directories where they will be run.
|
||||
install-sis: installdirs
|
||||
- n=`echo sis | sed '$(program_transform_name)'`; \
|
||||
- $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
|
||||
+ n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \
|
||||
+ $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n
|
||||
|
||||
clean-sis:
|
||||
- rm -f sis end end.h
|
||||
+ rm -f sis$(EXEEXT) end end.h
|
||||
|
||||
configure:
|
||||
@echo "Rebuilding configure..."
|
||||
diff -Naur gdb-7.1.orig/sim/h8300/compile.c gdb-7.1/sim/h8300/compile.c
|
||||
--- gdb-7.1.orig/sim/h8300/compile.c 2009-12-09 06:32:16.000000000 +0100
|
||||
+++ gdb-7.1/sim/h8300/compile.c 2010-08-13 04:38:34.090094053 +0200
|
||||
@@ -38,6 +38,12 @@
|
||||
# define SIGTRAP 5
|
||||
#endif
|
||||
|
||||
+#ifdef _WIN32
|
||||
+#ifndef SIGBUS
|
||||
+#define SIGBUS 10
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
int debug;
|
||||
|
||||
host_callback *sim_callback;
|
||||
diff -Naur gdb-7.1.orig/sim/m32c/Makefile.in gdb-7.1/sim/m32c/Makefile.in
|
||||
--- gdb-7.1.orig/sim/m32c/Makefile.in 2010-01-01 11:03:31.000000000 +0100
|
||||
+++ gdb-7.1/sim/m32c/Makefile.in 2010-08-13 04:38:34.104219008 +0200
|
||||
@@ -55,7 +55,7 @@
|
||||
./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
|
||||
|
||||
opc2c : opc2c.o safe-fgets.o
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $^ -o $@
|
||||
|
||||
sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
|
||||
../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
|
||||
@@ -83,8 +83,10 @@
|
||||
mem.o : mem.h cpu.h syscalls.h
|
||||
misc.o : cpu.h misc.h
|
||||
opc2c.o : safe-fgets.h
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/opc2c.c
|
||||
reg.o : cpu.h
|
||||
safe-fgets.o : safe-fgets.h
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/safe-fgets.c
|
||||
srcdest.c : cpu.h mem.h
|
||||
syscalls.c : cpu.h mem.h syscalls.h
|
||||
|
||||
@@ -1,532 +0,0 @@
|
||||
diff -Naur gdb-7.2.orig/gdb/lm32-tdep.c gdb-7.2/gdb/lm32-tdep.c
|
||||
--- gdb-7.2.orig/gdb/lm32-tdep.c 2010-01-01 08:31:37.000000000 +0100
|
||||
+++ gdb-7.2/gdb/lm32-tdep.c 2010-09-03 06:31:13.248351984 +0200
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "regcache.h"
|
||||
#include "trad-frame.h"
|
||||
#include "reggroups.h"
|
||||
-#include "opcodes/lm32-desc.h"
|
||||
+#include "../opcodes/lm32-desc.h"
|
||||
|
||||
#include "gdb_string.h"
|
||||
|
||||
diff -Naur gdb-7.2.orig/gdb/sparc-tdep.c gdb-7.2/gdb/sparc-tdep.c
|
||||
--- gdb-7.2.orig/gdb/sparc-tdep.c 2010-05-05 18:58:59.000000000 +0200
|
||||
+++ gdb-7.2/gdb/sparc-tdep.c 2010-09-03 06:31:39.753477822 +0200
|
||||
@@ -1105,7 +1105,7 @@
|
||||
sparc32_store_return_value (struct type *type, struct regcache *regcache,
|
||||
const gdb_byte *valbuf)
|
||||
{
|
||||
- int len = TYPE_LENGTH (type);
|
||||
+ size_t len = TYPE_LENGTH (type);
|
||||
gdb_byte buf[8];
|
||||
|
||||
gdb_assert (!sparc_structure_or_union_p (type));
|
||||
diff -Naur gdb-7.2.orig/sim/erc32/configure gdb-7.2/sim/erc32/configure
|
||||
--- gdb-7.2.orig/sim/erc32/configure 2010-01-09 22:11:39.000000000 +0100
|
||||
+++ gdb-7.2/sim/erc32/configure 2010-09-03 06:33:38.106477633 +0200
|
||||
@@ -591,8 +591,9 @@
|
||||
ac_subst_vars='LTLIBOBJS
|
||||
LIBOBJS
|
||||
cgen_breaks
|
||||
+READLINE_CFLAGS
|
||||
+READLINE_DEPS
|
||||
READLINE
|
||||
-TERMCAP
|
||||
REPORT_BUGS_TEXI
|
||||
REPORT_BUGS_TO
|
||||
PKGVERSION
|
||||
@@ -716,6 +717,7 @@
|
||||
enable_sim_profile
|
||||
with_pkgversion
|
||||
with_bugurl
|
||||
+with_system_readline
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1358,6 +1360,7 @@
|
||||
--with-zlib include zlib support (auto/yes/no) default=auto
|
||||
--with-pkgversion=PKG Use PKG in the version string in place of "GDB"
|
||||
--with-bugurl=URL Direct users to URL to report a bug
|
||||
+ --with-system-readline use installed readline library
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
@@ -2416,7 +2419,6 @@
|
||||
|
||||
|
||||
|
||||
-
|
||||
# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
|
||||
# it by inlining the macro's contents.
|
||||
# This file contains common code used by all simulators.
|
||||
@@ -2916,18 +2918,18 @@
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-
|
||||
+return 0;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
ac_clean_files_save=$ac_clean_files
|
||||
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
|
||||
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
||||
# Try to create an executable without -o first, disregard a.out.
|
||||
# It will help us diagnose broken compilers, and finding out an intuition
|
||||
# of exeext.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
-$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
+$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
||||
|
||||
# The possible output files:
|
||||
@@ -2989,10 +2991,10 @@
|
||||
else
|
||||
ac_file=''
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
-$as_echo "$ac_file" >&6; }
|
||||
if test -z "$ac_file"; then :
|
||||
- $as_echo "$as_me: failed program was:" >&5
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
+$as_echo "no" >&6; }
|
||||
+$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
@@ -3000,51 +3002,18 @@
|
||||
{ as_fn_set_status 77
|
||||
as_fn_error "C compiler cannot create executables
|
||||
See \`config.log' for more details." "$LINENO" 5; }; }
|
||||
+else
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
+$as_echo "yes" >&6; }
|
||||
fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
+$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
+$as_echo "$ac_file" >&6; }
|
||||
ac_exeext=$ac_cv_exeext
|
||||
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
-$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
-# If not cross compiling, check that we can run a simple program.
|
||||
-if test "$cross_compiling" != yes; then
|
||||
- if { ac_try='./$ac_file'
|
||||
- { { case "(($ac_try" in
|
||||
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
- *) ac_try_echo=$ac_try;;
|
||||
-esac
|
||||
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
-$as_echo "$ac_try_echo"; } >&5
|
||||
- (eval "$ac_try") 2>&5
|
||||
- ac_status=$?
|
||||
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
- test $ac_status = 0; }; }; then
|
||||
- cross_compiling=no
|
||||
- else
|
||||
- if test "$cross_compiling" = maybe; then
|
||||
- cross_compiling=yes
|
||||
- else
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error "cannot run C compiled programs.
|
||||
-If you meant to cross compile, use \`--host'.
|
||||
-See \`config.log' for more details." "$LINENO" 5; }
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
-$as_echo "yes" >&6; }
|
||||
-
|
||||
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
|
||||
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
||||
ac_clean_files=$ac_clean_files_save
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
-$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
-$as_echo "$cross_compiling" >&6; }
|
||||
-
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
||||
$as_echo_n "checking for suffix of executables... " >&6; }
|
||||
if { { ac_try="$ac_link"
|
||||
@@ -3084,6 +3053,63 @@
|
||||
rm -f conftest.$ac_ext
|
||||
EXEEXT=$ac_cv_exeext
|
||||
ac_exeext=$EXEEXT
|
||||
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+ac_clean_files="$ac_clean_files conftest.out"
|
||||
+# Check that the compiler produces executables we can run. If not, either
|
||||
+# the compiler is broken, or we cross compile.
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
+$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
+if test "$cross_compiling" != yes; then
|
||||
+ { { ac_try="$ac_link"
|
||||
+case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_link") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }
|
||||
+ if { ac_try='./conftest$ac_cv_exeext'
|
||||
+ { { case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_try") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }; }; then
|
||||
+ cross_compiling=no
|
||||
+ else
|
||||
+ if test "$cross_compiling" = maybe; then
|
||||
+ cross_compiling=yes
|
||||
+ else
|
||||
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
+as_fn_error "cannot run C compiled programs.
|
||||
+If you meant to cross compile, use \`--host'.
|
||||
+See \`config.log' for more details." "$LINENO" 5; }
|
||||
+ fi
|
||||
+ fi
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
+$as_echo "$cross_compiling" >&6; }
|
||||
+
|
||||
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
||||
+ac_clean_files=$ac_clean_files_save
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
||||
$as_echo_n "checking for suffix of object files... " >&6; }
|
||||
if test "${ac_cv_objext+set}" = set; then :
|
||||
@@ -4532,86 +4558,41 @@
|
||||
done
|
||||
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
|
||||
-$as_echo_n "checking for cygwin... " >&6; }
|
||||
-if test "${sim_cv_os_cygwin+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif
|
||||
-_ACEOF
|
||||
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
- $EGREP "lose" >/dev/null 2>&1; then :
|
||||
- sim_cv_os_cygwin=yes
|
||||
-else
|
||||
- sim_cv_os_cygwin=no
|
||||
+# Check whether --with-system-readline was given.
|
||||
+if test "${with_system_readline+set}" = set; then :
|
||||
+ withval=$with_system_readline;
|
||||
fi
|
||||
-rm -f conftest*
|
||||
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
|
||||
-$as_echo "$sim_cv_os_cygwin" >&6; }
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5
|
||||
-$as_echo_n "checking for main in -ltermcap... " >&6; }
|
||||
-if test "${ac_cv_lib_termcap_main+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-ltermcap $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
|
||||
+$as_echo_n "checking for readline... " >&6; }
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
-
|
||||
+/* Override any GCC internal prototype to avoid an error.
|
||||
+ Use char because int might match the return type of a GCC
|
||||
+ builtin and then its argument prototype would still apply. */
|
||||
+#ifdef __cplusplus
|
||||
+extern "C"
|
||||
+#endif
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return main ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_termcap_main=yes
|
||||
-else
|
||||
- ac_cv_lib_termcap_main=no
|
||||
-fi
|
||||
-rm -f core conftest.err conftest.$ac_objext \
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5
|
||||
-$as_echo "$ac_cv_lib_termcap_main" >&6; }
|
||||
-if test "x$ac_cv_lib_termcap_main" = x""yes; then :
|
||||
- TERMCAP=-ltermcap
|
||||
-else
|
||||
- TERMCAP=""
|
||||
-fi
|
||||
-
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
|
||||
-$as_echo_n "checking for readline in -lreadline... " >&6; }
|
||||
-if test "${ac_cv_lib_readline_readline+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
+ READLINE=-lreadline
|
||||
else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lreadline $TERMCAP $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
@@ -4620,33 +4601,39 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
-char readline ();
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return readline ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_readline_readline=yes
|
||||
+ READLINE="-lreadline -lncurses"
|
||||
else
|
||||
- ac_cv_lib_readline_readline=no
|
||||
+ as_fn_error "unable to detect readline" "$LINENO" 5
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
+
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
|
||||
-$as_echo "$ac_cv_lib_readline_readline" >&6; }
|
||||
-if test "x$ac_cv_lib_readline_readline" = x""yes; then :
|
||||
- READLINE=-lreadline
|
||||
-else
|
||||
- as_fn_error "the required \"readline\" library is missing" "$LINENO" 5
|
||||
+rm -f core conftest.err conftest.$ac_objext \
|
||||
+ conftest$ac_exeext conftest.$ac_ext
|
||||
+ LIBS="$save_LIBS"
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
|
||||
+$as_echo "$READLINE" >&6; }
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
+else
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
|
||||
-fi
|
||||
+
|
||||
+
|
||||
|
||||
|
||||
ac_sources="$sim_link_files"
|
||||
diff -Naur gdb-7.2.orig/sim/erc32/configure.ac gdb-7.2/sim/erc32/configure.ac
|
||||
--- gdb-7.2.orig/sim/erc32/configure.ac 2006-12-20 23:35:51.000000000 +0100
|
||||
+++ gdb-7.2/sim/erc32/configure.ac 2010-09-03 06:33:15.282478080 +0200
|
||||
@@ -11,27 +11,32 @@
|
||||
|
||||
AC_CHECK_HEADERS(stdlib.h)
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
|
||||
-[AC_EGREP_CPP(lose, [
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
|
||||
+AC_ARG_WITH([system-readline],
|
||||
+ [AS_HELP_STRING([--with-system-readline],
|
||||
+ [use installed readline library])])
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ AC_MSG_CHECKING([for readline])
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE=-lreadline],
|
||||
+ [ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE="-lreadline -lncurses"],
|
||||
+ [AC_MSG_ERROR([unable to detect readline])])
|
||||
+ ])
|
||||
+ LIBS="$save_LIBS"
|
||||
+ AC_MSG_RESULT($READLINE)
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
else
|
||||
- AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
|
||||
-fi
|
||||
-AC_SUBST(TERMCAP)
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
|
||||
- AC_ERROR([the required "readline" library is missing]), $TERMCAP)
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
AC_SUBST(READLINE)
|
||||
+AC_SUBST(READLINE_DEPS)
|
||||
+AC_SUBST(READLINE_CFLAGS)
|
||||
+
|
||||
SIM_AC_OUTPUT
|
||||
diff -Naur gdb-7.2.orig/sim/erc32/erc32.c gdb-7.2/sim/erc32/erc32.c
|
||||
--- gdb-7.2.orig/sim/erc32/erc32.c 2010-05-11 16:18:20.000000000 +0200
|
||||
+++ gdb-7.2/sim/erc32/erc32.c 2010-09-03 06:32:13.730781311 +0200
|
||||
@@ -414,7 +414,7 @@
|
||||
if (rom8) mec_memcfg &= ~0x20000;
|
||||
else mec_memcfg |= 0x20000;
|
||||
|
||||
- mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
+ mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
|
||||
|
||||
if (sparclite_board) {
|
||||
diff -Naur gdb-7.2.orig/sim/erc32/Makefile.in gdb-7.2/sim/erc32/Makefile.in
|
||||
--- gdb-7.2.orig/sim/erc32/Makefile.in 2010-01-01 11:03:28.000000000 +0100
|
||||
+++ gdb-7.2/sim/erc32/Makefile.in 2010-09-03 06:33:01.576353269 +0200
|
||||
@@ -19,12 +19,12 @@
|
||||
|
||||
## COMMON_PRE_CONFIG_FRAG
|
||||
|
||||
-TERMCAP_LIB = @TERMCAP@
|
||||
+# TERMCAP_LIB = -lncurses
|
||||
READLINE_LIB = @READLINE@
|
||||
|
||||
SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
|
||||
SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
|
||||
-SIM_EXTRA_ALL = sis
|
||||
+SIM_EXTRA_ALL = sis$(EXEEXT)
|
||||
SIM_EXTRA_INSTALL = install-sis
|
||||
SIM_EXTRA_CLEAN = clean-sis
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
# `sis' doesn't need interf.o.
|
||||
SIS_OFILES = exec.o erc32.o func.o help.o float.o
|
||||
|
||||
-sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
- $(CC) $(ALL_CFLAGS) -o sis \
|
||||
+sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
+ $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
|
||||
sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
|
||||
|
||||
# FIXME: This computes the build host's endianness, doesn't it?
|
||||
@@ -52,11 +52,11 @@
|
||||
|
||||
# Copy the files into directories where they will be run.
|
||||
install-sis: installdirs
|
||||
- n=`echo sis | sed '$(program_transform_name)'`; \
|
||||
- $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
|
||||
+ n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \
|
||||
+ $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n
|
||||
|
||||
clean-sis:
|
||||
- rm -f sis end end.h
|
||||
+ rm -f sis$(EXEEXT) end end.h
|
||||
|
||||
configure:
|
||||
@echo "Rebuilding configure..."
|
||||
diff -Naur gdb-7.2.orig/sim/h8300/compile.c gdb-7.2/sim/h8300/compile.c
|
||||
--- gdb-7.2.orig/sim/h8300/compile.c 2010-04-14 09:38:04.000000000 +0200
|
||||
+++ gdb-7.2/sim/h8300/compile.c 2010-09-03 06:32:35.424409014 +0200
|
||||
@@ -38,6 +38,12 @@
|
||||
# define SIGTRAP 5
|
||||
#endif
|
||||
|
||||
+#ifdef _WIN32
|
||||
+#ifndef SIGBUS
|
||||
+#define SIGBUS 10
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
int debug;
|
||||
|
||||
host_callback *sim_callback;
|
||||
diff -Naur gdb-7.2.orig/sim/m32c/Makefile.in gdb-7.2/sim/m32c/Makefile.in
|
||||
--- gdb-7.2.orig/sim/m32c/Makefile.in 2010-01-01 11:03:31.000000000 +0100
|
||||
+++ gdb-7.2/sim/m32c/Makefile.in 2010-09-03 06:32:48.480609447 +0200
|
||||
@@ -55,7 +55,7 @@
|
||||
./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
|
||||
|
||||
opc2c : opc2c.o safe-fgets.o
|
||||
- $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $^ -o $@
|
||||
|
||||
sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
|
||||
../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
|
||||
@@ -83,8 +83,10 @@
|
||||
mem.o : mem.h cpu.h syscalls.h
|
||||
misc.o : cpu.h misc.h
|
||||
opc2c.o : safe-fgets.h
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/opc2c.c
|
||||
reg.o : cpu.h
|
||||
safe-fgets.o : safe-fgets.h
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/safe-fgets.c
|
||||
srcdest.c : cpu.h mem.h
|
||||
syscalls.c : cpu.h mem.h syscalls.h
|
||||
|
||||
@@ -1,586 +0,0 @@
|
||||
diff -Naur gdb-7.3.1.orig/gdb/lm32-tdep.c gdb-7.3.1/gdb/lm32-tdep.c
|
||||
--- gdb-7.3.1.orig/gdb/lm32-tdep.c 2011-03-18 19:52:30.000000000 +0100
|
||||
+++ gdb-7.3.1/gdb/lm32-tdep.c 2011-09-05 05:15:58.049769734 +0200
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "regcache.h"
|
||||
#include "trad-frame.h"
|
||||
#include "reggroups.h"
|
||||
-#include "opcodes/lm32-desc.h"
|
||||
+#include "../opcodes/lm32-desc.h"
|
||||
|
||||
#include "gdb_string.h"
|
||||
|
||||
diff -Naur gdb-7.3.1.orig/gdb/sparc-tdep.c gdb-7.3.1/gdb/sparc-tdep.c
|
||||
--- gdb-7.3.1.orig/gdb/sparc-tdep.c 2011-03-18 19:52:32.000000000 +0100
|
||||
+++ gdb-7.3.1/gdb/sparc-tdep.c 2011-09-05 05:15:58.049769734 +0200
|
||||
@@ -1117,7 +1117,7 @@
|
||||
sparc32_store_return_value (struct type *type, struct regcache *regcache,
|
||||
const gdb_byte *valbuf)
|
||||
{
|
||||
- int len = TYPE_LENGTH (type);
|
||||
+ size_t len = TYPE_LENGTH (type);
|
||||
gdb_byte buf[8];
|
||||
|
||||
gdb_assert (!sparc_structure_or_union_p (type));
|
||||
diff -Naur gdb-7.3.1.orig/sim/common/gentmap.c gdb-7.3.1/sim/common/gentmap.c
|
||||
--- gdb-7.3.1.orig/sim/common/gentmap.c 2006-11-07 20:29:59.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/common/gentmap.c 2011-09-05 05:15:58.064769977 +0200
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
|
||||
struct tdefs {
|
||||
char *symbol;
|
||||
diff -Naur gdb-7.3.1.orig/sim/erc32/configure gdb-7.3.1/sim/erc32/configure
|
||||
--- gdb-7.3.1.orig/sim/erc32/configure 2010-01-09 22:11:39.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/erc32/configure 2011-09-05 05:15:58.075770156 +0200
|
||||
@@ -591,8 +591,9 @@
|
||||
ac_subst_vars='LTLIBOBJS
|
||||
LIBOBJS
|
||||
cgen_breaks
|
||||
+READLINE_CFLAGS
|
||||
+READLINE_DEPS
|
||||
READLINE
|
||||
-TERMCAP
|
||||
REPORT_BUGS_TEXI
|
||||
REPORT_BUGS_TO
|
||||
PKGVERSION
|
||||
@@ -716,6 +717,7 @@
|
||||
enable_sim_profile
|
||||
with_pkgversion
|
||||
with_bugurl
|
||||
+with_system_readline
|
||||
'
|
||||
ac_precious_vars='build_alias
|
||||
host_alias
|
||||
@@ -1358,6 +1360,7 @@
|
||||
--with-zlib include zlib support (auto/yes/no) default=auto
|
||||
--with-pkgversion=PKG Use PKG in the version string in place of "GDB"
|
||||
--with-bugurl=URL Direct users to URL to report a bug
|
||||
+ --with-system-readline use installed readline library
|
||||
|
||||
Some influential environment variables:
|
||||
CC C compiler command
|
||||
@@ -2416,7 +2419,6 @@
|
||||
|
||||
|
||||
|
||||
-
|
||||
# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
|
||||
# it by inlining the macro's contents.
|
||||
# This file contains common code used by all simulators.
|
||||
@@ -2916,18 +2918,18 @@
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-
|
||||
+return 0;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
ac_clean_files_save=$ac_clean_files
|
||||
-ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
|
||||
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
||||
# Try to create an executable without -o first, disregard a.out.
|
||||
# It will help us diagnose broken compilers, and finding out an intuition
|
||||
# of exeext.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
-$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
+$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
||||
|
||||
# The possible output files:
|
||||
@@ -2989,10 +2991,10 @@
|
||||
else
|
||||
ac_file=''
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
-$as_echo "$ac_file" >&6; }
|
||||
if test -z "$ac_file"; then :
|
||||
- $as_echo "$as_me: failed program was:" >&5
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||
+$as_echo "no" >&6; }
|
||||
+$as_echo "$as_me: failed program was:" >&5
|
||||
sed 's/^/| /' conftest.$ac_ext >&5
|
||||
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
@@ -3000,51 +3002,18 @@
|
||||
{ as_fn_set_status 77
|
||||
as_fn_error "C compiler cannot create executables
|
||||
See \`config.log' for more details." "$LINENO" 5; }; }
|
||||
+else
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
+$as_echo "yes" >&6; }
|
||||
fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
||||
+$as_echo_n "checking for C compiler default output file name... " >&6; }
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
||||
+$as_echo "$ac_file" >&6; }
|
||||
ac_exeext=$ac_cv_exeext
|
||||
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
||||
-$as_echo_n "checking whether the C compiler works... " >&6; }
|
||||
-# If not cross compiling, check that we can run a simple program.
|
||||
-if test "$cross_compiling" != yes; then
|
||||
- if { ac_try='./$ac_file'
|
||||
- { { case "(($ac_try" in
|
||||
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
- *) ac_try_echo=$ac_try;;
|
||||
-esac
|
||||
-eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
-$as_echo "$ac_try_echo"; } >&5
|
||||
- (eval "$ac_try") 2>&5
|
||||
- ac_status=$?
|
||||
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
- test $ac_status = 0; }; }; then
|
||||
- cross_compiling=no
|
||||
- else
|
||||
- if test "$cross_compiling" = maybe; then
|
||||
- cross_compiling=yes
|
||||
- else
|
||||
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
-as_fn_error "cannot run C compiled programs.
|
||||
-If you meant to cross compile, use \`--host'.
|
||||
-See \`config.log' for more details." "$LINENO" 5; }
|
||||
- fi
|
||||
- fi
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
-$as_echo "yes" >&6; }
|
||||
-
|
||||
-rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
|
||||
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
||||
ac_clean_files=$ac_clean_files_save
|
||||
-# Check that the compiler produces executables we can run. If not, either
|
||||
-# the compiler is broken, or we cross compile.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
-$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
-$as_echo "$cross_compiling" >&6; }
|
||||
-
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
||||
$as_echo_n "checking for suffix of executables... " >&6; }
|
||||
if { { ac_try="$ac_link"
|
||||
@@ -3084,6 +3053,63 @@
|
||||
rm -f conftest.$ac_ext
|
||||
EXEEXT=$ac_cv_exeext
|
||||
ac_exeext=$EXEEXT
|
||||
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+/* end confdefs.h. */
|
||||
+
|
||||
+int
|
||||
+main ()
|
||||
+{
|
||||
+
|
||||
+ ;
|
||||
+ return 0;
|
||||
+}
|
||||
+_ACEOF
|
||||
+ac_clean_files="$ac_clean_files conftest.out"
|
||||
+# Check that the compiler produces executables we can run. If not, either
|
||||
+# the compiler is broken, or we cross compile.
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
||||
+$as_echo_n "checking whether we are cross compiling... " >&6; }
|
||||
+if test "$cross_compiling" != yes; then
|
||||
+ { { ac_try="$ac_link"
|
||||
+case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_link") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }
|
||||
+ if { ac_try='./conftest$ac_cv_exeext'
|
||||
+ { { case "(($ac_try" in
|
||||
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
||||
+ *) ac_try_echo=$ac_try;;
|
||||
+esac
|
||||
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
||||
+$as_echo "$ac_try_echo"; } >&5
|
||||
+ (eval "$ac_try") 2>&5
|
||||
+ ac_status=$?
|
||||
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
+ test $ac_status = 0; }; }; then
|
||||
+ cross_compiling=no
|
||||
+ else
|
||||
+ if test "$cross_compiling" = maybe; then
|
||||
+ cross_compiling=yes
|
||||
+ else
|
||||
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
+as_fn_error "cannot run C compiled programs.
|
||||
+If you meant to cross compile, use \`--host'.
|
||||
+See \`config.log' for more details." "$LINENO" 5; }
|
||||
+ fi
|
||||
+ fi
|
||||
+fi
|
||||
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
||||
+$as_echo "$cross_compiling" >&6; }
|
||||
+
|
||||
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
||||
+ac_clean_files=$ac_clean_files_save
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
||||
$as_echo_n "checking for suffix of object files... " >&6; }
|
||||
if test "${ac_cv_objext+set}" = set; then :
|
||||
@@ -4532,86 +4558,41 @@
|
||||
done
|
||||
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
|
||||
-$as_echo_n "checking for cygwin... " >&6; }
|
||||
-if test "${sim_cv_os_cygwin+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
-/* end confdefs.h. */
|
||||
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif
|
||||
-_ACEOF
|
||||
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
- $EGREP "lose" >/dev/null 2>&1; then :
|
||||
- sim_cv_os_cygwin=yes
|
||||
-else
|
||||
- sim_cv_os_cygwin=no
|
||||
+# Check whether --with-system-readline was given.
|
||||
+if test "${with_system_readline+set}" = set; then :
|
||||
+ withval=$with_system_readline;
|
||||
fi
|
||||
-rm -f conftest*
|
||||
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
|
||||
-$as_echo "$sim_cv_os_cygwin" >&6; }
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5
|
||||
-$as_echo_n "checking for main in -ltermcap... " >&6; }
|
||||
-if test "${ac_cv_lib_termcap_main+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
-else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-ltermcap $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
|
||||
+$as_echo_n "checking for readline... " >&6; }
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
-
|
||||
+/* Override any GCC internal prototype to avoid an error.
|
||||
+ Use char because int might match the return type of a GCC
|
||||
+ builtin and then its argument prototype would still apply. */
|
||||
+#ifdef __cplusplus
|
||||
+extern "C"
|
||||
+#endif
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return main ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_termcap_main=yes
|
||||
-else
|
||||
- ac_cv_lib_termcap_main=no
|
||||
-fi
|
||||
-rm -f core conftest.err conftest.$ac_objext \
|
||||
- conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
-fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5
|
||||
-$as_echo "$ac_cv_lib_termcap_main" >&6; }
|
||||
-if test "x$ac_cv_lib_termcap_main" = x""yes; then :
|
||||
- TERMCAP=-ltermcap
|
||||
-else
|
||||
- TERMCAP=""
|
||||
-fi
|
||||
-
|
||||
-fi
|
||||
-
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
|
||||
-$as_echo_n "checking for readline in -lreadline... " >&6; }
|
||||
-if test "${ac_cv_lib_readline_readline+set}" = set; then :
|
||||
- $as_echo_n "(cached) " >&6
|
||||
+ READLINE=-lreadline
|
||||
else
|
||||
- ac_check_lib_save_LIBS=$LIBS
|
||||
-LIBS="-lreadline $TERMCAP $LIBS"
|
||||
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
+ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
@@ -4620,33 +4601,39 @@
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
-char readline ();
|
||||
+char add_history ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
-return readline ();
|
||||
+return add_history ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
- ac_cv_lib_readline_readline=yes
|
||||
+ READLINE="-lreadline -lncurses"
|
||||
else
|
||||
- ac_cv_lib_readline_readline=no
|
||||
+ as_fn_error "unable to detect readline" "$LINENO" 5
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
-LIBS=$ac_check_lib_save_LIBS
|
||||
+
|
||||
fi
|
||||
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
|
||||
-$as_echo "$ac_cv_lib_readline_readline" >&6; }
|
||||
-if test "x$ac_cv_lib_readline_readline" = x""yes; then :
|
||||
- READLINE=-lreadline
|
||||
-else
|
||||
- as_fn_error "the required \"readline\" library is missing" "$LINENO" 5
|
||||
+rm -f core conftest.err conftest.$ac_objext \
|
||||
+ conftest$ac_exeext conftest.$ac_ext
|
||||
+ LIBS="$save_LIBS"
|
||||
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
|
||||
+$as_echo "$READLINE" >&6; }
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
+else
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
|
||||
-fi
|
||||
+
|
||||
+
|
||||
|
||||
|
||||
ac_sources="$sim_link_files"
|
||||
diff -Naur gdb-7.3.1.orig/sim/erc32/configure.ac gdb-7.3.1/sim/erc32/configure.ac
|
||||
--- gdb-7.3.1.orig/sim/erc32/configure.ac 2006-12-20 23:35:51.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/erc32/configure.ac 2011-09-05 05:15:58.075770156 +0200
|
||||
@@ -11,27 +11,32 @@
|
||||
|
||||
AC_CHECK_HEADERS(stdlib.h)
|
||||
|
||||
-# In the Cygwin environment, we need some additional flags.
|
||||
-AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
|
||||
-[AC_EGREP_CPP(lose, [
|
||||
-#ifdef __CYGWIN__
|
||||
-lose
|
||||
-#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
|
||||
+AC_ARG_WITH([system-readline],
|
||||
+ [AS_HELP_STRING([--with-system-readline],
|
||||
+ [use installed readline library])])
|
||||
|
||||
-if test x$sim_cv_os_cygwin = xyes; then
|
||||
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
|
||||
+if test "$with_system_readline" = yes; then
|
||||
+ AC_MSG_CHECKING([for readline])
|
||||
+ save_LIBS="$LIBS"
|
||||
+ LIBS="-lreadline $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE=-lreadline],
|
||||
+ [ LIBS="-lreadline -lncurses $save_LIBS"
|
||||
+ AC_LINK_IFELSE([AC_LANG_CALL([],
|
||||
+ [add_history])], [READLINE="-lreadline -lncurses"],
|
||||
+ [AC_MSG_ERROR([unable to detect readline])])
|
||||
+ ])
|
||||
+ LIBS="$save_LIBS"
|
||||
+ AC_MSG_RESULT($READLINE)
|
||||
+ READLINE_DEPS=
|
||||
+ READLINE_CFLAGS=
|
||||
else
|
||||
- AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
|
||||
-fi
|
||||
-AC_SUBST(TERMCAP)
|
||||
-
|
||||
-# We prefer the in-tree readline. Top-level dependencies make sure
|
||||
-# src/readline (if it's there) is configured before src/sim.
|
||||
-if test -r ../../readline/Makefile; then
|
||||
- READLINE=../../readline/libreadline.a
|
||||
-else
|
||||
- AC_CHECK_LIB(readline, readline, READLINE=-lreadline,
|
||||
- AC_ERROR([the required "readline" library is missing]), $TERMCAP)
|
||||
+ READLINE='../../readline/libreadline.a -lncurses'
|
||||
+ READLINE_DEPS='$(READLINE)'
|
||||
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
|
||||
fi
|
||||
AC_SUBST(READLINE)
|
||||
+AC_SUBST(READLINE_DEPS)
|
||||
+AC_SUBST(READLINE_CFLAGS)
|
||||
+
|
||||
SIM_AC_OUTPUT
|
||||
diff -Naur gdb-7.3.1.orig/sim/erc32/erc32.c gdb-7.3.1/sim/erc32/erc32.c
|
||||
--- gdb-7.3.1.orig/sim/erc32/erc32.c 2010-05-11 16:18:20.000000000 +0200
|
||||
+++ gdb-7.3.1/sim/erc32/erc32.c 2011-09-05 05:15:58.076770172 +0200
|
||||
@@ -414,7 +414,7 @@
|
||||
if (rom8) mec_memcfg &= ~0x20000;
|
||||
else mec_memcfg |= 0x20000;
|
||||
|
||||
- mem_ramsz = (256 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
+ mem_ramsz = (512 * 1024) << ((mec_memcfg >> 10) & 7);
|
||||
mem_romsz = (128 * 1024) << ((mec_memcfg >> 18) & 7);
|
||||
|
||||
if (sparclite_board) {
|
||||
diff -Naur gdb-7.3.1.orig/sim/erc32/Makefile.in gdb-7.3.1/sim/erc32/Makefile.in
|
||||
--- gdb-7.3.1.orig/sim/erc32/Makefile.in 2011-01-01 16:33:58.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/erc32/Makefile.in 2011-09-05 05:15:58.076770172 +0200
|
||||
@@ -19,12 +19,12 @@
|
||||
|
||||
## COMMON_PRE_CONFIG_FRAG
|
||||
|
||||
-TERMCAP_LIB = @TERMCAP@
|
||||
+# TERMCAP_LIB = -lncurses
|
||||
READLINE_LIB = @READLINE@
|
||||
|
||||
SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
|
||||
SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
|
||||
-SIM_EXTRA_ALL = sis
|
||||
+SIM_EXTRA_ALL = sis$(EXEEXT)
|
||||
SIM_EXTRA_INSTALL = install-sis
|
||||
SIM_EXTRA_CLEAN = clean-sis
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
# `sis' doesn't need interf.o.
|
||||
SIS_OFILES = exec.o erc32.o func.o help.o float.o
|
||||
|
||||
-sis: sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
- $(CC) $(ALL_CFLAGS) -o sis \
|
||||
+sis$(EXEEXT): sis.o $(SIS_OFILES) $(COMMON_OBJS) $(LIBDEPS)
|
||||
+ $(CC) $(ALL_CFLAGS) -o sis$(EXEEXT) \
|
||||
sis.o $(SIS_OFILES) $(COMMON_OBJS) $(EXTRA_LIBS)
|
||||
|
||||
# FIXME: This computes the build host's endianness, doesn't it?
|
||||
@@ -52,11 +52,11 @@
|
||||
|
||||
# Copy the files into directories where they will be run.
|
||||
install-sis: installdirs
|
||||
- n=`echo sis | sed '$(program_transform_name)'`; \
|
||||
- $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
|
||||
+ n=`echo sis$(EXEEXT) | sed '$(program_transform_name)'`; \
|
||||
+ $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n
|
||||
|
||||
clean-sis:
|
||||
- rm -f sis end end.h
|
||||
+ rm -f sis$(EXEEXT) end end.h
|
||||
|
||||
configure:
|
||||
@echo "Rebuilding configure..."
|
||||
diff -Naur gdb-7.3.1.orig/sim/h8300/compile.c gdb-7.3.1/sim/h8300/compile.c
|
||||
--- gdb-7.3.1.orig/sim/h8300/compile.c 2011-01-11 15:19:32.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/h8300/compile.c 2011-09-05 05:15:58.085770319 +0200
|
||||
@@ -38,6 +38,12 @@
|
||||
# define SIGTRAP 5
|
||||
#endif
|
||||
|
||||
+#ifdef _WIN32
|
||||
+#ifndef SIGBUS
|
||||
+#define SIGBUS 10
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
int debug;
|
||||
|
||||
host_callback *sim_callback;
|
||||
diff -Naur gdb-7.3.1.orig/sim/m32c/Makefile.in gdb-7.3.1/sim/m32c/Makefile.in
|
||||
--- gdb-7.3.1.orig/sim/m32c/Makefile.in 2011-01-01 16:34:01.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/m32c/Makefile.in 2011-09-05 05:15:58.098770530 +0200
|
||||
@@ -56,7 +56,7 @@
|
||||
./opc2c -l m32c.out $(srcdir)/m32c.opc > m32c.c
|
||||
|
||||
opc2c : opc2c.o safe-fgets.o
|
||||
- $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(BUILD_LDFLAGS) $^ -o $@ $(BUILD_LIBS)
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $^ -o $@ $(BUILD_LIBS)
|
||||
|
||||
sample.x : $(srcdir)/sample.S $(srcdir)/sample.ld
|
||||
../../gcc/xgcc $(CPUFLAGS) -B../../gcc/ -c $(srcdir)/sample.S -o sample.o
|
||||
@@ -90,8 +90,8 @@
|
||||
r8c.o : cpu.h mem.h misc.h int.h
|
||||
|
||||
opc2c.o : opc2c.c safe-fgets.h
|
||||
- $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/opc2c.c
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/opc2c.c
|
||||
|
||||
safe-fgets.o : safe-fgets.c safe-fgets.h
|
||||
- $(CC_FOR_BUILD) $(BUILD_CFLAGS) -c $(srcdir)/safe-fgets.c
|
||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -o $@ -c $(srcdir)/safe-fgets.c
|
||||
|
||||
diff -Naur gdb-7.3.1.orig/sim/ppc/device.c gdb-7.3.1/sim/ppc/device.c
|
||||
--- gdb-7.3.1.orig/sim/ppc/device.c 2011-02-14 06:14:27.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/ppc/device.c 2011-09-05 05:15:58.112770758 +0200
|
||||
@@ -1816,7 +1816,7 @@
|
||||
/* I/O */
|
||||
|
||||
EXTERN_DEVICE\
|
||||
-(void volatile)
|
||||
+(void)
|
||||
device_error(device *me,
|
||||
const char *fmt,
|
||||
...)
|
||||
diff -Naur gdb-7.3.1.orig/sim/ppc/device.h gdb-7.3.1/sim/ppc/device.h
|
||||
--- gdb-7.3.1.orig/sim/ppc/device.h 2001-12-14 01:22:12.000000000 +0100
|
||||
+++ gdb-7.3.1/sim/ppc/device.h 2011-09-05 05:15:58.112770758 +0200
|
||||
@@ -727,7 +727,7 @@
|
||||
*/
|
||||
|
||||
EXTERN_DEVICE\
|
||||
-(void volatile) device_error
|
||||
+(void) device_error
|
||||
(device *me,
|
||||
const char *fmt,
|
||||
...) __attribute__ ((format (printf, 2, 3)));
|
||||
diff -Naur gdb-7.3.1.orig/sim/ppc/hw_glue.c gdb-7.3.1/sim/ppc/hw_glue.c
|
||||
--- gdb-7.3.1.orig/sim/ppc/hw_glue.c 1999-04-16 03:35:09.000000000 +0200
|
||||
+++ gdb-7.3.1/sim/ppc/hw_glue.c 2011-09-05 05:15:58.112770758 +0200
|
||||
@@ -194,13 +194,13 @@
|
||||
if (glue->sizeof_output == 0)
|
||||
device_error(me, "at least one reg property size must be nonzero");
|
||||
if (glue->sizeof_output % sizeof(unsigned_word) != 0)
|
||||
- device_error(me, "reg property size must be %d aligned", sizeof(unsigned_word));
|
||||
+ device_error(me, "reg property size must be %zd aligned", sizeof(unsigned_word));
|
||||
/* and the address */
|
||||
device_address_to_attach_address(device_parent(me),
|
||||
&unit.address, &glue->space, &glue->address,
|
||||
me);
|
||||
if (glue->address % (sizeof(unsigned_word) * max_nr_interrupts) != 0)
|
||||
- device_error(me, "reg property address must be %d aligned",
|
||||
+ device_error(me, "reg property address must be %zd aligned",
|
||||
sizeof(unsigned_word) * max_nr_interrupts);
|
||||
glue->nr_outputs = glue->sizeof_output / sizeof(unsigned_word);
|
||||
glue->output = zalloc(glue->sizeof_output);
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,17 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
SUBDIRS =
|
||||
SUBDIRS += arm
|
||||
SUBDIRS += avr
|
||||
SUBDIRS += bfin
|
||||
SUBDIRS += h8300
|
||||
SUBDIRS += i386
|
||||
SUBDIRS += lm32
|
||||
SUBDIRS += m32c
|
||||
SUBDIRS += m32r
|
||||
SUBDIRS += m68k
|
||||
SUBDIRS += mips
|
||||
SUBDIRS += mipstx39
|
||||
SUBDIRS += powerpc
|
||||
SUBDIRS += sh
|
||||
SUBDIRS += sparc
|
||||
@@ -1,27 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = arm-rtems4.10
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.20.1
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 3
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.4.6
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 4
|
||||
|
||||
NEWLIB_VERS = 1.18.0
|
||||
NEWLIB_PKGVERS = $(NEWLIB_VERS)
|
||||
NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=cxx
|
||||
|
||||
GDB_VERS = 7.2
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 2
|
||||
include ../gdb.am
|
||||
GDB_OPTS +=
|
||||
@@ -1,2 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
|
||||
@@ -1,41 +0,0 @@
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-core-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_fortran
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 5}
|
||||
|
||||
%endif
|
||||
%if %build_newlib
|
||||
%if "%{newlib_version}" == "1.18.0"
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
%endif
|
||||
@@ -1,9 +0,0 @@
|
||||
%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.10-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.10/gdb-7.1-rtems4.10-20100812.diff
|
||||
%endif
|
||||
|
||||
@@ -1,268 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 binutils_pkgvers 2.20.1
|
||||
%define binutils_version 2.20.1
|
||||
%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
|
||||
|
||||
Name: rtems-4.10-arm-rtems4.10-binutils
|
||||
Summary: Binutils for target arm-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{binutils_rpmvers}
|
||||
Release: 3%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{binutils_version}" >= "2.18"
|
||||
# Bug in bfd: Doesn't build without texinfo installed
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
|
||||
Requires: rtems-4.10-binutils-common
|
||||
|
||||
Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
|
||||
|
||||
%description
|
||||
Cross binutils for target arm-rtems4.10
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd binutils-%{binutils_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../binutils-%{binutils_pkgvers}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=arm-rtems4.10 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--exec-prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
||||
install-info
|
||||
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-dlltool%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-dlltool*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-nlmconv%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-nlmconv*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-windres%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-windres*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/arm-rtems4.10-windmc%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/arm-rtems4.10-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# arm-rtems4.10-binutils
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-arm-rtems4.10-binutils
|
||||
# Summary: rtems binutils for arm-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-binutils-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-arm-rtems4.10-binutils
|
||||
GNU binutils targetting arm-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-arm-rtems4.10-binutils
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_datarootdir}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/arm-rtems4.10-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/arm-rtems4.10-*
|
||||
|
||||
%dir %{_exec_prefix}/arm-rtems4.10
|
||||
%dir %{_exec_prefix}/arm-rtems4.10/bin
|
||||
%{_exec_prefix}/arm-rtems4.10/bin/*
|
||||
|
||||
%dir %{_exec_prefix}/arm-rtems4.10/lib
|
||||
%{_exec_prefix}/arm-rtems4.10/lib/ldscripts
|
||||
# ==============================================================
|
||||
# rtems-4.10-binutils-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-binutils-common
|
||||
Summary: Base package for RTEMS binutils
|
||||
Group: Development/Tools
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-binutils-common
|
||||
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the base for binutils regardless of target CPU.
|
||||
|
||||
%post -n rtems-4.10-binutils-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-binutils-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n rtems-4.10-binutils-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/as.info*
|
||||
%{_infodir}/bfd.info*
|
||||
%{_infodir}/binutils.info*
|
||||
%{_infodir}/ld.info*
|
||||
%{_infodir}/standards.info*
|
||||
%{_infodir}/gprof.info*
|
||||
|
||||
%dir %{_prefix}/share
|
||||
%dir %{_prefix}/share/locale
|
||||
|
||||
@@ -1,874 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 gcc_pkgvers 4.4.6
|
||||
%define gcc_version 4.4.6
|
||||
%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
|
||||
|
||||
%define newlib_pkgvers 1.18.0
|
||||
%define newlib_version 1.18.0
|
||||
|
||||
Name: rtems-4.10-arm-rtems4.10-gcc
|
||||
Summary: arm-rtems4.10 gcc
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
Release: 4%{?dist}
|
||||
License: GPL
|
||||
URL: http://gcc.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
||||
%bcond_with lto
|
||||
|
||||
# FIXME: Disable python gdb scripts
|
||||
# ATM, no idea how to package them
|
||||
%bcond_with pygdb
|
||||
|
||||
# FIXME: Disable GCC-plugin
|
||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
||||
%bcond_with plugin
|
||||
|
||||
# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
|
||||
# Should be applicable to gcc >= 4.5.0
|
||||
%bcond_with gcc_stdint
|
||||
|
||||
# versions of libraries, we conditionally bundle if necessary
|
||||
%global mpc_version 0.8.1
|
||||
%global mpfr_version 2.4.2
|
||||
%global gmp_version 4.3.2
|
||||
%global libelf_version 0.8.13
|
||||
|
||||
# versions of libraries these distros are known to ship
|
||||
%if 0%{?fc16}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc15}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc14}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el6}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el5}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided %{nil}
|
||||
%global gmp_provided 4.1.4
|
||||
%endif
|
||||
|
||||
%if 0%{?suse12_1}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.1
|
||||
%global gmp_provided 5.0.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_3}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_4}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 5.0.1
|
||||
%endif
|
||||
|
||||
%if 0%{?cygwin}
|
||||
%global mpc_provided 0.8
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?mingw32}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%define gmp_required 4.1
|
||||
%define mpfr_required 2.3.1
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.3"
|
||||
%define cloog_required 0.15
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.4.0"
|
||||
%define mpfr_required 2.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%define mpc_required 0.8
|
||||
%if %{with lto}
|
||||
%define libelf_required 0.8.12
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined mpc_required}
|
||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpc 1
|
||||
%define gmp_required 4.2
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined gmp_required}
|
||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
||||
BuildRequires: gmp-devel >= %{gmp_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_gmp 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined libelf_required}
|
||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
||||
BuildRequires: libelf-devel >= %{libelf_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_libelf 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined cloog_required}
|
||||
%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%{?suse11_3:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined mpfr_required}
|
||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpfr 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: rtems-4.10-arm-rtems4.10-gcc = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
# Not strictly required, but patches may introduce a need to use them.
|
||||
# For reasons of simplicity, always require them.
|
||||
BuildRequires: flex bison
|
||||
|
||||
BuildRequires: texinfo >= 4.2
|
||||
BuildRequires: rtems-4.10-arm-rtems4.10-binutils
|
||||
|
||||
Requires: rtems-4.10-gcc-common
|
||||
Requires: rtems-4.10-arm-rtems4.10-binutils
|
||||
Requires: rtems-4.10-arm-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
||||
Requires: rtems-4.10-arm-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
BuildRequires: zlib-devel
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
||||
%endif
|
||||
%else
|
||||
%endif
|
||||
|
||||
%global _gcclibdir %{_prefix}/lib
|
||||
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-core-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%if "%{newlib_version}" == "1.18.0"
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross gcc for arm-rtems4.10.
|
||||
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a1
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
%{?PATCH1:%patch1 -p1}
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%if %{with gcc_stdint}
|
||||
sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
|
||||
%endif
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a50
|
||||
cd newlib-%{newlib_version}
|
||||
%{?PATCH50:%patch50 -p1}
|
||||
cd ..
|
||||
# Copy the C library into gcc's source tree
|
||||
ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
|
||||
%if %{with gcc_stdint}
|
||||
rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
|
||||
%endif
|
||||
# Make sure not to be using GPL'ed sources
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
%setup -q -T -D -n %{name}-%{version} -a60
|
||||
%{?PATCH60:%patch60 -p1}
|
||||
# Build mpfr one-tree style
|
||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
%setup -q -T -D -n %{name}-%{version} -a61
|
||||
%{?PATCH61:%patch61 -p1}
|
||||
# Build mpc one-tree style
|
||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
%setup -q -T -D -n %{name}-%{version} -a62
|
||||
%{?PATCH62:%patch62 -p1}
|
||||
# Build gmp one-tree style
|
||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
%setup -q -T -D -n %{name}-%{version} -a63
|
||||
%{?PATCH63:%patch63 -p1}
|
||||
# Build libelf one-tree style
|
||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
||||
%endif
|
||||
|
||||
echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
|
||||
|
||||
|
||||
# Fix timestamps
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
contrib/gcc_update --touch
|
||||
cd ..
|
||||
%build
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
languages="c"
|
||||
languages="$languages,c++"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
||||
%else
|
||||
# gcc is not ready to be compiled with -std=gnu99
|
||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||
%endif
|
||||
../gcc-%{gcc_pkgvers}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--exec_prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_gcclibdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--datadir=%{_datadir} \
|
||||
--build=%_build --host=%_host \
|
||||
--target=arm-rtems4.10 \
|
||||
--disable-libstdcxx-pch \
|
||||
--with-gnu-as --with-gnu-ld --verbose \
|
||||
--with-newlib \
|
||||
--with-system-zlib \
|
||||
--disable-nls --without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--enable-threads \
|
||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
||||
--enable-newlib-io-c99-formats \
|
||||
--enable-languages="$languages"
|
||||
|
||||
%if "%_host" != "%_build"
|
||||
# Bug in gcc-3.2.1:
|
||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
||||
mkdir -p gcc/include
|
||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
cd build/arm-rtems4.10/newlib
|
||||
make DESTDIR=$RPM_BUILD_ROOT install-info
|
||||
cd ../../..
|
||||
|
||||
%if "%{gcc_version}" <= "4.1.2"
|
||||
# Misplaced header file
|
||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include/
|
||||
fi
|
||||
%endif
|
||||
|
||||
# host library
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
# libiberty doesn't honor --libdir, but always installs to a
|
||||
# magically guessed _libdir
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||
%else
|
||||
# libiberty installs to --libdir=...
|
||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
||||
%endif
|
||||
|
||||
# We use the version from binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/arm-rtems4.10-c++filt%{_exeext}
|
||||
|
||||
|
||||
# We don't ship info/dir
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# We don't want libffi's man-pages
|
||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
|
||||
|
||||
# Bug in gcc-3.4.0pre
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/arm-rtems4.10-arm-rtems4.10-gcjh%{_exeext}
|
||||
|
||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
||||
# the fixinclude-install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/install-tools
|
||||
|
||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/arm-rtems4.10/include/bits; then
|
||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/arm-rtems4.10/include/bits
|
||||
fi
|
||||
|
||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
||||
%if ! %{with pygdb}
|
||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
||||
fi
|
||||
%endif
|
||||
|
||||
# Collect multilib subdirectories
|
||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
||||
|
||||
echo "%defattr(-,root,root,-)" > build/files.newlib
|
||||
TGTDIR="%{_exec_prefix}/arm-rtems4.10/lib"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) echo "%dir ${TGTDIR}" >> build/files.newlib
|
||||
;;
|
||||
*) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rm -f dirs ;
|
||||
echo "%defattr(-,root,root,-)" >> dirs
|
||||
TGTDIR="%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) ;; # ignore, handled elsewhere
|
||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Collect files to go into different packages
|
||||
cp dirs build/files.gcc
|
||||
cp dirs build/files.gfortran
|
||||
cp dirs build/files.objc
|
||||
cp dirs build/files.gcj
|
||||
cp dirs build/files.g++
|
||||
|
||||
TGTDIR="%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
||||
*f771) ;;
|
||||
*f951) ;;
|
||||
*cc1) ;;
|
||||
*cc1obj) ;;
|
||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
||||
*collect2) ;;
|
||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
||||
*include/objc*) ;;
|
||||
*include/g++*);;
|
||||
*include/c++*);;
|
||||
*include-fixed/*);;
|
||||
*finclude/*);;
|
||||
*adainclude*);;
|
||||
*adalib*);;
|
||||
*gnat1);;
|
||||
*jc1) ;;
|
||||
*jvgenmain) ;;
|
||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*) echo "$i" >> build/files.gcc ;;
|
||||
esac
|
||||
done
|
||||
|
||||
TGTDIR="%{_exec_prefix}/arm-rtems4.10/lib"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
||||
# all other files belong to newlib
|
||||
*) echo "$i" >> build/files.newlib ;;
|
||||
esac
|
||||
done
|
||||
# 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}-%{gcc_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/arm-rtems4.10/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/arm-rtems4.10/'} | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/arm-rtems4.10/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/arm-rtems4.10/'} | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
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
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-arm-rtems4.10-gcc
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-arm-rtems4.10-gcc
|
||||
# Summary: GNU cc compiler for arm-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# Version: %{gcc_rpmvers}
|
||||
# Requires: rtems-4.10-arm-rtems4.10-binutils
|
||||
# Requires: rtems-4.10-arm-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
# License: GPL
|
||||
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-gcc-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-arm-rtems4.10-gcc
|
||||
GNU cc compiler for arm-rtems4.10.
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-arm-rtems4.10-gcc-libgcc
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-arm-rtems4.10-gcc-libgcc
|
||||
Summary: libgcc for arm-rtems4.10-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
Requires: rtems-4.10-arm-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
License: GPL
|
||||
|
||||
%description -n rtems-4.10-arm-rtems4.10-gcc-libgcc
|
||||
libgcc arm-rtems4.10-gcc.
|
||||
|
||||
|
||||
%files -n rtems-4.10-arm-rtems4.10-gcc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/arm-rtems4.10-gcc.1*
|
||||
%{_mandir}/man1/arm-rtems4.10-cpp.1*
|
||||
%{_mandir}/man1/arm-rtems4.10-gcov.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/arm-rtems4.10-cpp%{_exeext}
|
||||
%{_bindir}/arm-rtems4.10-gcc%{_exeext}
|
||||
%{_bindir}/arm-rtems4.10-gcc-%{gcc_version}%{_exeext}
|
||||
%{_bindir}/arm-rtems4.10-gcov%{_exeext}
|
||||
%if "%{gcc_version}" < "4.6.0"
|
||||
%{_bindir}/arm-rtems4.10-gccbug
|
||||
%endif
|
||||
|
||||
%dir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/arm-rtems4.10
|
||||
%dir %{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}
|
||||
%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/cc1%{_exeext}
|
||||
%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/collect2%{_exeext}
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%{?with_lto:%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/lto%{_exeext}}
|
||||
%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
|
||||
%endif
|
||||
|
||||
%files -n rtems-4.10-arm-rtems4.10-gcc-libgcc -f build/files.gcc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/arm-rtems4.10
|
||||
%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include
|
||||
|
||||
%if "%{gcc_version}" > "4.0.3"
|
||||
%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include/ssp
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include-fixed
|
||||
%endif
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-gcc-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-gcc-common
|
||||
Summary: Base package for rtems gcc and newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-gcc-common
|
||||
GCC files that are shared by all targets.
|
||||
|
||||
%files -n rtems-4.10-gcc-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/cpp.info*
|
||||
%{_infodir}/cppinternals.info*
|
||||
%{_infodir}/gcc.info*
|
||||
%{_infodir}/gccint.info*
|
||||
%{_infodir}/gccinstall.info*
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man7
|
||||
%{_mandir}/man7/fsf-funding.7*
|
||||
%{_mandir}/man7/gfdl.7*
|
||||
%{_mandir}/man7/gpl.7*
|
||||
|
||||
%post -n rtems-4.10-gcc-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-gcc-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
fi
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-arm-rtems4.10-gcc-c++
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-arm-rtems4.10-gcc-c++
|
||||
Summary: GCC c++ compiler for arm-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
Requires: rtems-4.10-arm-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: rtems-4.10-arm-rtems4.10-gcc-c++ = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
Requires: rtems-4.10-gcc-common
|
||||
Requires: rtems-4.10-arm-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n rtems-4.10-arm-rtems4.10-gcc-c++
|
||||
GCC c++ compiler for arm-rtems4.10.
|
||||
|
||||
|
||||
%package -n rtems-4.10-arm-rtems4.10-gcc-libstdc++
|
||||
Summary: libstdc++ for arm-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
%description -n rtems-4.10-arm-rtems4.10-gcc-libstdc++
|
||||
%{summary}
|
||||
|
||||
|
||||
%files -n rtems-4.10-arm-rtems4.10-gcc-c++
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/arm-rtems4.10-g++.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/arm-rtems4.10-c++%{_exeext}
|
||||
%{_bindir}/arm-rtems4.10-g++%{_exeext}
|
||||
|
||||
%dir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/arm-rtems4.10
|
||||
%dir %{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}
|
||||
%{_libexecdir}/gcc/arm-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
|
||||
|
||||
|
||||
%files -n rtems-4.10-arm-rtems4.10-gcc-libstdc++ -f build/files.g++
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/arm-rtems4.10
|
||||
%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include
|
||||
%{_gcclibdir}/gcc/arm-rtems4.10/%{gcc_version}/include/c++
|
||||
|
||||
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-arm-rtems4.10-newlib
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-arm-rtems4.10-newlib
|
||||
Summary: C Library (newlib) for arm-rtems4.10
|
||||
Group: Development/Tools
|
||||
License: Distributable
|
||||
Version: %{newlib_version}
|
||||
Release: 27%{?dist}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
Requires: rtems-4.10-newlib-common
|
||||
|
||||
%description -n rtems-4.10-arm-rtems4.10-newlib
|
||||
Newlib C Library for arm-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-arm-rtems4.10-newlib -f build/files.newlib
|
||||
%defattr(-,root,root)
|
||||
%dir %{_exec_prefix}
|
||||
%dir %{_exec_prefix}/arm-rtems4.10
|
||||
%{_exec_prefix}/arm-rtems4.10/include
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-newlib-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-newlib-common
|
||||
Summary: Base package for RTEMS newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{newlib_version}
|
||||
Release: 27%{?dist}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: Distributable
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-newlib-common
|
||||
newlib files that are shared by all targets.
|
||||
|
||||
%files -n rtems-4.10-newlib-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/libc.info*
|
||||
%{_infodir}/libm.info*
|
||||
|
||||
%post -n rtems-4.10-newlib-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-newlib-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
fi
|
||||
|
||||
@@ -1,283 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 gdb_version 7.2
|
||||
%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
|
||||
|
||||
Name: rtems-4.10-arm-rtems4.10-gdb
|
||||
Summary: Gdb for target arm-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%global build_sim --enable-sim
|
||||
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
%else
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
|
||||
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
|
||||
BuildRequires: %{_host_rpmprefix}ncurses-devel
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%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.10-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.10/gdb-7.1-rtems4.10-20100812.diff
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
GDB for target arm-rtems4.10
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd gdb-%{gdb_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
# Force using a system-provided libreadline
|
||||
%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../gdb-%{gdb_version}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=arm-rtems4.10 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?with_system_readline:--with-system-readline} \
|
||||
--with-expat \
|
||||
%{?with_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/arm-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# These come from other packages
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtems4.10-sim.a
|
||||
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# arm-rtems4.10-gdb
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-arm-rtems4.10-gdb
|
||||
# Summary: rtems gdb for arm-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-gdb-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-arm-rtems4.10-gdb
|
||||
GNU gdb targetting arm-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-arm-rtems4.10-gdb
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/arm-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/arm-rtems4.10-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/arm-rtems4.10-*
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-gdb-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-gdb-common
|
||||
Summary: Base package for RTEMS gdbs
|
||||
Group: Development/Tools
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
%description -n rtems-4.10-gdb-common
|
||||
|
||||
GDB files shared by all targets.
|
||||
|
||||
%post -n rtems-4.10-gdb-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-gdb-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n rtems-4.10-gdb-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gdb.info*
|
||||
|
||||
%{_infodir}/gdbint.info*
|
||||
%{_infodir}/stabs.info*
|
||||
%{_infodir}/annotate.info*
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = avr-rtems4.10
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.20.1
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 3
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.4.6
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 4
|
||||
NEWLIB_VERS = 1.18.0
|
||||
NEWLIB_PKGVERS = $(NEWLIB_VERS)
|
||||
NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
|
||||
include ../gcc.am
|
||||
GCC_OPTS +=
|
||||
|
||||
GDB_VERS = 7.2
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 2
|
||||
include ../gdb.am
|
||||
GDB_OPTS +=
|
||||
@@ -1,2 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
|
||||
@@ -1,41 +0,0 @@
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-core-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_fortran
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 5}
|
||||
|
||||
%endif
|
||||
%if %build_newlib
|
||||
%if "%{newlib_version}" == "1.18.0"
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
%endif
|
||||
@@ -1,9 +0,0 @@
|
||||
%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.10-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.10/gdb-7.1-rtems4.10-20100812.diff
|
||||
%endif
|
||||
|
||||
@@ -1,268 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 binutils_pkgvers 2.20.1
|
||||
%define binutils_version 2.20.1
|
||||
%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
|
||||
|
||||
Name: rtems-4.10-avr-rtems4.10-binutils
|
||||
Summary: Binutils for target avr-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{binutils_rpmvers}
|
||||
Release: 3%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{binutils_version}" >= "2.18"
|
||||
# Bug in bfd: Doesn't build without texinfo installed
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
|
||||
Requires: rtems-4.10-binutils-common
|
||||
|
||||
Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
|
||||
|
||||
%description
|
||||
Cross binutils for target avr-rtems4.10
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd binutils-%{binutils_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../binutils-%{binutils_pkgvers}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=avr-rtems4.10 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--exec-prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
||||
install-info
|
||||
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-dlltool%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-dlltool*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-nlmconv%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-nlmconv*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-windres%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-windres*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/avr-rtems4.10-windmc%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/avr-rtems4.10-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# avr-rtems4.10-binutils
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-avr-rtems4.10-binutils
|
||||
# Summary: rtems binutils for avr-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-binutils-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-avr-rtems4.10-binutils
|
||||
GNU binutils targetting avr-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-avr-rtems4.10-binutils
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_datarootdir}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/avr-rtems4.10-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/avr-rtems4.10-*
|
||||
|
||||
%dir %{_exec_prefix}/avr-rtems4.10
|
||||
%dir %{_exec_prefix}/avr-rtems4.10/bin
|
||||
%{_exec_prefix}/avr-rtems4.10/bin/*
|
||||
|
||||
%dir %{_exec_prefix}/avr-rtems4.10/lib
|
||||
%{_exec_prefix}/avr-rtems4.10/lib/ldscripts
|
||||
# ==============================================================
|
||||
# rtems-4.10-binutils-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-binutils-common
|
||||
Summary: Base package for RTEMS binutils
|
||||
Group: Development/Tools
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-binutils-common
|
||||
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the base for binutils regardless of target CPU.
|
||||
|
||||
%post -n rtems-4.10-binutils-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-binutils-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n rtems-4.10-binutils-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/as.info*
|
||||
%{_infodir}/bfd.info*
|
||||
%{_infodir}/binutils.info*
|
||||
%{_infodir}/ld.info*
|
||||
%{_infodir}/standards.info*
|
||||
%{_infodir}/gprof.info*
|
||||
|
||||
%dir %{_prefix}/share
|
||||
%dir %{_prefix}/share/locale
|
||||
|
||||
@@ -1,802 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 gcc_pkgvers 4.4.6
|
||||
%define gcc_version 4.4.6
|
||||
%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
|
||||
|
||||
%define newlib_pkgvers 1.18.0
|
||||
%define newlib_version 1.18.0
|
||||
|
||||
Name: rtems-4.10-avr-rtems4.10-gcc
|
||||
Summary: avr-rtems4.10 gcc
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
Release: 4%{?dist}
|
||||
License: GPL
|
||||
URL: http://gcc.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
||||
%bcond_with lto
|
||||
|
||||
# FIXME: Disable python gdb scripts
|
||||
# ATM, no idea how to package them
|
||||
%bcond_with pygdb
|
||||
|
||||
# FIXME: Disable GCC-plugin
|
||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
||||
%bcond_with plugin
|
||||
|
||||
# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
|
||||
# Should be applicable to gcc >= 4.5.0
|
||||
%bcond_with gcc_stdint
|
||||
|
||||
# versions of libraries, we conditionally bundle if necessary
|
||||
%global mpc_version 0.8.1
|
||||
%global mpfr_version 2.4.2
|
||||
%global gmp_version 4.3.2
|
||||
%global libelf_version 0.8.13
|
||||
|
||||
# versions of libraries these distros are known to ship
|
||||
%if 0%{?fc16}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc15}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc14}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el6}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el5}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided %{nil}
|
||||
%global gmp_provided 4.1.4
|
||||
%endif
|
||||
|
||||
%if 0%{?suse12_1}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.1
|
||||
%global gmp_provided 5.0.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_3}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_4}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 5.0.1
|
||||
%endif
|
||||
|
||||
%if 0%{?cygwin}
|
||||
%global mpc_provided 0.8
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?mingw32}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%define gmp_required 4.1
|
||||
%define mpfr_required 2.3.1
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.3"
|
||||
%define cloog_required 0.15
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.4.0"
|
||||
%define mpfr_required 2.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%define mpc_required 0.8
|
||||
%if %{with lto}
|
||||
%define libelf_required 0.8.12
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined mpc_required}
|
||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpc 1
|
||||
%define gmp_required 4.2
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined gmp_required}
|
||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
||||
BuildRequires: gmp-devel >= %{gmp_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_gmp 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined libelf_required}
|
||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
||||
BuildRequires: libelf-devel >= %{libelf_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_libelf 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined cloog_required}
|
||||
%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%{?suse11_3:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined mpfr_required}
|
||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpfr 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: rtems-4.10-avr-rtems4.10-gcc = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
# Not strictly required, but patches may introduce a need to use them.
|
||||
# For reasons of simplicity, always require them.
|
||||
BuildRequires: flex bison
|
||||
|
||||
BuildRequires: texinfo >= 4.2
|
||||
BuildRequires: rtems-4.10-avr-rtems4.10-binutils
|
||||
|
||||
Requires: rtems-4.10-gcc-common
|
||||
Requires: rtems-4.10-avr-rtems4.10-binutils
|
||||
Requires: rtems-4.10-avr-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
||||
Requires: rtems-4.10-avr-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
BuildRequires: zlib-devel
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
||||
%endif
|
||||
%else
|
||||
%endif
|
||||
|
||||
%global _gcclibdir %{_prefix}/lib
|
||||
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-core-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if "%{newlib_version}" == "1.18.0"
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross gcc for avr-rtems4.10.
|
||||
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%if %{with gcc_stdint}
|
||||
sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
|
||||
%endif
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a50
|
||||
cd newlib-%{newlib_version}
|
||||
%{?PATCH50:%patch50 -p1}
|
||||
cd ..
|
||||
# Copy the C library into gcc's source tree
|
||||
ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
|
||||
%if %{with gcc_stdint}
|
||||
rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
|
||||
%endif
|
||||
# Make sure not to be using GPL'ed sources
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
%setup -q -T -D -n %{name}-%{version} -a60
|
||||
%{?PATCH60:%patch60 -p1}
|
||||
# Build mpfr one-tree style
|
||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
%setup -q -T -D -n %{name}-%{version} -a61
|
||||
%{?PATCH61:%patch61 -p1}
|
||||
# Build mpc one-tree style
|
||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
%setup -q -T -D -n %{name}-%{version} -a62
|
||||
%{?PATCH62:%patch62 -p1}
|
||||
# Build gmp one-tree style
|
||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
%setup -q -T -D -n %{name}-%{version} -a63
|
||||
%{?PATCH63:%patch63 -p1}
|
||||
# Build libelf one-tree style
|
||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
||||
%endif
|
||||
|
||||
echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
|
||||
|
||||
|
||||
# Fix timestamps
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
contrib/gcc_update --touch
|
||||
cd ..
|
||||
%build
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
languages="c"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
||||
%else
|
||||
# gcc is not ready to be compiled with -std=gnu99
|
||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||
%endif
|
||||
../gcc-%{gcc_pkgvers}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--exec_prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_gcclibdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--datadir=%{_datadir} \
|
||||
--build=%_build --host=%_host \
|
||||
--target=avr-rtems4.10 \
|
||||
--disable-libstdcxx-pch \
|
||||
--with-gnu-as --with-gnu-ld --verbose \
|
||||
--with-newlib \
|
||||
--with-system-zlib \
|
||||
--disable-nls --without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--enable-threads \
|
||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
||||
--enable-newlib-io-c99-formats \
|
||||
--enable-languages="$languages"
|
||||
|
||||
%if "%_host" != "%_build"
|
||||
# Bug in gcc-3.2.1:
|
||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
||||
mkdir -p gcc/include
|
||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
cd build/avr-rtems4.10/newlib
|
||||
make DESTDIR=$RPM_BUILD_ROOT install-info
|
||||
cd ../../..
|
||||
|
||||
%if "%{gcc_version}" <= "4.1.2"
|
||||
# Misplaced header file
|
||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}/include/
|
||||
fi
|
||||
%endif
|
||||
|
||||
# host library
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
# libiberty doesn't honor --libdir, but always installs to a
|
||||
# magically guessed _libdir
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||
%else
|
||||
# libiberty installs to --libdir=...
|
||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
||||
%endif
|
||||
|
||||
# We use the version from binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/avr-rtems4.10-c++filt%{_exeext}
|
||||
|
||||
|
||||
# We don't ship info/dir
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# We don't want libffi's man-pages
|
||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
|
||||
|
||||
# Bug in gcc-3.4.0pre
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/avr-rtems4.10-avr-rtems4.10-gcjh%{_exeext}
|
||||
|
||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
||||
# the fixinclude-install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}/install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/install-tools
|
||||
|
||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/avr-rtems4.10/include/bits; then
|
||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/avr-rtems4.10/include/bits
|
||||
fi
|
||||
|
||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
||||
%if ! %{with pygdb}
|
||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
||||
fi
|
||||
%endif
|
||||
|
||||
# Collect multilib subdirectories
|
||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
||||
|
||||
echo "%defattr(-,root,root,-)" > build/files.newlib
|
||||
TGTDIR="%{_exec_prefix}/avr-rtems4.10/lib"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) echo "%dir ${TGTDIR}" >> build/files.newlib
|
||||
;;
|
||||
*) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rm -f dirs ;
|
||||
echo "%defattr(-,root,root,-)" >> dirs
|
||||
TGTDIR="%{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) ;; # ignore, handled elsewhere
|
||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Collect files to go into different packages
|
||||
cp dirs build/files.gcc
|
||||
cp dirs build/files.gfortran
|
||||
cp dirs build/files.objc
|
||||
cp dirs build/files.gcj
|
||||
cp dirs build/files.g++
|
||||
|
||||
TGTDIR="%{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
||||
*f771) ;;
|
||||
*f951) ;;
|
||||
*cc1) ;;
|
||||
*cc1obj) ;;
|
||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
||||
*collect2) ;;
|
||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
||||
*include/objc*) ;;
|
||||
*include/g++*);;
|
||||
*include/c++*);;
|
||||
*include-fixed/*);;
|
||||
*finclude/*);;
|
||||
*adainclude*);;
|
||||
*adalib*);;
|
||||
*gnat1);;
|
||||
*jc1) ;;
|
||||
*jvgenmain) ;;
|
||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*) echo "$i" >> build/files.gcc ;;
|
||||
esac
|
||||
done
|
||||
|
||||
TGTDIR="%{_exec_prefix}/avr-rtems4.10/lib"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
||||
# all other files belong to newlib
|
||||
*) echo "$i" >> build/files.newlib ;;
|
||||
esac
|
||||
done
|
||||
# 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}-%{gcc_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/avr-rtems4.10/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/avr-rtems4.10/'} | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/avr-rtems4.10/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/avr-rtems4.10/'} | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
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
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-avr-rtems4.10-gcc
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-avr-rtems4.10-gcc
|
||||
# Summary: GNU cc compiler for avr-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# Version: %{gcc_rpmvers}
|
||||
# Requires: rtems-4.10-avr-rtems4.10-binutils
|
||||
# Requires: rtems-4.10-avr-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
# License: GPL
|
||||
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-gcc-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-avr-rtems4.10-gcc
|
||||
GNU cc compiler for avr-rtems4.10.
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-avr-rtems4.10-gcc-libgcc
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-avr-rtems4.10-gcc-libgcc
|
||||
Summary: libgcc for avr-rtems4.10-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
Requires: rtems-4.10-avr-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
License: GPL
|
||||
|
||||
%description -n rtems-4.10-avr-rtems4.10-gcc-libgcc
|
||||
libgcc avr-rtems4.10-gcc.
|
||||
|
||||
|
||||
%files -n rtems-4.10-avr-rtems4.10-gcc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/avr-rtems4.10-gcc.1*
|
||||
%{_mandir}/man1/avr-rtems4.10-cpp.1*
|
||||
%{_mandir}/man1/avr-rtems4.10-gcov.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/avr-rtems4.10-cpp%{_exeext}
|
||||
%{_bindir}/avr-rtems4.10-gcc%{_exeext}
|
||||
%{_bindir}/avr-rtems4.10-gcc-%{gcc_version}%{_exeext}
|
||||
%{_bindir}/avr-rtems4.10-gcov%{_exeext}
|
||||
%if "%{gcc_version}" < "4.6.0"
|
||||
%{_bindir}/avr-rtems4.10-gccbug
|
||||
%endif
|
||||
|
||||
%dir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/avr-rtems4.10
|
||||
%dir %{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}
|
||||
%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/cc1%{_exeext}
|
||||
%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/collect2%{_exeext}
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%{?with_lto:%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/lto%{_exeext}}
|
||||
%{_libexecdir}/gcc/avr-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
|
||||
%endif
|
||||
|
||||
%files -n rtems-4.10-avr-rtems4.10-gcc-libgcc -f build/files.gcc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/avr-rtems4.10
|
||||
%dir %{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}/include
|
||||
|
||||
%if "%{gcc_version}" > "4.0.3"
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%{_gcclibdir}/gcc/avr-rtems4.10/%{gcc_version}/include-fixed
|
||||
%endif
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-gcc-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-gcc-common
|
||||
Summary: Base package for rtems gcc and newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-gcc-common
|
||||
GCC files that are shared by all targets.
|
||||
|
||||
%files -n rtems-4.10-gcc-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/cpp.info*
|
||||
%{_infodir}/cppinternals.info*
|
||||
%{_infodir}/gcc.info*
|
||||
%{_infodir}/gccint.info*
|
||||
%{_infodir}/gccinstall.info*
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man7
|
||||
%{_mandir}/man7/fsf-funding.7*
|
||||
%{_mandir}/man7/gfdl.7*
|
||||
%{_mandir}/man7/gpl.7*
|
||||
|
||||
%post -n rtems-4.10-gcc-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-gcc-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-avr-rtems4.10-newlib
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-avr-rtems4.10-newlib
|
||||
Summary: C Library (newlib) for avr-rtems4.10
|
||||
Group: Development/Tools
|
||||
License: Distributable
|
||||
Version: %{newlib_version}
|
||||
Release: 27%{?dist}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
Requires: rtems-4.10-newlib-common
|
||||
|
||||
%description -n rtems-4.10-avr-rtems4.10-newlib
|
||||
Newlib C Library for avr-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-avr-rtems4.10-newlib -f build/files.newlib
|
||||
%defattr(-,root,root)
|
||||
%dir %{_exec_prefix}
|
||||
%dir %{_exec_prefix}/avr-rtems4.10
|
||||
%{_exec_prefix}/avr-rtems4.10/include
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-newlib-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-newlib-common
|
||||
Summary: Base package for RTEMS newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{newlib_version}
|
||||
Release: 27%{?dist}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: Distributable
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-newlib-common
|
||||
newlib files that are shared by all targets.
|
||||
|
||||
%files -n rtems-4.10-newlib-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/libc.info*
|
||||
%{_infodir}/libm.info*
|
||||
|
||||
%post -n rtems-4.10-newlib-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-newlib-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
fi
|
||||
|
||||
@@ -1,283 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 gdb_version 7.2
|
||||
%define gdb_rpmvers %{expand:%(echo 7.2 | tr - _)}
|
||||
|
||||
Name: rtems-4.10-avr-rtems4.10-gdb
|
||||
Summary: Gdb for target avr-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%global build_sim --enable-sim
|
||||
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
%else
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
|
||||
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
|
||||
BuildRequires: %{_host_rpmprefix}ncurses-devel
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%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.10-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.10/gdb-7.1-rtems4.10-20100812.diff
|
||||
%endif
|
||||
|
||||
|
||||
%description
|
||||
GDB for target avr-rtems4.10
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd gdb-%{gdb_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
# Force using a system-provided libreadline
|
||||
%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../gdb-%{gdb_version}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=avr-rtems4.10 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?with_system_readline:--with-system-readline} \
|
||||
--with-expat \
|
||||
%{?with_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/avr-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# These come from other packages
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/bfd*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure*
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/standards*
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libavr-rtems4.10-sim.a
|
||||
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# avr-rtems4.10-gdb
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-avr-rtems4.10-gdb
|
||||
# Summary: rtems gdb for avr-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-gdb-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-avr-rtems4.10-gdb
|
||||
GNU gdb targetting avr-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-avr-rtems4.10-gdb
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/avr-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/avr-rtems4.10-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/avr-rtems4.10-*
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-gdb-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-gdb-common
|
||||
Summary: Base package for RTEMS gdbs
|
||||
Group: Development/Tools
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
%description -n rtems-4.10-gdb-common
|
||||
|
||||
GDB files shared by all targets.
|
||||
|
||||
%post -n rtems-4.10-gdb-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-gdb-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdbint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/stabs.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/annotate.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n rtems-4.10-gdb-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/gdb.info*
|
||||
|
||||
%{_infodir}/gdbint.info*
|
||||
%{_infodir}/stabs.info*
|
||||
%{_infodir}/annotate.info*
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = bfin-rtems4.10
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.20.1
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 3
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.4.6
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 4
|
||||
NEWLIB_VERS = 1.18.0
|
||||
NEWLIB_PKGVERS = $(NEWLIB_VERS)
|
||||
NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=cxx
|
||||
|
||||
GDB_VERS = 7.3.1
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 2
|
||||
include ../gdb.am
|
||||
GDB_OPTS += --disable-infos
|
||||
@@ -1,2 +0,0 @@
|
||||
Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
|
||||
@@ -1,41 +0,0 @@
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-core-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if %build_cxx
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%endif
|
||||
%if %build_fortran
|
||||
Source2: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-fortran-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 2}
|
||||
|
||||
%endif
|
||||
%if %build_gcj
|
||||
Source3: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-java-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 3}
|
||||
|
||||
%endif
|
||||
%if %build_gnat
|
||||
Source4: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-ada-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 4}
|
||||
|
||||
%endif
|
||||
%if %build_objc
|
||||
Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_pkgvers}/gcc-objc-%{gcc_pkgvers}.tar.bz2
|
||||
%{?_without_sources:NoSource: 5}
|
||||
|
||||
%endif
|
||||
%if %build_newlib
|
||||
%if "%{newlib_version}" == "1.18.0"
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
%endif
|
||||
@@ -1,13 +0,0 @@
|
||||
BuildRequires: @rpmprefix@bfin-rtems4.10-binutils
|
||||
BuildRequires: texinfo
|
||||
|
||||
# The bfin simulator silently tries to conditionally build an SDL based GUI,
|
||||
# but fails to link correctly
|
||||
# Force not building the GUI.
|
||||
%{!?suse:BuildConflicts: SDL-devel}
|
||||
%{?suse:BuildConflicts: libSDL-devel}
|
||||
|
||||
%if "%{gdb_version}" == "7.3.1"
|
||||
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.3.1-rtems4.10-20110919.diff
|
||||
%endif
|
||||
@@ -1,268 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 binutils_pkgvers 2.20.1
|
||||
%define binutils_version 2.20.1
|
||||
%define binutils_rpmvers %{expand:%(echo "2.20.1" | tr - _ )}
|
||||
|
||||
Name: rtems-4.10-bfin-rtems4.10-binutils
|
||||
Summary: Binutils for target bfin-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{binutils_rpmvers}
|
||||
Release: 3%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/binutils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%if "%{binutils_version}" >= "2.18"
|
||||
# Bug in bfd: Doesn't build without texinfo installed
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%else
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
%endif
|
||||
BuildRequires: flex
|
||||
BuildRequires: bison
|
||||
|
||||
Requires: rtems-4.10-binutils-common
|
||||
|
||||
Source0: ftp://ftp.gnu.org/gnu/binutils/binutils-%{binutils_pkgvers}.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/binutils-2.20.1-rtems4.10-20100826.diff
|
||||
|
||||
%description
|
||||
Cross binutils for target bfin-rtems4.10
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd binutils-%{binutils_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../binutils-%{binutils_pkgvers}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=bfin-rtems4.10 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--exec-prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
make prefix=$RPM_BUILD_ROOT%{_prefix} \
|
||||
bindir=$RPM_BUILD_ROOT%{_bindir} \
|
||||
includedir=$RPM_BUILD_ROOT%{_includedir} \
|
||||
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||
infodir=$RPM_BUILD_ROOT%{_infodir} \
|
||||
mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
exec_prefix=$RPM_BUILD_ROOT%{_exec_prefix} \
|
||||
install-info
|
||||
|
||||
# Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}/configure.info*
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# binutils does not install share/locale, however it uses it
|
||||
mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/locale
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# manpages without corresponding tools
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-dlltool%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-dlltool*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-nlmconv%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-nlmconv*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-windres%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-windres*
|
||||
fi
|
||||
if test ! -f ${RPM_BUILD_ROOT}%{_bindir}/bfin-rtems4.10-windmc%{_exeext}; then
|
||||
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/bfin-rtems4.10-windmc*
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# bfin-rtems4.10-binutils
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-bfin-rtems4.10-binutils
|
||||
# Summary: rtems binutils for bfin-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-binutils-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-bfin-rtems4.10-binutils
|
||||
GNU binutils targetting bfin-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-bfin-rtems4.10-binutils
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_datarootdir}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/bfin-rtems4.10-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/bfin-rtems4.10-*
|
||||
|
||||
%dir %{_exec_prefix}/bfin-rtems4.10
|
||||
%dir %{_exec_prefix}/bfin-rtems4.10/bin
|
||||
%{_exec_prefix}/bfin-rtems4.10/bin/*
|
||||
|
||||
%dir %{_exec_prefix}/bfin-rtems4.10/lib
|
||||
%{_exec_prefix}/bfin-rtems4.10/lib/ldscripts
|
||||
# ==============================================================
|
||||
# rtems-4.10-binutils-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-binutils-common
|
||||
Summary: Base package for RTEMS binutils
|
||||
Group: Development/Tools
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-binutils-common
|
||||
|
||||
RTEMS is an open source operating system for embedded systems.
|
||||
|
||||
This is the base for binutils regardless of target CPU.
|
||||
|
||||
%post -n rtems-4.10-binutils-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-binutils-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/as.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/binutils.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/ld.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/standards.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gprof.info.gz || :
|
||||
fi
|
||||
|
||||
%files -n rtems-4.10-binutils-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/as.info*
|
||||
%{_infodir}/bfd.info*
|
||||
%{_infodir}/binutils.info*
|
||||
%{_infodir}/ld.info*
|
||||
%{_infodir}/standards.info*
|
||||
%{_infodir}/gprof.info*
|
||||
|
||||
%dir %{_prefix}/share
|
||||
%dir %{_prefix}/share/locale
|
||||
|
||||
@@ -1,874 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 gcc_pkgvers 4.4.6
|
||||
%define gcc_version 4.4.6
|
||||
%define gcc_rpmvers %{expand:%(echo "4.4.6" | tr - _ )}
|
||||
|
||||
%define newlib_pkgvers 1.18.0
|
||||
%define newlib_version 1.18.0
|
||||
|
||||
Name: rtems-4.10-bfin-rtems4.10-gcc
|
||||
Summary: bfin-rtems4.10 gcc
|
||||
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
Release: 4%{?dist}
|
||||
License: GPL
|
||||
URL: http://gcc.gnu.org
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
# FIXME: Disable lto for now, to avoid dependencies on libelf
|
||||
%bcond_with lto
|
||||
|
||||
# FIXME: Disable python gdb scripts
|
||||
# ATM, no idea how to package them
|
||||
%bcond_with pygdb
|
||||
|
||||
# FIXME: Disable GCC-plugin
|
||||
# Bug in gcc-4.5-20100318, doesn't build them on x86_84 hosts.
|
||||
%bcond_with plugin
|
||||
|
||||
# EXPERIMENTAL: Use gcc's stdint.h instead of newlib's
|
||||
# Should be applicable to gcc >= 4.5.0
|
||||
%bcond_with gcc_stdint
|
||||
|
||||
# versions of libraries, we conditionally bundle if necessary
|
||||
%global mpc_version 0.8.1
|
||||
%global mpfr_version 2.4.2
|
||||
%global gmp_version 4.3.2
|
||||
%global libelf_version 0.8.13
|
||||
|
||||
# versions of libraries these distros are known to ship
|
||||
%if 0%{?fc16}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc15}
|
||||
%global mpc_provided 0.8.3
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?fc14}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el6}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?el5}
|
||||
%global mpc_provided %{nil}
|
||||
%global mpfr_provided %{nil}
|
||||
%global gmp_provided 4.1.4
|
||||
%endif
|
||||
|
||||
%if 0%{?suse12_1}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.1
|
||||
%global gmp_provided 5.0.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_3}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.2
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if 0%{?suse11_4}
|
||||
%global mpc_provided 0.8.2
|
||||
%global mpfr_provided 3.0.0
|
||||
%global gmp_provided 5.0.1
|
||||
%endif
|
||||
|
||||
%if 0%{?cygwin}
|
||||
%global mpc_provided 0.8
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.1
|
||||
%endif
|
||||
|
||||
%if 0%{?mingw32}
|
||||
%global mpc_provided 0.8.1
|
||||
%global mpfr_provided 2.4.1
|
||||
%global gmp_provided 4.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%define gmp_required 4.1
|
||||
%define mpfr_required 2.3.1
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.3"
|
||||
%define cloog_required 0.15
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.4.0"
|
||||
%define mpfr_required 2.3.2
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%define mpc_required 0.8
|
||||
%if %{with lto}
|
||||
%define libelf_required 0.8.12
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined mpc_required}
|
||||
%if "%{mpc_provided}" >= "%{mpc_required}"
|
||||
%{?fedora:BuildRequires: libmpc-devel >= %{mpc_required}}
|
||||
%{?suse:BuildRequires: mpc-devel >= %{mpc_required}}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpc-devel >= %{mpc_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpc 1
|
||||
%define gmp_required 4.2
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined gmp_required}
|
||||
%if "%{gmp_provided}" >= "%{gmp_required}"
|
||||
BuildRequires: gmp-devel >= %{gmp_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}gmp-devel >= %{gmp_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_gmp 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{defined libelf_required}
|
||||
%if "%{libelf_provided}" >= "%{libelf_required}"
|
||||
BuildRequires: libelf-devel >= %{libelf_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}libelf-devel >= %{libelf_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_libelf 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined cloog_required}
|
||||
%{?fc14:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc15:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?fc16:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?el6:BuildRequires: cloog-ppl-devel >= %cloog_required}
|
||||
%{?suse11_4:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%{?suse11_3:BuildRequires: cloog-devel >= %cloog_required, ppl-devel}
|
||||
%endif
|
||||
|
||||
|
||||
%if %{defined mpfr_required}
|
||||
%if "%{mpfr_provided}" >= "%{mpfr_required}"
|
||||
BuildRequires: mpfr-devel >= %{mpfr_required}
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{mpfr_required}
|
||||
%endif
|
||||
%else
|
||||
%define _build_mpfr 1
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: rtems-4.10-bfin-rtems4.10-gcc = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
# Not strictly required, but patches may introduce a need to use them.
|
||||
# For reasons of simplicity, always require them.
|
||||
BuildRequires: flex bison
|
||||
|
||||
BuildRequires: texinfo >= 4.2
|
||||
BuildRequires: rtems-4.10-bfin-rtems4.10-binutils
|
||||
|
||||
Requires: rtems-4.10-gcc-common
|
||||
Requires: rtems-4.10-bfin-rtems4.10-binutils
|
||||
Requires: rtems-4.10-bfin-rtems4.10-gcc-libgcc = %{gcc_rpmvers}-%{release}
|
||||
Requires: rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
BuildRequires: zlib-devel
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}zlib-devel
|
||||
%endif
|
||||
%else
|
||||
%endif
|
||||
|
||||
%global _gcclibdir %{_prefix}/lib
|
||||
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-core-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 0}
|
||||
|
||||
%if "%{gcc_version}" == "4.4.6"
|
||||
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.10/gcc-g++-4.4.6-rtems4.10-20110829.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 1}
|
||||
|
||||
%if "%{newlib_version}" == "1.18.0"
|
||||
Source50: ftp://sources.redhat.com/pub/newlib/newlib-%{newlib_pkgvers}.tar.gz
|
||||
Patch50: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/newlib-1.18.0-rtems4.10-20110518.diff
|
||||
%endif
|
||||
%{?_without_sources:NoSource: 50}
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
Source60: http://www.mpfr.org/mpfr-%{mpfr_version}/mpfr-%{mpfr_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
Source61: http://www.multiprecision.org/mpc/download/mpc-%{mpc_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
Source62: ftp://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
Source63: http://www.mr511.de/software/libelf-%{libelf_version}.tar.gz
|
||||
%endif
|
||||
|
||||
%description
|
||||
Cross gcc for bfin-rtems4.10.
|
||||
|
||||
%prep
|
||||
%setup -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a0
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a1
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
%{?PATCH1:%patch1 -p1}
|
||||
cd ..
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
%if %{with gcc_stdint}
|
||||
sed -i -e '/thread_file=.*rtems/,/use_gcc_stdint=wrap/ { s/use_gcc_stdint=wrap/use_gcc_stdint=provide/}' gcc-%{gcc_pkgvers}/gcc/config.gcc
|
||||
%endif
|
||||
|
||||
%setup -q -T -D -n %{name}-%{version} -a50
|
||||
cd newlib-%{newlib_version}
|
||||
%{?PATCH50:%patch50 -p1}
|
||||
cd ..
|
||||
# Copy the C library into gcc's source tree
|
||||
ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers}
|
||||
%if %{with gcc_stdint}
|
||||
rm gcc-%{gcc_pkgvers}/newlib/libc/include/stdint.h
|
||||
%endif
|
||||
# Make sure not to be using GPL'ed sources
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/linux
|
||||
rm -rf gcc-%{gcc_pkgvers}/newlib/libc/sys/rdos
|
||||
|
||||
%if 0%{?_build_mpfr}
|
||||
%setup -q -T -D -n %{name}-%{version} -a60
|
||||
%{?PATCH60:%patch60 -p1}
|
||||
# Build mpfr one-tree style
|
||||
ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_mpc}
|
||||
%setup -q -T -D -n %{name}-%{version} -a61
|
||||
%{?PATCH61:%patch61 -p1}
|
||||
# Build mpc one-tree style
|
||||
ln -s ../mpc-%{mpc_version} gcc-%{gcc_pkgvers}/mpc
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_gmp}
|
||||
%setup -q -T -D -n %{name}-%{version} -a62
|
||||
%{?PATCH62:%patch62 -p1}
|
||||
# Build gmp one-tree style
|
||||
ln -s ../gmp-%{gmp_version} gcc-%{gcc_pkgvers}/gmp
|
||||
%endif
|
||||
|
||||
%if 0%{?_build_libelf}
|
||||
%setup -q -T -D -n %{name}-%{version} -a63
|
||||
%{?PATCH63:%patch63 -p1}
|
||||
# Build libelf one-tree style
|
||||
ln -s ../libelf-%{libelf_version} gcc-%{gcc_pkgvers}/libelf
|
||||
%endif
|
||||
|
||||
echo "RTEMS gcc-%{gcc_version}-4%{?dist}/newlib-%{newlib_version}-27%{?dist}" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
|
||||
|
||||
|
||||
# Fix timestamps
|
||||
cd gcc-%{gcc_pkgvers}
|
||||
contrib/gcc_update --touch
|
||||
cd ..
|
||||
%build
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
languages="c"
|
||||
languages="$languages,c++"
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
CC="%{_host}-gcc ${RPM_OPT_FLAGS}" \
|
||||
%else
|
||||
# gcc is not ready to be compiled with -std=gnu99
|
||||
CC=$(echo "%{__cc} ${RPM_OPT_FLAGS}" | sed -e 's,-std=gnu99 ,,') \
|
||||
%endif
|
||||
../gcc-%{gcc_pkgvers}/configure \
|
||||
--prefix=%{_prefix} \
|
||||
--bindir=%{_bindir} \
|
||||
--exec_prefix=%{_exec_prefix} \
|
||||
--includedir=%{_includedir} \
|
||||
--libdir=%{_gcclibdir} \
|
||||
--libexecdir=%{_libexecdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--datadir=%{_datadir} \
|
||||
--build=%_build --host=%_host \
|
||||
--target=bfin-rtems4.10 \
|
||||
--disable-libstdcxx-pch \
|
||||
--with-gnu-as --with-gnu-ld --verbose \
|
||||
--with-newlib \
|
||||
--with-system-zlib \
|
||||
--disable-nls --without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--enable-version-specific-runtime-libs \
|
||||
--enable-threads \
|
||||
%{?with_lto:--enable-lto}%{!?with_lto:--disable-lto} \
|
||||
%{?with_plugin:--enable-plugin}%{!?with_plugin:--disable-plugin} \
|
||||
--enable-newlib-io-c99-formats \
|
||||
--enable-languages="$languages"
|
||||
|
||||
%if "%_host" != "%_build"
|
||||
# Bug in gcc-3.2.1:
|
||||
# Somehow, gcc doesn't get syslimits.h right for Cdn-Xs
|
||||
mkdir -p gcc/include
|
||||
cp ../gcc-%{gcc_pkgvers}/gcc/gsyslimits.h gcc/include/syslimits.h
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
make info
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
cd ..
|
||||
|
||||
cd build/bfin-rtems4.10/newlib
|
||||
make DESTDIR=$RPM_BUILD_ROOT install-info
|
||||
cd ../../..
|
||||
|
||||
%if "%{gcc_version}" <= "4.1.2"
|
||||
# Misplaced header file
|
||||
if test -f $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h; then
|
||||
mv $RPM_BUILD_ROOT%{_includedir}/mf-runtime.h \
|
||||
$RPM_BUILD_ROOT%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include/
|
||||
fi
|
||||
%endif
|
||||
|
||||
# host library
|
||||
%if "%{gcc_version}" >= "4.2.0"
|
||||
# libiberty doesn't honor --libdir, but always installs to a
|
||||
# magically guessed _libdir
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty.a
|
||||
%else
|
||||
# libiberty installs to --libdir=...
|
||||
rm -f ${RPM_BUILD_ROOT}%{_gcclibdir}/libiberty.a
|
||||
%endif
|
||||
|
||||
# We use the version from binutils
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/bfin-rtems4.10-c++filt%{_exeext}
|
||||
|
||||
|
||||
# We don't ship info/dir
|
||||
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
touch $RPM_BUILD_ROOT%{_infodir}/dir
|
||||
|
||||
# We don't want libffi's man-pages
|
||||
rm -f $RPM_BUILD_ROOT%{_mandir}/man3/*ffi*
|
||||
|
||||
# Bug in gcc-3.4.0pre
|
||||
rm -f $RPM_BUILD_ROOT%{_bindir}/bfin-rtems4.10-bfin-rtems4.10-gcjh%{_exeext}
|
||||
|
||||
# Bug in gcc-3.3.x/gcc-3.4.x: Despite we don't need fixincludes, it installs
|
||||
# the fixinclude-install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/install-tools
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/install-tools
|
||||
|
||||
# Bug in gcc > 4.1.0: Installs an unused, empty directory
|
||||
if test -d ${RPM_BUILD_ROOT}%{_prefix}/bfin-rtems4.10/include/bits; then
|
||||
rmdir ${RPM_BUILD_ROOT}%{_prefix}/bfin-rtems4.10/include/bits
|
||||
fi
|
||||
|
||||
# gcc >= 4.5.0: installs weird libstdc++ python bindings.
|
||||
%if ! %{with pygdb}
|
||||
if test -d ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python; then
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gcc-%{gcc_version}/python/libstdcxx
|
||||
fi
|
||||
%endif
|
||||
|
||||
# Collect multilib subdirectories
|
||||
multilibs=`build/gcc/xgcc -Bbuild/gcc/ --print-multi-lib | sed -e 's,;.*$,,'`
|
||||
|
||||
echo "%defattr(-,root,root,-)" > build/files.newlib
|
||||
TGTDIR="%{_exec_prefix}/bfin-rtems4.10/lib"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) echo "%dir ${TGTDIR}" >> build/files.newlib
|
||||
;;
|
||||
*) echo "%dir ${TGTDIR}/$i" >> build/files.newlib
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
rm -f dirs ;
|
||||
echo "%defattr(-,root,root,-)" >> dirs
|
||||
TGTDIR="%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}"
|
||||
for i in $multilibs; do
|
||||
case $i in
|
||||
\.) ;; # ignore, handled elsewhere
|
||||
*) echo "%dir ${TGTDIR}/$i" >> dirs
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Collect files to go into different packages
|
||||
cp dirs build/files.gcc
|
||||
cp dirs build/files.gfortran
|
||||
cp dirs build/files.objc
|
||||
cp dirs build/files.gcj
|
||||
cp dirs build/files.g++
|
||||
|
||||
TGTDIR="%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i ;; # ignore: gcc produces bogus libtool libs
|
||||
*f771) ;;
|
||||
*f951) ;;
|
||||
*cc1) ;;
|
||||
*cc1obj) ;;
|
||||
*cc1plus) ;; # ignore: explicitly put into rpm elsewhere
|
||||
*collect2) ;;
|
||||
*libobjc*) echo "$i" >> build/files.objc ;;
|
||||
*include/objc*) ;;
|
||||
*include/g++*);;
|
||||
*include/c++*);;
|
||||
*include-fixed/*);;
|
||||
*finclude/*);;
|
||||
*adainclude*);;
|
||||
*adalib*);;
|
||||
*gnat1);;
|
||||
*jc1) ;;
|
||||
*jvgenmain) ;;
|
||||
*/libgfortran*.*) echo "$i" >> build/files.gfortran ;;
|
||||
%{!?with_pygdb:*/libstdc++*gdb.py*) rm ${RPM_BUILD_ROOT}/$i ;;} # ignore for now
|
||||
%{?with_pygdb:*/libstdc++*gdb.py*) >> build/files.g++ ;;}
|
||||
*/libstdc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*/libsupc++.*) echo "$i" >> build/files.g++ ;;
|
||||
*) echo "$i" >> build/files.gcc ;;
|
||||
esac
|
||||
done
|
||||
|
||||
TGTDIR="%{_exec_prefix}/bfin-rtems4.10/lib"
|
||||
f=`find ${RPM_BUILD_ROOT}${TGTDIR} ! -type d -print | sed -e "s,^$RPM_BUILD_ROOT,,g"`;
|
||||
for i in $f; do
|
||||
case $i in
|
||||
*lib*.la) rm ${RPM_BUILD_ROOT}/$i;; # ignore - gcc produces bogus libtool libs
|
||||
*libiberty.a) rm ${RPM_BUILD_ROOT}/$i ;; # ignore - GPL'ed
|
||||
# all other files belong to newlib
|
||||
*) echo "$i" >> build/files.newlib ;;
|
||||
esac
|
||||
done
|
||||
# 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}-%{gcc_rpmvers}/find-provides
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/bfin-rtems4.10/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/bfin-rtems4.10/'} | %__find_provides
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
%define __find_provides %{_builddir}/%{name}-%{gcc_rpmvers}/find-provides
|
||||
|
||||
cat << EOF > %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
#!/bin/sh
|
||||
grep -E -v '^${RPM_BUILD_ROOT}%{_exec_prefix}/bfin-rtems4.10/(lib|include|sys-root)' \
|
||||
%{?_gcclibdir:| grep -v '^${RPM_BUILD_ROOT}%{_gcclibdir}/gcc/bfin-rtems4.10/'} | %__find_requires
|
||||
EOF
|
||||
chmod +x %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
%define __find_requires %{_builddir}/%{name}-%{gcc_rpmvers}/find-requires
|
||||
|
||||
%ifnarch noarch
|
||||
# Extract %%__debug_install_post into debug_install_post~
|
||||
cat << \EOF > debug_install_post~
|
||||
%__debug_install_post
|
||||
EOF
|
||||
|
||||
# Generate customized debug_install_post script
|
||||
cat debug_install_post~ | while read a x y; do
|
||||
case $a in
|
||||
# Prevent find-debuginfo.sh* from trying to handle foreign binaries
|
||||
*/find-debuginfo.sh)
|
||||
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
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
sed -e 's,^[ ]*/usr/lib/rpm/find-debuginfo.sh,./find-debuginfo.sh,' \
|
||||
< debug_install_post~ > debug_install_post
|
||||
%define __debug_install_post . ./debug_install_post
|
||||
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-bfin-rtems4.10-gcc
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-bfin-rtems4.10-gcc
|
||||
# Summary: GNU cc compiler for bfin-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# Version: %{gcc_rpmvers}
|
||||
# Requires: rtems-4.10-bfin-rtems4.10-binutils
|
||||
# Requires: rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
# License: GPL
|
||||
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-gcc-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-bfin-rtems4.10-gcc
|
||||
GNU cc compiler for bfin-rtems4.10.
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-bfin-rtems4.10-gcc-libgcc
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-bfin-rtems4.10-gcc-libgcc
|
||||
Summary: libgcc for bfin-rtems4.10-gcc
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
Requires: rtems-4.10-bfin-rtems4.10-newlib = %{newlib_version}-27%{?dist}
|
||||
License: GPL
|
||||
|
||||
%description -n rtems-4.10-bfin-rtems4.10-gcc-libgcc
|
||||
libgcc bfin-rtems4.10-gcc.
|
||||
|
||||
|
||||
%files -n rtems-4.10-bfin-rtems4.10-gcc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/bfin-rtems4.10-gcc.1*
|
||||
%{_mandir}/man1/bfin-rtems4.10-cpp.1*
|
||||
%{_mandir}/man1/bfin-rtems4.10-gcov.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/bfin-rtems4.10-cpp%{_exeext}
|
||||
%{_bindir}/bfin-rtems4.10-gcc%{_exeext}
|
||||
%{_bindir}/bfin-rtems4.10-gcc-%{gcc_version}%{_exeext}
|
||||
%{_bindir}/bfin-rtems4.10-gcov%{_exeext}
|
||||
%if "%{gcc_version}" < "4.6.0"
|
||||
%{_bindir}/bfin-rtems4.10-gccbug
|
||||
%endif
|
||||
|
||||
%dir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/bfin-rtems4.10
|
||||
%dir %{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}
|
||||
%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/cc1%{_exeext}
|
||||
%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/collect2%{_exeext}
|
||||
%if "%{gcc_version}" >= "4.5.0"
|
||||
%{?with_lto:%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/lto%{_exeext}}
|
||||
%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/lto-wrapper%{_exeext}
|
||||
%endif
|
||||
|
||||
%files -n rtems-4.10-bfin-rtems4.10-gcc-libgcc -f build/files.gcc
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/bfin-rtems4.10
|
||||
%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include
|
||||
|
||||
%if "%{gcc_version}" > "4.0.3"
|
||||
%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include/ssp
|
||||
%endif
|
||||
|
||||
%if "%{gcc_version}" >= "4.3.0"
|
||||
%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include-fixed
|
||||
%endif
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-gcc-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-gcc-common
|
||||
Summary: Base package for rtems gcc and newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-gcc-common
|
||||
GCC files that are shared by all targets.
|
||||
|
||||
%files -n rtems-4.10-gcc-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/cpp.info*
|
||||
%{_infodir}/cppinternals.info*
|
||||
%{_infodir}/gcc.info*
|
||||
%{_infodir}/gccint.info*
|
||||
%{_infodir}/gccinstall.info*
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man7
|
||||
%{_mandir}/man7/fsf-funding.7*
|
||||
%{_mandir}/man7/gfdl.7*
|
||||
%{_mandir}/man7/gpl.7*
|
||||
|
||||
%post -n rtems-4.10-gcc-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-gcc-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cpp.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/cppinternals.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gcc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccint.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gccinstall.info.gz || :
|
||||
fi
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-bfin-rtems4.10-gcc-c++
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-bfin-rtems4.10-gcc-c++
|
||||
Summary: GCC c++ compiler for bfin-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
License: GPL
|
||||
Requires: rtems-4.10-bfin-rtems4.10-gcc-libstdc++ = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: rtems-4.10-bfin-rtems4.10-gcc-c++ = %{gcc_rpmvers}
|
||||
%endif
|
||||
|
||||
Requires: rtems-4.10-gcc-common
|
||||
Requires: rtems-4.10-bfin-rtems4.10-gcc = %{gcc_rpmvers}-%{release}
|
||||
|
||||
%description -n rtems-4.10-bfin-rtems4.10-gcc-c++
|
||||
GCC c++ compiler for bfin-rtems4.10.
|
||||
|
||||
|
||||
%package -n rtems-4.10-bfin-rtems4.10-gcc-libstdc++
|
||||
Summary: libstdc++ for bfin-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gcc_rpmvers}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: GPL
|
||||
|
||||
%description -n rtems-4.10-bfin-rtems4.10-gcc-libstdc++
|
||||
%{summary}
|
||||
|
||||
|
||||
%files -n rtems-4.10-bfin-rtems4.10-gcc-c++
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/bfin-rtems4.10-g++.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/bfin-rtems4.10-c++%{_exeext}
|
||||
%{_bindir}/bfin-rtems4.10-g++%{_exeext}
|
||||
|
||||
%dir %{_libexecdir}
|
||||
%dir %{_libexecdir}/gcc
|
||||
%dir %{_libexecdir}/gcc/bfin-rtems4.10
|
||||
%dir %{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}
|
||||
%{_libexecdir}/gcc/bfin-rtems4.10/%{gcc_version}/cc1plus%{_exeext}
|
||||
|
||||
|
||||
%files -n rtems-4.10-bfin-rtems4.10-gcc-libstdc++ -f build/files.g++
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_gcclibdir}
|
||||
%dir %{_gcclibdir}/gcc
|
||||
%dir %{_gcclibdir}/gcc/bfin-rtems4.10
|
||||
%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}
|
||||
%dir %{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include
|
||||
%{_gcclibdir}/gcc/bfin-rtems4.10/%{gcc_version}/include/c++
|
||||
|
||||
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-bfin-rtems4.10-newlib
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-bfin-rtems4.10-newlib
|
||||
Summary: C Library (newlib) for bfin-rtems4.10
|
||||
Group: Development/Tools
|
||||
License: Distributable
|
||||
Version: %{newlib_version}
|
||||
Release: 27%{?dist}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
|
||||
Requires: rtems-4.10-newlib-common
|
||||
|
||||
%description -n rtems-4.10-bfin-rtems4.10-newlib
|
||||
Newlib C Library for bfin-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-bfin-rtems4.10-newlib -f build/files.newlib
|
||||
%defattr(-,root,root)
|
||||
%dir %{_exec_prefix}
|
||||
%dir %{_exec_prefix}/bfin-rtems4.10
|
||||
%{_exec_prefix}/bfin-rtems4.10/include
|
||||
|
||||
# ==============================================================
|
||||
# rtems-4.10-newlib-common
|
||||
# ==============================================================
|
||||
%package -n rtems-4.10-newlib-common
|
||||
Summary: Base package for RTEMS newlib C Library
|
||||
Group: Development/Tools
|
||||
Version: %{newlib_version}
|
||||
Release: 27%{?dist}
|
||||
%{?_with_noarch_subpackages:BuildArch: noarch}
|
||||
License: Distributable
|
||||
|
||||
Requires(post): /sbin/install-info
|
||||
Requires(preun): /sbin/install-info
|
||||
|
||||
%description -n rtems-4.10-newlib-common
|
||||
newlib files that are shared by all targets.
|
||||
|
||||
%files -n rtems-4.10-newlib-common
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
|
||||
%dir %{_infodir}
|
||||
%ghost %{_infodir}/dir
|
||||
%{_infodir}/libc.info*
|
||||
%{_infodir}/libm.info*
|
||||
|
||||
%post -n rtems-4.10-newlib-common
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
|
||||
%preun -n rtems-4.10-newlib-common
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libc.info.gz || :
|
||||
/sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/libm.info.gz || :
|
||||
fi
|
||||
|
||||
@@ -1,235 +0,0 @@
|
||||
#
|
||||
# Please send bugfixes or comments to
|
||||
# http://www.rtems.org/bugzilla
|
||||
#
|
||||
|
||||
%define _prefix /opt/rtems-4.10
|
||||
%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 gdb_version 7.3.1
|
||||
%define gdb_rpmvers %{expand:%(echo 7.3.1 | tr - _)}
|
||||
|
||||
Name: rtems-4.10-bfin-rtems4.10-gdb
|
||||
Summary: Gdb for target bfin-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%global build_sim --enable-sim
|
||||
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
%else
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
|
||||
%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
|
||||
BuildRequires: %{_host_rpmprefix}ncurses-devel
|
||||
|
||||
BuildRequires: rtems-4.10-bfin-rtems4.10-binutils
|
||||
BuildRequires: texinfo
|
||||
|
||||
# The bfin simulator silently tries to conditionally build an SDL based GUI,
|
||||
# but fails to link correctly
|
||||
# Force not building the GUI.
|
||||
%{!?suse:BuildConflicts: SDL-devel}
|
||||
%{?suse:BuildConflicts: libSDL-devel}
|
||||
|
||||
%if "%{gdb_version}" == "7.3.1"
|
||||
Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2
|
||||
Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.3.1-rtems4.10-20110919.diff
|
||||
%endif
|
||||
|
||||
%description
|
||||
GDB for target bfin-rtems4.10
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
|
||||
%setup -q -D -T -n %{name}-%{version} -a0
|
||||
cd gdb-%{gdb_version}
|
||||
%{?PATCH0:%patch0 -p1}
|
||||
cd ..
|
||||
|
||||
# Force using a system-provided libreadline
|
||||
%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
mkdir -p build
|
||||
cd build
|
||||
%if "%{_build}" != "%{_host}"
|
||||
CFLAGS_FOR_BUILD="-g -O2 -Wall" \
|
||||
%endif
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
../gdb-%{gdb_version}/configure \
|
||||
--build=%_build --host=%_host \
|
||||
--target=bfin-rtems4.10 \
|
||||
--verbose --disable-nls \
|
||||
--without-included-gettext \
|
||||
--disable-win32-registry \
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?with_system_readline:--with-system-readline} \
|
||||
--with-expat \
|
||||
%{?with_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/bfin-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
|
||||
make %{?_smp_mflags} all
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
cd build
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
# Conflict with a native gdb's infos
|
||||
rm -rf $RPM_BUILD_ROOT%{_infodir}
|
||||
|
||||
# We don't ship host files
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libiberty*
|
||||
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libbfin-rtems4.10-sim.a
|
||||
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# 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
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# ==============================================================
|
||||
# bfin-rtems4.10-gdb
|
||||
# ==============================================================
|
||||
# %package -n rtems-4.10-bfin-rtems4.10-gdb
|
||||
# Summary: rtems gdb for bfin-rtems4.10
|
||||
# Group: Development/Tools
|
||||
# %if %build_infos
|
||||
# Requires: rtems-4.10-gdb-common
|
||||
# %endif
|
||||
|
||||
%description -n rtems-4.10-bfin-rtems4.10-gdb
|
||||
GNU gdb targetting bfin-rtems4.10.
|
||||
|
||||
%files -n rtems-4.10-bfin-rtems4.10-gdb
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/bfin-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
%{_mandir}/man1/bfin-rtems4.10-*.1*
|
||||
|
||||
%dir %{_bindir}
|
||||
%{_bindir}/bfin-rtems4.10-*
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
EXTRA_DIST += binutils-sources.add
|
||||
|
||||
BINUTILS_OPTS =
|
||||
|
||||
BINUTILS_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/binutils.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/prep.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/build.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/install.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/rpm-install.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/target-binutils.add
|
||||
BINUTILS_SUBPACKAGES += $(top_srcdir)/binutils/base-binutils.add
|
||||
|
||||
$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am $(srcdir)/binutils-sources.add $(srcdir)/../binutils.am
|
||||
cat $(BINUTILS_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/binutils-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
|
||||
-e "s/[@]BINUTILS_PKGVERS[@]/$(BINUTILS_PKGVERS)/g" \
|
||||
-e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)%{?dist}/g" \
|
||||
-e "/--with-sysroot/d" \
|
||||
| $(MKSPEC0) > $(TARGET)-binutils.spec.in
|
||||
CLEANFILES += $(TARGET)-binutils.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
|
||||
$(MKSPEC) $(TARGET)-binutils.spec.in | $(SPECSTRIP) $(BINUTILS_OPTS) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-binutils.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-binutils.spec
|
||||
|
||||
EXTRA_DIST += $(BINUTILS_SUBPACKAGES)
|
||||
@@ -1,2 +0,0 @@
|
||||
echo "RTEMS gcc-%{gcc_version}-@GCC_RPMREL@/newlib-%{newlib_version}-@NEWLIB_RPMREL@" > gcc-%{gcc_pkgvers}/gcc/DEV-PHASE
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
EXTRA_DIST += $(srcdir)/../gcc-prep.add
|
||||
EXTRA_DIST += $(srcdir)/gcc-sources.add
|
||||
|
||||
GCC_OPTS = --languages=c --newlib
|
||||
|
||||
GCC_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/gccnewlib.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/prep.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/build.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/install.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/rpm-install.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gcc.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gcc.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-c++.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-gfortran.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-gfortran.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-objc.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/target-newlib.add
|
||||
GCC_SUBPACKAGES += $(top_srcdir)/gcc/base-newlib.add
|
||||
|
||||
$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am $(srcdir)/gcc-sources.add $(srcdir)/../gcc-prep.add $(srcdir)/../gcc.am
|
||||
cat $(GCC_SUBPACKAGES) \
|
||||
| sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/gcc-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "/[@]PREP[@]/r $(srcdir)/../gcc-prep.add" \
|
||||
-e "/[@]PREP[@]/d" \
|
||||
| sed \
|
||||
-e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
|
||||
-e "s/[@]GCC_PKGVERS[@]/$(GCC_PKGVERS)/g" \
|
||||
-e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)%{?dist}/g" \
|
||||
-e "s/[@]NEWLIB_VERS[@]/$(NEWLIB_VERS)/g" \
|
||||
-e "s/[@]NEWLIB_PKGVERS[@]/$(NEWLIB_PKGVERS)/g" \
|
||||
-e "s/[@]NEWLIB_RPMREL[@]/$(NEWLIB_RPMREL)%{?dist}/g" \
|
||||
-e "/--with-sysroot/d" \
|
||||
-e "/[@]tool_target[@]-sys-root/d" \
|
||||
-e "/[@]tool_target[@]-w32api-sys-root/d" \
|
||||
| $(MKSPEC0) > $(TARGET)-gcc.spec.in
|
||||
CLEANFILES += $(TARGET)-gcc.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
|
||||
$(MKSPEC) $(TARGET)-gcc.spec.in | $(SPECSTRIP) $(GCC_OPTS) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-gcc.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-gcc.spec
|
||||
|
||||
EXTRA_DIST += $(GCC_SUBPACKAGES)
|
||||
@@ -1,31 +0,0 @@
|
||||
EXTRA_DIST += gdb-sources.add
|
||||
|
||||
GDB_OPTS =
|
||||
|
||||
GDB_SUBPACKAGES = $(top_srcdir)/common/common.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/gdb/gdb.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/gdb/prep.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/gdb/build.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/gdb/install.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/gdb/rpm-install.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/common/clean.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/gdb/target-gdb.add
|
||||
GDB_SUBPACKAGES += $(top_srcdir)/gdb/base-gdb.add
|
||||
|
||||
$(TARGET)-gdb.spec.in: $(GDB_SUBPACKAGES) Makefile.am $(srcdir)/gdb-sources.add $(srcdir)/../gdb.am
|
||||
cat $(GDB_SUBPACKAGES) | sed \
|
||||
-e "/[@]SOURCES[@]/r $(srcdir)/gdb-sources.add" \
|
||||
-e "/[@]SOURCES[@]/d" \
|
||||
-e "s/[@]GDB_VERS[@]/$(GDB_VERS)/g" \
|
||||
-e "s/[@]GDB_PKGVERS[@]/$(GDB_PKGVERS)/g" \
|
||||
-e "s/[@]GDB_RPMREL[@]/$(GDB_RPMREL)%{?dist}/g" \
|
||||
-e "/--with-sysroot/d" \
|
||||
| $(MKSPEC0) > $(TARGET)-gdb.spec.in
|
||||
CLEANFILES += $(TARGET)-gdb.spec.in
|
||||
|
||||
@rpmprefix@$(TARGET)-gdb.spec: $(TARGET)-gdb.spec.in
|
||||
$(MKSPEC) $(TARGET)-gdb.spec.in | $(SPECSTRIP) $(GDB_OPTS) > $@
|
||||
CLEANFILES += @rpmprefix@$(TARGET)-gdb.spec
|
||||
noinst_DATA += @rpmprefix@$(TARGET)-gdb.spec
|
||||
|
||||
EXTRA_DIST += $(GDB_SUBPACKAGES)
|
||||
@@ -1,26 +0,0 @@
|
||||
# $Id$
|
||||
|
||||
TARGET = h8300-rtems4.10
|
||||
|
||||
include $(top_srcdir)/mkspec.am
|
||||
|
||||
BINUTILS_VERS = 2.20.1
|
||||
BINUTILS_PKGVERS = $(BINUTILS_VERS)
|
||||
BINUTILS_RPMREL = 3
|
||||
include ../binutils.am
|
||||
BINUTILS_OPTS +=
|
||||
|
||||
GCC_VERS = 4.4.6
|
||||
GCC_PKGVERS = $(GCC_VERS)
|
||||
GCC_RPMREL = 4
|
||||
NEWLIB_VERS = 1.18.0
|
||||
NEWLIB_PKGVERS = $(NEWLIB_VERS)
|
||||
NEWLIB_RPMREL = `expr $(GCC_RPMREL) + 23`
|
||||
include ../gcc.am
|
||||
GCC_OPTS += --languages=cxx
|
||||
|
||||
GDB_VERS = 7.2
|
||||
GDB_PKGVERS = $(GDB_VERS)
|
||||
GDB_RPMREL = 2
|
||||
include ../gdb.am
|
||||
GDB_OPTS +=
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user