Changeset b537e55 in rtems-source-builder


Ignore:
Timestamp:
Mar 1, 2016, 3:33:22 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.9, master
Children:
3a972f6
Parents:
c46f212
Message:

Clean up 4.9 build issues.

Add support so 4.9 builds on a recent FreeBSD using clang.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • rtems/config/tools/rtems-gcc-4.3.2-newlib-1.16.0-1.cfg

    rc46f212 rb537e55  
    2525
    2626#
     27# Checksums.
     28#
     29%hash sha512 gcc-core-4.3.2.tar.bz2 7fa7cfd57b3cb37990f41132037666d511a480df28d6d5a0620520501488abad89c7843067188bbe23f0c4d3eb5d113537a6a9375135596b58b3d7a848dc8a39
     30%hash sha512 gcc-core-4.3.2-rtems4.9-20090825.diff d326372a756a7289404031eb16dcc51c15259342ea3f8697f23cfa754ee38305d5e6aaeef56c83f11cdd28c85711c430d894a87303ad932b024a17fa4aaa4f63
     31%hash sha512 gcc-g++-%{gcc_version}.tar.bz2 b349344a9ea67418cca4b7465263e7c28b28008b9fbd76d7db2fb4ad38e63a943c601bc33e641319d48a48a8848562afff96c9ddaf90141d9ab835be6b955bb7
     32%hash sha512 mpfr-2.4.2.tar.bz2 c004b3dbf86c04960e4a1f8db37a409a7cc4cb76135e76e98dcc5ad93aaa8deb62334ee13ff84447a7c12a5e8cb57f25c62ac908c24920f1fb1a38d79d4a4c5e
     33%hash sha512 mpc-0.8.2.tar.gz dcaac3897adf1411e1199e295e88d7438afc600f412565c3b450b0102b83751eb160f85b7522891195ff0a0a29fccedd07dc011a950969a0979c4e3d4efc1e10
     34%hash sha512 gmp-5.0.5.tar.bz2 64ba88a4a64fefb16eae9c644ea81194011ea0b42664a5af6b014e7da3d0f09605dee518b9a361b06510311cdfd496ab68d09da3d85d6680bdac3f765eb67f61
     35%hash sha512 newlib-1.16.0.tar.gz 40eb96bbc6736a16b6399e0cdb73e853d0d90b685c967e77899183446664d64570277a633fdafdefc351b46ce210a99115769a1d9f47ac749d7e82837d4d1ac3
     36%hash sha512 newlib-1.16.0-rtems4.9-20090324.diff 6222e85dc8a5f49089742b09348b4f9663861d8c41dba79227d0ff343d4a9f71a5a1d7aacd61567401b924c6453f0e44bc8045226f25ded2bd3fa8ede4c9742f
     37
     38#
    2739# The gcc/newlib build instructions. We use 4.7 Release 1.
    2840#
  • rtems/config/tools/rtems-gdb-6.8-1.cfg

    rc46f212 rb537e55  
    99
    1010#
     11# Force the standard of C code for GCC.
     12#
     13%define build_cflags %{build_cflags} --std=gnu89 -Wno-return-type
     14
     15#
    1116# RTEMS Build Set patches.
    1217#
     
    1419%patch  add gdb %{rtems_gdb_patches}/gdb-6.8-rtems4.9-20091111.diff
    1520
     21%hash sha512 gdb-6.8a.tar.bz2 5114fe14ab25dc085590acff3a6feb75eb93347e501c634548308c4f51b31416ea23b8e612dfc54da466d3e7471e210d8f7a12ff6c050e9e89920884e5a64008
     22%hash sha512 gdb-6.8-rtems4.9-20091111.diff 2e6eb2bdeac4bba7c2fcaf701399148fc5de82dfa81e021111f5a20654afe5aad77d6fd0edbc31965107f2fe9a43738938d79a313836267ad69dc8509fcbf691
     23
    1624#
    1725# The gdb build instructions. We use 6.xx Release 1.
  • rtems/config/tools/rtems-kernel-4.9.6-1.cfg

    rc46f212 rb537e55  
    1010%define rtems_kernel_compression bz2
    1111
     12%hash sha512 rtems-4.9.6.tar.bz2 16ab7b2f9119208a24dc0bd21361a5fd910e73044c42d7b68174490ca9cc5c226543664831f9a036f28d1cf8b61d19a15404516d7a87d424e0bc2c09e60767e3
     13
    1214#
    1315# The RTEMS build instructions. We use 4.xx Release 1.
  • source-builder/config/gcc-4.3-1.cfg

    rc46f212 rb537e55  
    11#
    2 # GCC 4.7 Version 1.
     2# GCC 4.3.1 Version 1.
    33#
    44# This configuration file configure's, make's and install's gcc. It uses
    55# newlib, MPFR, MPC, and GMP in a one-tree build configuration.
    66#
     7
     8#
     9# Force the standard of C code for GCC.
     10#
     11%define build_cflags %{build_cflags} --std=gnu89
    712
    813#
  • source-builder/config/gdb-6-1.cfg

    rc46f212 rb537e55  
    44# This configuration file configure's, make's and install's gdb.
    55#
     6
     7#
     8# See if the simulator has been disabled for Windows.
     9#
     10%if %{_host_os} == win32
     11 %if %{defined win32-gdb-disable-sim}
     12  %define gdb-disable-sim 1
     13  %endif
     14%endif
     15
     16#
     17# Default to building simulators.
     18#
     19%ifn %{defined gdb-disable-sim}
     20 %define gdb-disable-sim 0
     21%else
     22 %undefine gdb-sim-options
     23%endif
    624
    725%include %{_configdir}/checks.cfg
     
    2038
    2139#
     40# Disable Python on Cxc builds for now.
     41#
     42%if "%{_build}" != "%{_host}"
     43  %define without_python
     44%endif
     45
     46#
    2247# Prepare the source code.
    2348#
    2449%prep
    25   %source setup gdb -q -c -n %{name}-%{version}
    26   cd gdb-%{gdb_version}
     50  build_top=$(pwd)
     51
     52  gdb_source=%{?gdb_external:%{gdb_expand_name}}%{!?gdb_external:"gdb-%{gdb_version}"}
     53
     54  source_dir_gdb=${gdb_source}
     55  %source setup gdb -q -n ${gdb_source}
    2756  %patch setup gdb -p1
    28   cd ..
     57
     58  cd ${build_top}
    2959
    3060%build
    31   export PATH="%{_bindir}:${PATH}"
    32   mkdir -p build
    33   cd build
    34 %if "%{_build}" != "%{_host}"
    35   CFLAGS_FOR_BUILD="-g -O2 -Wall" \
    36 %endif
    37   CFLAGS="$SB_CFLAGS" \
    38   ../gdb-%{gdb_version}/configure \
     61  build_top=$(pwd)
     62
     63  %{build_directory}
     64
     65  mkdir -p ${build_dir}
     66  cd ${build_dir}
     67
     68  %{host_build_flags}
     69
     70  if test "%{_build}" != "%{_host}" ; then
     71    GDB_LIBS_STATIC="-lexpat"
     72  else
     73    GDB_LIBS_STATIC="-lexpat"
     74    GDB_LIBS="%{_forced_static}"
     75  fi
     76
     77  LIBS_STATIC=${GDB_LIBS_STATIC} \
     78  LIBS=${GDB_LIBS} \
     79  ../${source_dir_gdb}/configure \
    3980    --build=%{_build} --host=%{_host} \
    4081    --target=%{_target} \
     
    4384    --disable-win32-registry \
    4485    --disable-werror \
    45     --enable-sim \
     86    %{!?gdb-disable-sim:--enable-sim}%{?gdb-disable-sim:--disable-sim} \
     87    %{?gdb-sim-options:%{gdb-sim-options}} \
     88    --without-zlib \
    4689    --with-expat \
    4790    %{!?without_python:--with-python} \
     
    5295
    5396  %{__make} %{?_smp_mflags} all
    54   cd ..
     97
     98  cd ${build_top}
    5599
    56100%install
    57   export PATH="%{_bindir}:${PATH}"
    58   rm -rf $SB_BUILD_ROOT
     101  build_top=$(pwd)
    59102
    60   cd build
     103  %{__rmdir} $SB_BUILD_ROOT
     104
     105  cd ${build_dir}
    61106  %{__make} DESTDIR=$SB_BUILD_ROOT install
    62107
    63108  # Dropped in FSF-binutils-2.9.5, but Cygwin still ships it.
    64   rm -rf $SB_BUILD_ROOT%{_infodir}/configure.info*
     109  %{__rmdir} $SB_BUILD_ROOT%{_infodir}/configure.info*
    65110
    66   rm -f $SB_BUILD_ROOT%{_infodir}/dir
     111  %{__rmfile} $SB_BUILD_ROOT%{_infodir}/dir
    67112  touch $SB_BUILD_ROOT%{_infodir}/dir
    68113
    69   cd ..
     114  cd ${build_top}
Note: See TracChangeset for help on using the changeset viewer.