--- /usr/share/kernel-package/ruleset/misc/version_vars.mk 2008-11-24 18:01:32.000000000 +0100 +++ /usr/share/kernel-package/ruleset/misc/version_vars.mk 2010-01-06 16:16:28.662667462 +0100 @@ -138,10 +138,12 @@ EXTRAV_ARG := endif -UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux/utsrelease.h ]; then \ - echo include/linux/utsrelease.h; \ - else \ - echo include/linux/version.h ; \ +UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux/utsrelease.h ]; then \ + echo include/linux/utsrelease.h; \ + elif [ -f include/generated/utsrelease.h ]; then \ + echo include/generated/utsrelease.h; \ + else \ + echo include/linux/version.h; \ fi) UTS_RELEASE_VERSION=$(call doit,if [ -f $(UTS_RELEASE_HEADER) ]; then \ grep 'define UTS_RELEASE' $(UTS_RELEASE_HEADER) | \