1 |
The linux_config_src_exists and linux_config_bin_exists always return |
2 |
false on non-Linux systems by design. Short-circuit it via |
3 |
'kernel_linux' check. |
4 |
--- |
5 |
eclass/linux-info.eclass | 4 ++-- |
6 |
1 file changed, 2 insertions(+), 2 deletions(-) |
7 |
|
8 |
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass |
9 |
index 554de81d3acc..8ac290979247 100644 |
10 |
--- a/eclass/linux-info.eclass |
11 |
+++ b/eclass/linux-info.eclass |
12 |
@@ -252,7 +252,7 @@ linux_config_qa_check() { |
13 |
# It returns true if .config exists in a build directory otherwise false |
14 |
linux_config_src_exists() { |
15 |
export _LINUX_CONFIG_EXISTS_DONE=1 |
16 |
- [[ -n ${KV_OUT_DIR} && -s ${KV_OUT_DIR}/.config ]] |
17 |
+ use kernel_linux && [[ -n ${KV_OUT_DIR} && -s ${KV_OUT_DIR}/.config ]] |
18 |
} |
19 |
|
20 |
# @FUNCTION: linux_config_bin_exists |
21 |
@@ -261,7 +261,7 @@ linux_config_src_exists() { |
22 |
# It returns true if .config exists in /proc, otherwise false |
23 |
linux_config_bin_exists() { |
24 |
export _LINUX_CONFIG_EXISTS_DONE=1 |
25 |
- [[ -s /proc/config.gz ]] |
26 |
+ use kernel_linux && [[ -s /proc/config.gz ]] |
27 |
} |
28 |
|
29 |
# @FUNCTION: linux_config_exists |
30 |
-- |
31 |
2.16.2 |