Merge branch 'no-config-necessary' into 'stable-1.6'
Do not require .config to exist in kernel sources Closes #198 See merge request etherlab.org/ethercat!186
This commit is contained in:
commit
98563a2f0d
|
|
@ -107,9 +107,9 @@ AC_ARG_WITH([linux-dir],
|
||||||
|
|
||||||
AC_MSG_CHECKING([for Linux kernel sources])
|
AC_MSG_CHECKING([for Linux kernel sources])
|
||||||
|
|
||||||
if test \! -r ${sourcedir}/.config; then
|
if test \! -r ${sourcedir}/Makefile; then
|
||||||
echo
|
echo
|
||||||
AC_MSG_ERROR([No configured Linux kernel sources in $sourcedir])
|
AC_MSG_ERROR([No Linux kernel sources in $sourcedir])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Try to get kernel release string
|
# Try to get kernel release string
|
||||||
|
|
@ -127,7 +127,7 @@ fi
|
||||||
|
|
||||||
if test -z "$kernelrelease"; then
|
if test -z "$kernelrelease"; then
|
||||||
echo
|
echo
|
||||||
AC_MSG_ERROR([Failed to extract Linux kernel version!])
|
AC_MSG_ERROR([Failed to extract Linux kernel version! Does ${sourcedir} contain prepared kernel sources?])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test ${kernelrelease%%.*} -gt 2; then
|
if test ${kernelrelease%%.*} -gt 2; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue