From 1fbdda33eb42646920fcee6047ad02ac3fdb1e10 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Mon, 22 Feb 2016 22:18:31 +0000 Subject: eclass/linux-build: make oldconfig can not work properly with no Y/N/M answer --- eclass/linux-build.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass index 396ecc11..d3f98b97 100644 --- a/eclass/linux-build.eclass +++ b/eclass/linux-build.eclass @@ -230,7 +230,11 @@ _linux-build_src_prepare_build() { fi einfo "Checking configuration file" - emake oldconfig "${myopt[@]}" < /dev/null + if (( KV_MAJOR <= 3 && KV_MINOR <= 5 )); then + emake oldnoconfig "${myopt[@]}" + else + emake olddefconfig "${myopt[@]}" + fi if diff -Nu0 "${BUILDDIR}/.config.old" "${BUILDDIR}/.config" \ | egrep -q '^(\-|\+)CONFIG_' ; then -- cgit v1.2.3