<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kernel &#8211; bhzhuOS爱好者(原StartOS爱好者)</title>
	<atom:link href="https://www.bhzhu203.com/tag/kernel/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.bhzhu203.com</link>
	<description>QQ群号125732839</description>
	<lastBuildDate>Sun, 11 Sep 2016 17:05:41 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.7</generator>
	<item>
		<title>Linux kernel headers files 生成步骤</title>
		<link>https://www.bhzhu203.com/2016/09/12/linux-kernel-headers-files-%e7%94%9f%e6%88%90%e6%ad%a5%e9%aa%a4/</link>
		
		<dc:creator><![CDATA[bhzhu203]]></dc:creator>
		<pubDate>Sun, 11 Sep 2016 17:04:59 +0000</pubDate>
				<category><![CDATA[linux知识]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[PATH]]></category>
		<guid isPermaLink="false">http://www.bhzhu203.com/?p=361</guid>

					<description><![CDATA[Linux kernel headers file 是用于编译内核驱动使用的。  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Linux kernel headers file 是用于编译内核驱动使用的。</p>
<p>编译好kernel之后 复制好相应的文件，make  clean 清理，之后就是要去生成轻量的headers file了。如果不去精简它，它足足有500M，非常占地方。</p>
<p>cd dir</p>
<p>#清理.c后缀的文件</p>
<p>find -name *.c -exec rm -f {} \;</p>
<p>#删除多余的文档</p>
<p>rm -rf Documentation</p>
<p>#排除若干个目录，然后删除 .txt   .h结尾的文件</p>
<p>find .  \( -path &#8220;./net/mac80211&#8221; -o -path &#8220;./drivers/media&#8221; -o -path &#8220;./drivers/md&#8221; -o -path &#8220;./scripts&#8221;  -o -path &#8220;./arch/x86/include&#8221; -o -path &#8220;./include&#8221; \) -prune -o  -name &#8216;*.txt&#8217;  -o  -name &#8216;*.h&#8217;  -exec rm -vf  {} \;</p>
<p>#删除多余的firmware</p>
<p>rm -rf firmware/</p>
<p>#删除非x86cpu的代码</p>
<p>cd arch</p>
<p>rm -rvf  `<code>ls | grep -v "x86$" | grep -v "nios2$" | grep -v "Kconfig$"`</code></p>
<p>&nbsp;</p>
<p>清理完毕！</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
