mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
linux-info.eclass: Skip linux_config_*_exists on non-Linux
The linux_config_src_exists and linux_config_bin_exists always return false on non-Linux systems by design. Short-circuit it via 'kernel_linux' check.
This commit is contained in:
@@ -252,7 +252,7 @@ linux_config_qa_check() {
|
||||
# It returns true if .config exists in a build directory otherwise false
|
||||
linux_config_src_exists() {
|
||||
export _LINUX_CONFIG_EXISTS_DONE=1
|
||||
[[ -n ${KV_OUT_DIR} && -s ${KV_OUT_DIR}/.config ]]
|
||||
use kernel_linux && [[ -n ${KV_OUT_DIR} && -s ${KV_OUT_DIR}/.config ]]
|
||||
}
|
||||
|
||||
# @FUNCTION: linux_config_bin_exists
|
||||
@@ -261,7 +261,7 @@ linux_config_src_exists() {
|
||||
# It returns true if .config exists in /proc, otherwise false
|
||||
linux_config_bin_exists() {
|
||||
export _LINUX_CONFIG_EXISTS_DONE=1
|
||||
[[ -s /proc/config.gz ]]
|
||||
use kernel_linux && [[ -s /proc/config.gz ]]
|
||||
}
|
||||
|
||||
# @FUNCTION: linux_config_exists
|
||||
|
||||
Reference in New Issue
Block a user