Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 364041
Collapse All | Expand All

(-)a/linux-info.eclass (-2 / +2 lines)
Lines 237-243 Link Here
237
# It returns true if .config exists in a build directory otherwise false
237
# It returns true if .config exists in a build directory otherwise false
238
linux_config_src_exists() {
238
linux_config_src_exists() {
239
	export _LINUX_CONFIG_EXISTS_DONE=1
239
	export _LINUX_CONFIG_EXISTS_DONE=1
240
	[ -s "${KV_OUT_DIR}/.config" ]
240
	[ -n "${KV_OUT_DIR}" -a -f "${KV_OUT_DIR}/.config" ]
241
}
241
}
242
242
243
# @FUNCTION: linux_config_bin_exists
243
# @FUNCTION: linux_config_bin_exists
Lines 246-252 Link Here
246
# It returns true if .config exists in /proc, otherwise false
246
# It returns true if .config exists in /proc, otherwise false
247
linux_config_bin_exists() {
247
linux_config_bin_exists() {
248
	export _LINUX_CONFIG_EXISTS_DONE=1
248
	export _LINUX_CONFIG_EXISTS_DONE=1
249
	[ -s "/proc/config.gz" ]
249
	[ -f "/proc/config.gz" ]
250
}
250
}
251
251
252
# @FUNCTION: linux_config_exists
252
# @FUNCTION: linux_config_exists

Return to bug 364041