config/companion_libs/ppl.in
author Cody Schafer <dev@codyps.com>
Fri May 09 19:13:49 2014 -0700 (2014-05-09)
changeset 3312 4876ff97e039
parent 2957 3e2f2100a76d
permissions -rw-r--r--
cc/gcc: allow CC_EXTRA_CONFIG_ARRAY on baremetal

The final bare-metal compiler is built using the core backend.
Currently the core uses the CC_CORE_EXTRA_CONFIG_ARRAY variable.

While this works as supposed to, this can leave the user puzzled
in the menuconfig, since all he can see is the core options, not
the final options.

Only show the core options if any of the core passes are needed,
and use the final options in the core-backend if we're issuing
the bare-metal compiler.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: hide core options if no core pass needed;
use final option in core backend if issuing the bare-metal compiler]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <22181e546ba746202489.1399688067@localhost>
Patchwork-Id: 347586
     1 # PPL options
     2 
     3 choice
     4     bool
     5     prompt "PPL version"
     6 # Don't remove next line
     7 # CT_INSERT_VERSION_BELOW
     8 
     9 config PPL_V_0_11_2
    10     bool
    11     prompt "0.11.2"
    12     select PPL_0_11
    13 
    14 config PPL_V_0_11_1
    15     bool
    16     prompt "0.11.1"
    17     select PPL_0_11
    18 
    19 config PPL_V_0_11
    20     bool
    21     prompt "0.11"
    22     select PPL_0_11
    23 
    24 config PPL_V_0_10_2
    25     bool
    26     prompt "0.10.2"
    27     select PPL_NEEDS_FPERMISSIVE
    28 
    29 endchoice
    30 
    31 config PPL_VERSION
    32     string
    33 # Don't remove next line
    34 # CT_INSERT_VERSION_STRING_BELOW
    35     default "0.11.2" if PPL_V_0_11_2
    36     default "0.11.1" if PPL_V_0_11_1
    37     default "0.11" if PPL_V_0_11
    38     default "0.10.2" if PPL_V_0_10_2
    39 
    40 # For PPL 0.10, we need -fpermissive to build on gcc 4.7+
    41 # (even gcc-4.6+ ?)
    42 config PPL_NEEDS_FPERMISSIVE
    43     bool
    44 
    45 # For PPL 0.11, we need to pull libpwl if configured static
    46 config PPL_0_11
    47     bool
    48     select PPL_NEEDS_LIBPWL if ! COMPLIBS_SHARED
    49 
    50 config PPL_NEEDS_LIBPWL
    51     bool