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:
Florian Pose 2026-03-24 17:13:53 +01:00
commit 98563a2f0d
1 changed files with 3 additions and 3 deletions

View File

@ -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