{"id":38,"date":"2007-07-20T15:15:29","date_gmt":"2007-07-20T02:15:29","guid":{"rendered":"http:\/\/www.meta.net.nz\/~daniel\/blog\/2007\/07\/20\/make-kpkg-and-recent-26-kernels\/"},"modified":"2007-07-21T14:29:29","modified_gmt":"2007-07-21T01:29:29","slug":"make-kpkg-and-recent-26-kernels","status":"publish","type":"post","link":"https:\/\/www.meta.net.nz\/~daniel\/blog\/2007\/07\/20\/make-kpkg-and-recent-26-kernels\/","title":{"rendered":"make-kpkg and recent 2.6 kernels"},"content":{"rendered":"<p>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<\/p>\n<p>[code] make-kpkg uses version.h to get UTS_RELEASE.  UTS_RELEASE has<br \/>\nmoved to utsrelease.h.<\/p>\n<p>Right after you get the error, modify<br \/>\ndebian\/ruleset\/misc\/version_vars.mk<\/p>\n<p>-UTS_RELEASE_VERSION=$(shell if [ -f include\/linux\/version.h ]; then\t \\<br \/>\n&#8211;                 grep &#8216;define UTS_RELEASE&#8217; include\/linux\/version.h | \\<br \/>\n+UTS_RELEASE_VERSION=$(shell if [ -f include\/linux\/utsrelease.h ]; then\t \\<br \/>\n+                 grep &#8216;define UTS_RELEASE&#8217; include\/linux\/utsrelease.h | \\<\/p>\n<p>And rerun your make-kpkg.  The above is not a valid patch, you&#8217;ll have<br \/>\nto hand change it.<\/p>\n<p>Joel<\/p>\n<p>[\/code]<\/p>\n<p>Original post was found at<a href=\"http:\/\/lkml.org\/lkml\/2006\/7\/16\/109\"> http:\/\/lkml.org\/lkml\/2006\/7\/16\/109<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 \\ &#8211; grep [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}