config/global: enable not using patches at all
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Nov 16 20:15:45 2009 +0100 (2009-11-16)
changeset 16301409ba438ea1
parent 1629 6ea5b6e2d70f
child 1631 14abcd185e4b
config/global: enable not using patches at all

It can be needed to build a toolchain with no patch at all.
config/global/extract.in
scripts/functions
     1.1 --- a/config/global/extract.in	Sat Nov 14 15:03:01 2009 -0600
     1.2 +++ b/config/global/extract.in	Mon Nov 16 20:15:45 2009 +0100
     1.3 @@ -93,6 +93,19 @@
     1.4        Only apply your local patches;
     1.5        if there's no local patches, apply patches bundled with crosstool-NG.
     1.6  
     1.7 +config PATCH_NONE
     1.8 +    bool
     1.9 +    prompt "None"
    1.10 +    help
    1.11 +      Don't use any patch at all.
    1.12 +      
    1.13 +      Please be carefull if you select this. Most components do require
    1.14 +      patches to properly build. It can happen, however, that support for
    1.15 +      your architecture is clean enough that you can build a toolchain
    1.16 +      with no patch. But most probably, this is *not* the case.
    1.17 +      
    1.18 +      Be safe, use (the bundeld) patches.
    1.19 +
    1.20  endchoice
    1.21  
    1.22  config PATCH_ORDER
    1.23 @@ -101,6 +114,7 @@
    1.24      default "local"             if PATCH_LOCAL
    1.25      default "bundled,local"     if PATCH_BUNDLED_LOCAL
    1.26      default "local,bundled"     if PATCH_LOCAL_BUNDLED
    1.27 +    default "none"              if PATCH_NONE
    1.28  
    1.29  config PATCH_SINGLE
    1.30      bool
     2.1 --- a/scripts/functions	Sat Nov 14 15:03:01 2009 -0600
     2.2 +++ b/scripts/functions	Mon Nov 16 20:15:45 2009 +0100
     2.3 @@ -630,6 +630,7 @@
     2.4          local)          patch_dirs=("${local_patch_dir}");;
     2.5          bundled,local)  patch_dirs=("${bundled_patch_dir}" "${local_patch_dir}");;
     2.6          local,bundled)  patch_dirs=("${local_patch_dir}" "${bundled_patch_dir}");;
     2.7 +        none)           patch_dirs=;;
     2.8      esac
     2.9  
    2.10      for d in "${patch_dirs[@]}"; do