summaryrefslogtreecommitdiff
path: root/config/binutils/binutils.in
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2015-12-18 09:42:09 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2015-12-18 09:42:09 (GMT)
commit7f949eafaf8167855b7749910e1aa304f5316edb (patch)
tree115b1bca266d57cc7e2c0940fd4f14ca415a888d /config/binutils/binutils.in
parent2d3c70dd3ddc5a569c0fa1a833fd5920029b5794 (diff)
parent9f89e082c5bcb3c49013eeeae0a1ccbac1d91ba9 (diff)
Merge pull request #288 from bhundven/custom_locations_rewrite
Custom locations rewrite
Diffstat (limited to 'config/binutils/binutils.in')
-rw-r--r--config/binutils/binutils.in54
1 files changed, 37 insertions, 17 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in
index fc57412..ef59870 100644
--- a/config/binutils/binutils.in
+++ b/config/binutils/binutils.in
@@ -2,6 +2,41 @@
comment "GNU binutils"
+config BINUTILS_CUSTOM
+ bool
+ prompt "Custom binutils"
+ depends on EXPERIMENTAL
+ select BINUTILS_2_25_or_later
+ help
+ The choosen binutils version shall be not downloaded. Instead use
+ a custom location to get the source.
+
+if BINUTILS_CUSTOM
+
+config BINUTILS_CUSTOM_LOCATION
+ string
+ prompt "Full path to custom binutils source"
+ help
+ Enter the path to the directory or tarball of your source for binutils.
+
+ If the path is a tarball, it should extract to: <name>-<version>/
+ where the name is this component, binutils, and the version is set
+ below in the custom version string.
+
+config BINUTILS_CUSTOM_VERSION
+ string
+ prompt "Binutils Custom Version number"
+ help
+ Enter the version number for your custom binutils.
+
+config BINUTILS_VERSION
+ string
+ default BINUTILS_CUSTOM_VERSION
+
+endif # BINUTILS_CUSTOM
+
+if ! BINUTILS_CUSTOM
+
config CC_BINUTILS_SHOW_LINARO
bool
prompt "Show Linaro versions"
@@ -94,23 +129,6 @@ config BINUTILS_V_2_18a
endchoice
-config BINUTILS_CUSTOM
- bool
- prompt "Custom binutils"
- depends on EXPERIMENTAL
-
-if BINUTILS_CUSTOM
-
-config BINUTILS_CUSTOM_LOCATION
- string
- prompt "Full path to custom binutils source"
- default ""
- help
- Enter the path to the directory (or tarball) of your source for binutils,
- or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/binutils
-
-endif # BINUTILS_CUSTOM
-
config BINUTILS_VERSION
string
# Don't remove next line
@@ -129,6 +147,8 @@ config BINUTILS_VERSION
default "2.19.1a" if BINUTILS_V_2_19_1a
default "2.18a" if BINUTILS_V_2_18a
+endif # ! BINUTILS_CUSTOM
+
config BINUTILS_2_25_1_or_later
bool
select BINUTILS_2_25_or_later