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

(-)linux-info.eclass.getfilevar (-10 / +10 lines)
Lines 288-296 Link Here
288
288
289
		KV_LOCAL="$(get_localversion ${KV_OUT_DIR})"
289
		KV_LOCAL="$(get_localversion ${KV_OUT_DIR})"
290
	fi
290
	fi
291
	# and if we STILL haven't got it, then we better just set it to KV_DIR
291
	# and if we STILL have not got it, then we better just set it to KV_DIR
292
	KV_OUT_DIR="${KV_OUT_DIR:-${KV_DIR}}"
292
	KV_OUT_DIR="${KV_OUT_DIR:-${KV_DIR}}"
293
293
294
	if [ ! -s "${KV_OUT_DIR}/.config" ]
295
	then
296
		qeerror "Could not find a usable .config in the kernel source directory."
297
		qeerror "Please ensure that ${KERNEL_DIR} points to a configured set of Linux sources."
298
		qeerror "If you are using KBUILD_OUTPUT, please set the environment var so that"
299
		qeerror "it points to the necessary object directory so that it might find .config."
300
		return 1
301
	fi
302
294
	KV_LOCAL="${KV_LOCAL}$(get_localversion ${KV_DIR})"
303
	KV_LOCAL="${KV_LOCAL}$(get_localversion ${KV_DIR})"
295
	KV_LOCAL="${KV_LOCAL}$(linux_chkconfig_string LOCALVERSION)"
304
	KV_LOCAL="${KV_LOCAL}$(linux_chkconfig_string LOCALVERSION)"
296
	KV_LOCAL="${KV_LOCAL//\"/}"
305
	KV_LOCAL="${KV_LOCAL//\"/}"
Lines 301-315 Link Here
301
	qeinfo "Found sources for kernel version:"
310
	qeinfo "Found sources for kernel version:"
302
	qeinfo "    ${KV_FULL}"
311
	qeinfo "    ${KV_FULL}"
303
312
304
	if [ ! -s "${KV_OUT_DIR}/.config" ]
305
	then
306
		qeerror "Could not find a usable .config in the kernel source directory."
307
		qeerror "Please ensure that ${KERNEL_DIR} points to a configured set of Linux sources."
308
		qeerror "If you are using KBUILD_OUTPUT, please set the environment var so that"
309
		qeerror "it points to the necessary object directory so that it might find .config."
310
		return 1
311
	fi
312
313
	return 0
313
	return 0
314
}
314
}
315
315

Return to bug 118630