summaryrefslogtreecommitdiff
path: root/config/global
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-31 10:05:52 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-08-31 10:05:52 (GMT)
commitdc836b5e4d3e4ab48cb3a665cd46f7efdf2af4e1 (patch)
tree28dc9c34d2cf61b7c295e2df1282a27b8f7f9768 /config/global
parentc992de9eb562c66b9b7782c80942cf1dcab486db (diff)
config: make selecting the patch origin a choice rather than a bool
Diffstat (limited to 'config/global')
-rw-r--r--config/global/paths.in58
1 files changed, 38 insertions, 20 deletions
diff --git a/config/global/paths.in b/config/global/paths.in
index 8945dee..2a35af2 100644
--- a/config/global/paths.in
+++ b/config/global/paths.in
@@ -60,36 +60,54 @@ config INSTALL_DIR
# The reason you might also want to install elsewhere is if you are going
# to package your shinny new toolchain for distribution.
-config CUSTOM_PATCH
+choice
+ prompt "Patches origin"
bool
- prompt "Use custom patch directory"
- default n
+ default PATCH_BUNDLED
+
+config PATCH_BUNDLED
+ bool
+ prompt "Bundled only"
help
- If you have custom patches that you want to be applied, say 'Y' here and
- enter the path directory below.
-
- Note that you must ensure that the patch directory is arranged the same
- way the official directory is.
+ Only apply patches bundled with crosstool-NG.
-config CUSTOM_PATCH_ONLY
+config PATCH_LOCAL
bool
- prompt "Only use custom patches"
- default n
- depends on CUSTOM_PATCH
+ prompt "Local only"
+ select PATCH_USE_LOCAL
help
- Don't apply patches coming with crosstool-NG, only those patches available
- in the directory below.
-
- If you say 'N' here, then the patches provided with crosstool-NG will be
- applied first, and then your patches.
+ Only apply your local patches.
+
+config PATCH_BUNDLED_LOCAL
+ bool
+ prompt "Bundled, then local"
+ select PATCH_USE_LOCAL
+ help
+ Apply the patches bundled with crosstool-NG,
+ then apply your local patches.
+
+endchoice
+
+config PATCH_ORDER
+ string
+ default "bundled" if PATCH_BUNDLED
+ default "local" if PATCH_LOCAL
+ default "bundled,local" if PATCH_BUNDLED_LOCAL
-config CUSTOM_PATCH_DIR
+config PATCH_USE_LOCAL
+ bool
+ default n
+
+config LOCAL_PATCH_DIR
string
- prompt "Custom patch directory"
+ prompt "| Local patch directory"
default ""
- depends on CUSTOM_PATCH
+ depends on PATCH_USE_LOCAL
help
Enter the custom patch directory here.
+
+ Note that you must ensure that the directory contianing your custom
+ patches is arranged the same way the official directory is.
config REMOVE_DOCS
bool