

{"id":25,"date":"2007-05-01T20:46:40","date_gmt":"2007-05-02T00:46:40","guid":{"rendered":"http:\/\/www.mpagano.com\/blog\/?p=25"},"modified":"2007-05-01T21:33:30","modified_gmt":"2007-05-02T01:33:30","slug":"creating-a-patch-for-the-linux-kernel-using-quilt","status":"publish","type":"post","link":"https:\/\/www.mpagano.com\/blog\/?p=25","title":{"rendered":"Creating a patch for the linux kernel using quilt"},"content":{"rendered":"<ol>\n<li>Download and install quilt. (<code>emerge quilt<\/code>, of course)<\/li>\n<li><code>cd linux-2.6.21<\/code> (or whatever release you are creating a patch for)<\/li>\n<li>Tell quilt you want to start making a patch<\/li>\n<li><code>quilt new patchname-does-something-version.patch<\/code><\/li>\n<li>Tell quilt which files you are going to be modifying<\/li>\n<li><code>quilt add drivers\/modify_this_one.c<\/code><\/li>\n<li>Do this for all files, BEFORE you modify any of them<\/li>\n<li>Now make your changes to the files<\/li>\n<li>At this point, running  <code>quilt diff<\/code> will show you the patch so far<\/li>\n<li>When done, run <code>quilt refresh<code>\"<\/code><\/code> and a patch will be created at patches\/patchname-does-something-version.patch<\/li>\n<li>make sure there isn&#8217;t a patches directory in the current path<\/li>\n<li>patch a clean version of a kernel and then compile to test it out.<\/li>\n<\/ol>\n<p>Thanks to dsd for the quick tutorial.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download and install quilt. (emerge quilt, of course) cd linux-2.6.21 (or whatever release you are creating a patch for) Tell quilt you want to start making a patch quilt new patchname-does-something-version.patch Tell quilt which files you are going to be&hellip; <br \/><a class=\"read-more-button\" href=\"https:\/\/www.mpagano.com\/blog\/?p=25\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-gentoo"],"_links":{"self":[{"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":0,"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mpagano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}