Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:kte608:avr31
avr32-newlib
avr32-gcc-newlib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avr32-gcc-newlib.spec of Package avr32-newlib
# # RPM spec file for package avr32-gcc and newlib # for the Atmel AVR32 distribution # # Please submit bugfixes to avr@atmel.com # # $Id: avr32-gcc-newlib.spec 56824 2009-06-18 17:23:04Z pablaasmo $ # %define target avr32 %define newlib_version 1.16.0.atmel.1.0.0 #%define binutils_version 2.17.atmel.1.2.0 # This value should match the value after upstream version number # in <gcc-source-dir>/gcc/version.c %define atmel_gcc_version atmel.1.0.1 #%if "0%{?dist}" == "0" #%{error: You should define a distribution.} #%{echo: Put either '%dist <distro>' in your ~/.rpmmacros or } #%{echo: add '--define "dist <distro>" to the commandline.} #%{echo: <distro> might be .fc5, .fc4, .suse101... etc..} #%quit #%endif # do not generate debugging packages by default %define debug_package %{nil} # To avoid errors trying to strip avr32 object files %define __os_install_post %{nil} Name: avr32-gcc-newlib Summary: GCC and newlib supporting AVR32 Group: Development/Tools Version: 4.3.2 Release: %{atmel_gcc_version}_1%{?dist} Vendor: Atmel Corporation #Packager: Atmel AVR <avr@atmel.com> License: GPL URL: http://www.atmel.com/avr32 # Make it relocatable Prefix: /opt/cross BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: avr32-gcc-%{version}-%{atmel_gcc_version}.tar.gz Source1: avr32-newlib-%{newlib_version}.tar.gz #Source2: avr32-binutils-%{binutils_version}.tar.gz BuildRequires: avr32-binutils >= 2.18.atmel.1.0.1 BuildRequires: fdupes, gawk, binutils BuildRequires: gmp-devel, mpfr-devel #BuildRequires: mpfr-devel BuildRequires: zlib-devel, gettext, dejagnu, bison, flex, texinfo BuildRequires: automake, autoconf Requires: avr32-binutils >= 2.18.atmel.1.0.1 #Obsoletes: gcc-newlib-avr32 #Obsoletes: gcc-avr32-newlib #Obsoletes: gcc-avr32-newlib-c++-headers #Provides: avr32-gcc #Provides: gcc-avr32-newlib #Provides: gcc-avr32-newlib-c++-headers #################################################################### %description This is GCC and newlib for cross-compiling C and C++ programs for embedded AVR32. %package devel Summary: Delelopment Files #Group: %description devel Development files for avr32 %prep rm -rf "$RPM_BUILD_DIR/newlib-%{newlib_version}" %setup -q -b 1 -n gcc-%{version} # Now prep gcc autoconf # Prep newlib pushd ../newlib-%{newlib_version}/newlib/libc/machine/avr32 aclocal -I ../../.. autoconf automake --cygnus Makefile cd ../../sys/avr32 aclocal -I ../../.. autoconf automake --cygnus Makefile popd # Copy the C library into gcc's source tree to make a combined tree ln -s ../newlib-%{newlib_version}/newlib . ln -s ../newlib-%{newlib_version}/libgloss . # possible hack to set version info #sed -i -e 's/4\.1\.3/4.1.2/' gcc/BASE-VER gcc/version.c #sed -i -e 's/" (Atmel[^)]*)"/" (Atmel %{version}-%{gcc_release})"/' gcc/version.c #Touch and update some timestamps etc. ./contrib/gcc_update --touch %build %__rm -rf %{buildroot} # Finally, full gcc rm -rf $RPM_BUILD_DIR/build-gcc mkdir $RPM_BUILD_DIR/build-gcc pushd $RPM_BUILD_DIR/build-gcc # - Pass "--no-split" to makeinfo as we want to rename info files (see # "install"); when info is split, the documents will reference each other # via hard-coded filenames, so we can't just move the files. # ('--no-split' used only for gcc as the info contents are probably so small # that they are written to one file in any case for the other projects) MAKEINFOFLAGS="--no-split" \ $RPM_BUILD_DIR/gcc-%{version}/configure \ --target=%{target} \ --host=%{_host} \ --build=%{_build} \ --prefix=%{prefix} \ --infodir=%{_infodir} \ --mandir=%{_mandir} \ --enable-__cxa_atexit \ --disable-shared \ --disable-nls --without-included-gettext \ --with-newlib \ --disable-libssb \ --disable-libstdcxx-pch \ --with-dwarf2 \ --enable-version-specific-runtime-libs \ --enable-languages=c,c++ \ --enable-newlib-io-long-long \ --enable-newlib-io-long-double \ --enable-newlib-io-pos-args \ --with-local-prefix=%{prefix}/%{target} \ --with-pkgversion=%{atmel_gcc_version}-\(linux-special\) \ --with-bugurl=http://www.atmel.com/avr32 \ >configure.log 2>&1 make all info >make.log 2>&1 popd %install #export PATH=${PATH}:%{buildroot}%{prefix}/bin rm -rf %{buildroot} mkdir -p %{buildroot} pushd $RPM_BUILD_DIR/build-gcc make install install-info DESTDIR=$RPM_BUILD_ROOT >make-install.log 2>&1 popd # Discard symbols from object files strip %{buildroot}%{prefix}/bin/avr32-{c++,cpp,gcc,gcov} strip %{buildroot}%{prefix}/libexec/gcc/avr32/%{version}/{cc1,cc1plus,collect2,install-tools/fixincl} # Update names of info files so that we may include those, too ( cd %{buildroot}%{_infodir} ls | egrep -v '^%{target}' | while read info do %__mv $info %{target}-$info done ) # we don't want these as we are a cross version rm -r %{buildroot}%{_mandir}/man7 #rm -r %{buildroot}%{_prefix}/{info,share,man} rm %{buildroot}%{prefix}/%{_lib}/libiberty.a # and these aren't usefull for embedded targets rm -r %{buildroot}%{prefix}/lib/gcc/%{target}/%{version}/install-tools rm -r %{buildroot}%{prefix}/libexec/gcc/%{target}/%{version}/install-tools %fdupes $RPM_BUILD_ROOT %clean %__rm -rf %{buildroot} %files %defattr(-,root,root) %doc $RPM_BUILD_DIR/gcc-%{version}/COPYING $RPM_BUILD_DIR/gcc-%{version}/COPYING.LIB %doc $RPM_BUILD_DIR/gcc-%{version}/README %{prefix}/bin %{prefix}/libexec/gcc %{_infodir}/%{target}* %{_mandir}/man1/%{target}* %defattr(755,root,root) %dir %{prefix} %dir %{prefix}/lib %dir %{prefix}/libexec %files devel %defattr(-,root,root) %{prefix}/avr32/include/* %{prefix}/avr32/lib/* %{prefix}/lib/gcc/%{target} %defattr(755,root,root) %dir %{prefix}/avr32 %dir %{prefix}/avr32/lib %dir %{prefix}/avr32/include %dir %{prefix}/lib/gcc %changelog * Thu Jun 18 2009 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.3.2-atmel.1.0.1_1 - Version 4.3.2-atmel.1.0.1 * Tue Mar 3 2009 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.1.4_1 - Removed support for Read-Modify-Write memory instructions because it has a optimalisation bug * Thu Feb 12 2009 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.1.3_2 - Correction of reported version number from avr32-gcc * Thu Nov 27 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.1.3_1 - Version 4.2.2-atmel.1.1.3 * Fri Oct 31 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.1.2_1 - Version 4.2.2-atmel.1.1.2 * Wed Oct 8 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.1.1_1 - Version 4.2.2-atmel.1.1.1 - Updated use of autotools for config of newlib 1.16.0 - Changed check for distro * Thu Sep 23 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.1.0_1 - Version 4.2.2-atmel.1.1.0 * Mon Jun 30 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.0.10_3 - Version 4.2.2-atmel.1.0.10 * Wed May 7 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.0.8_3 - Added dependency of avr32binutils * Wed Apr 4 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.0.8_2 - Added dependency of avr32headers * Thu Mar 31 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.0.8_1 - Version 4.2.2-atmel.1.0.8 * Thu Mar 27 2008 Per Arnold Blaasmo <per-arnold.blaasmo@atmel.com> 4.2.2-atmel.1.0.7_1 - Version 4.2.2-atmel.1.0.7 * Tue Mar 25 2008 Per Arnold Blåsmo <pablaasmo@atmel.com> 4.2.2-atmel.1.0.6_1 - Version 4.2.2-atmel.1.0.6 * Wed Mar 19 2008 pablaasmo <pablaasmo@atmel.com> 4.2.2-atmel.1.0.5_1 - Changed to use a combined tree of gcc and newlib * Mon Mar 10 2008 Per Arnold Blåsmo <pablaasmo@atmel.com> 4.2.2-atmel.1.0.5_1 - Version 4.2.2-atmel.1.0.5 * Tue Feb 5 2008 pablaasmo <pablaasmo@atmel.com> 4.2.2-atmel.1.0.2_1 - Version 4.2.2-atmel.1.0.2 * Tue Dec 18 2007 Per Arnold Blaasmo <pablaasmo@atmel.com> - Version 4.2.2-atmel.1.0.1 * Thu Oct 25 2007 Per Arnold Blaasmo <pablaasmo@atmel.com> - Version 4.2.1-atmel.1.0.3 * Fri Oct 15 2007 Per Arnold Blaasmo <pablaasmo@atmel.com> - Version 4.2.1-atmel.1.0.2 - Change building of GCC to use --with-build-sysroot instead of --with-sysroot to avoid error regarding sysroot in linker. - Newlib configured with '--enable-newlib-io-long-long', '--enable-newlib-io-long-double', and '--enable-newlib-io-pos-args' * Fri Sep 14 2007 Per Arnold Blaasmo <pablaasmo@atmel.com> - Total rewrite of spec file - Rename package to avr32-gcc-newlib - Package c++-headers removed, and included in main package - Version 4.2.1-atmel.1.0.0 - Using new upstream version 4.2.1 of gcc - Uses '--with-sysroot' - Uses '--enable-version-specific-runtime-libs' - Uses '--disable-libstdcxx-pch' to save space - Set '--infodir' and '--mandir' since default in GCC and in distro may differ - Removed '--with-gxx-include-dir' because of '--enable-ver...' - Uses '--with-dwarf2' to make sure dwarf2 is default format - Includes info files, but renames them to not conflict with native ones - Building gcc bootstrap version first before newlib and gcc-final - Stopped using one-tree method due to some problems getting it to compile * Fri May 18 2007 Per Arnold Blaasmo <pablaasmo@atmel.com> - Version 4.1.2-atmel.1.1.0 - Added support for UC3 series of MCU's * Thu Mar 27 2007 Per Arnold Blaasmo <pablaasmo@atmel.com> - Bumped version 4.1.2-atmel.1.0.0 * Fri Jan 19 2007 Per Arnold Blaasmo <pablaasmo@atmel.com> - Bumped version 4.0.2_atmel.1.0.0 - Depends on newlib 1.14.0.atmel.1.0.0 - added option '--with-gxx-include-dir' when doing configure
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor