I keep hitting a bug in make-kpkg when building recent kernels, and I always forget the fix. So, blogging it here for ease of reference
[code] make-kpkg uses version.h to get UTS_RELEASE. UTS_RELEASE has
moved to utsrelease.h.
Right after you get the error, modify
debian/ruleset/misc/version_vars.mk
-UTS_RELEASE_VERSION=$(shell if [ -f include/linux/version.h ]; then \
– grep ‘define UTS_RELEASE’ include/linux/version.h | \
+UTS_RELEASE_VERSION=$(shell if [ -f include/linux/utsrelease.h ]; then \
+ grep ‘define UTS_RELEASE’ include/linux/utsrelease.h | \
And rerun your make-kpkg. The above is not a valid patch, you’ll have
to hand change it.
Joel
[/code]
Original post was found at http://lkml.org/lkml/2006/7/16/109