summaryrefslogtreecommitdiff
path: root/config/cc
diff options
context:
space:
mode:
authorCody Schafer <dev@codyps.com>2014-05-09 19:13:49 -0700
committerCody Schafer <dev@codyps.com>2014-05-09 19:13:49 -0700
commitdb2872f2acda564162814d54aea6db8bb116cb73 (patch)
tree5e5e9e5511919a2589ed18f08f322d202f0da772 /config/cc
parentb61a1b13ee0e9d4960c45240a87484be6198dc62 (diff)
downloadcrosstool-ng-db2872f2acda564162814d54aea6db8bb116cb73.tar.gz
crosstool-ng-db2872f2acda564162814d54aea6db8bb116cb73.tar.bz2
crosstool-ng-db2872f2acda564162814d54aea6db8bb116cb73.zip
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
Diffstat (limited to 'config/cc')
-rw-r--r--config/cc/gcc.in.22
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2
index 822cfd7c..ef976982 100644
--- a/config/cc/gcc.in.2
+++ b/config/cc/gcc.in.2
@@ -15,6 +15,7 @@ config CC_CORE_EXTRA_CONFIG_ARRAY
string
prompt "Core gcc extra config"
default ""
+ depends on CC_CORE_PASS_1_NEEDED || CC_CORE_PASS_2_NEEDED
help
Extra flags to pass onto ./configure when configuring the core gcc.
@@ -29,7 +30,6 @@ config CC_EXTRA_CONFIG_ARRAY
string
prompt "gcc extra config"
default ""
- depends on ! BARE_METAL
help
Extra flags to pass onto ./configure when configuring gcc.