diff options
| -rw-r--r-- | bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml index 86bf30bb77..688edc92c2 100644 --- a/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml +++ b/bitbake/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.xml | |||
| @@ -102,6 +102,56 @@ | |||
| 102 | </glossdef> | 102 | </glossdef> |
| 103 | </glossentry> | 103 | </glossentry> |
| 104 | 104 | ||
| 105 | <glossentry id='var-BB_ALLOWED_NETWORKS'><glossterm>BB_ALLOWED_NETWORKS</glossterm> | ||
| 106 | <glossdef> | ||
| 107 | <para> | ||
| 108 | Specifies a space-delimited list of hosts that the fetcher | ||
| 109 | is allowed to use to obtain the required source code. | ||
| 110 | Following are considerations surrounding this variable: | ||
| 111 | <itemizedlist> | ||
| 112 | <listitem><para> | ||
| 113 | This host list is only used if | ||
| 114 | <link linkend='var-BB_NO_NETWORK'><filename>BB_NO_NETWORK</filename></link> | ||
| 115 | is either not set or set to "0". | ||
| 116 | </para></listitem> | ||
| 117 | <listitem><para> | ||
| 118 | Limited support for wildcard matching against the | ||
| 119 | beginning of host names exists. | ||
| 120 | For example, the following setting matches | ||
| 121 | <filename>git.gnu.org</filename>, | ||
| 122 | <filename>ftp.gnu.org</filename>, and | ||
| 123 | <filename>foo.git.gnu.org</filename>. | ||
| 124 | <literallayout class='monospaced'> | ||
| 125 | BB_ALLOWED_NETWORKS = "*.gnu.org" | ||
| 126 | </literallayout> | ||
| 127 | </para></listitem> | ||
| 128 | <listitem><para> | ||
| 129 | Mirrors not in the host list are skipped and | ||
| 130 | logged in debug. | ||
| 131 | </para></listitem> | ||
| 132 | <listitem><para> | ||
| 133 | Attempts to access networks not in the host list | ||
| 134 | cause a failure. | ||
| 135 | </para></listitem> | ||
| 136 | </itemizedlist> | ||
| 137 | Using <filename>BB_ALLOWED_NETWORKS</filename> in | ||
| 138 | conjunction with | ||
| 139 | <link linkend='var-PREMIRRORS'><filename>PREMIRRORS</filename></link> | ||
| 140 | is very useful. | ||
| 141 | Adding the host you want to use to | ||
| 142 | <filename>PREMIRRORS</filename> results in the source code | ||
| 143 | being fetched from an allowed location and avoids raising | ||
| 144 | an error when a host that is not allowed is in a | ||
| 145 | <link linkend='var-SRC_URI'><filename>SRC_URI</filename></link> | ||
| 146 | statement. | ||
| 147 | This is because the fetcher does not attempt to use the | ||
| 148 | host listed in <filename>SRC_URI</filename> after a | ||
| 149 | successful fetch from the | ||
| 150 | <filename>PREMIRRORS</filename> occurs. | ||
| 151 | </para> | ||
| 152 | </glossdef> | ||
| 153 | </glossentry> | ||
| 154 | |||
| 105 | <glossentry id='var-BB_CONSOLELOG'><glossterm>BB_CONSOLELOG</glossterm> | 155 | <glossentry id='var-BB_CONSOLELOG'><glossterm>BB_CONSOLELOG</glossterm> |
| 106 | <glossdef> | 156 | <glossdef> |
| 107 | <para> | 157 | <para> |
