Changeset 6444d58 in rtems-source-builder for rtems/config/rtems-bsp.cfg


Ignore:
Timestamp:
Jul 20, 2015, 3:49:42 AM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.9, 5, master
Children:
f936478
Parents:
fba2549
Message:

Canandian Cross Compiling and RTEMS 3rd party package building Fixes.

The change fixes installing for RTEMS 3rd Party packages where the
RSB considered them Canadian Cross Compiling (Cxc). Fixing the
Cxc issue broke real Cxc builds. The change corrects the issue of
macros being changed in the Cxc and the prep data not being udpated.
The configuration is loaded again after the updated macros. The
macros are also copied and restored to ensure a clean stable base.

The change also introduces --rtems-tools and --rtems-bsp to align
the command line with the waf configure process or RTEMS application.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtems/config/rtems-bsp.cfg

    rfba2549 r6444d58  
    44
    55#
    6 # The RTEMS BSP support requires the host turple, the RTEMS BSP
    7 # and the path to the tools. The prefix is set to an installed
    8 # RTEMS. The built package is installed into the prefix.
     6# The RTEMS BSP support requires the host turple, the RTEMS BSP and the path to
     7# the tools. The prefix is set to an installed RTEMS. The built package is
     8# installed into the prefix.
    99#
    10 # Keeping the package's installed path in the RTEMS install path
    11 # and separate to the tools lets the tools version vary
    12 # independently. If --with-tools is not provided use the prefix.
     10# Keeping the package's installed path in the RTEMS install path and separate
     11# to the tools lets the tools version vary independently. If --rtems-tools
     12# (--with-tools) is not provided use the prefix.
    1313#
    1414
    15 %if %{_host} == %{nil}
    16  %error No RTEMS target specified: --host=host
     15%if %{_target} == %{nil}
     16 %error No RTEMS target specified: --rtems-bsp=arch/bsp (or --target=target)
     17%endif
     18
     19%if %{_host} != %{_build}
     20 %error Canadian cross building for BSP is not supported.
    1721%endif
    1822
    1923%ifn %{defined with_rtems_bsp}
    20  %error No RTEMS BSP specified: --with-rtems-bsp=bsp
     24 %error No RTEMS BSP specified: --rtems-bsp=arch/bsp (or --with-rtems-bsp=bsp)
    2125%endif
    2226
     
    2428 %define with_tools %{_prefix}
    2529%endif
     30
     31#
     32# Set the host to the target.
     33#
     34%define _host %{_target}
    2635
    2736#
     
    4756%define rtems_bsp_ldflags   %{pkgconfig ldflags %{_host}-%{rtems_bsp}}
    4857%define rtems_bsp_libs      %{pkgconfig libs    %{_host}-%{rtems_bsp}}
     58
     59%if %{rtems_bsp_cflags} == %{nil}
     60 %error No RTEMS target CFLAGS found; Please check the --rtems-bsp option.
     61%endif
    4962
    5063%if %{rtems_bsp_ccflags} == %{nil}
Note: See TracChangeset for help on using the changeset viewer.