diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2021-05-05 19:56:15 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-13 22:10:06 +0100 |
commit | 8eec52f483ee54f8e4466df88bd4359c793f3025 (patch) | |
tree | dd514305724328129260b8582e66989257a26ae3 /meta/classes | |
parent | 5c1a6a8f81212f9e53291842f2fab66fbf4b8681 (diff) | |
download | poky-8eec52f483ee54f8e4466df88bd4359c793f3025.tar.gz |
sanity.bbclass: mention CONNECTIVITY_CHECK_URIS in network failure message
This expands the error message when a network failure is detected.
It happens that some ISPs or networks block the default example.com
domain. Therefore, instead of disabling network access, it
lets the user know how to modify the test URL.
(From OE-Core rev: 690e368ae06a461fb21b4eee1b78fb637279bbfe)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 62c94bb925543c1e1c5af3c751913d9f06d9597d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/sanity.bbclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 83bced2db3..2325ee2747 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -392,9 +392,12 @@ def check_connectivity(d): | |||
392 | msg = data.getVar('CONNECTIVITY_CHECK_MSG') or "" | 392 | msg = data.getVar('CONNECTIVITY_CHECK_MSG') or "" |
393 | if len(msg) == 0: | 393 | if len(msg) == 0: |
394 | msg = "%s.\n" % err | 394 | msg = "%s.\n" % err |
395 | msg += " Please ensure your host's network is configured correctly,\n" | 395 | msg += " Please ensure your host's network is configured correctly.\n" |
396 | msg += " or set BB_NO_NETWORK = \"1\" to disable network access if\n" | 396 | msg += " If your ISP or network is blocking the above URL,\n" |
397 | msg += " all required sources are on local disk.\n" | 397 | msg += " try with another domain name, for example by setting:\n" |
398 | msg += " CONNECTIVITY_CHECK_URIS = \"https://www.yoctoproject.org/\"" | ||
399 | msg += " You could also set BB_NO_NETWORK = \"1\" to disable network\n" | ||
400 | msg += " access if all required sources are on local disk.\n" | ||
398 | retval = msg | 401 | retval = msg |
399 | 402 | ||
400 | return retval | 403 | return retval |