<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Stupid Python Tricks: VSCODE c_cpp_properties.json for Linux Kernel Development	</title>
	<atom:link href="https://iotexpert.com/stupid-python-tricks-vscode-c_cpp_properties-json-for-linux-kernel-development/feed/" rel="self" type="application/rss+xml" />
	<link>https://iotexpert.com/stupid-python-tricks-vscode-c_cpp_properties-json-for-linux-kernel-development/</link>
	<description>Engineering for the Internet of Things</description>
	<lastBuildDate>Sun, 26 Jul 2020 18:28:04 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: kofemann		</title>
		<link>https://iotexpert.com/stupid-python-tricks-vscode-c_cpp_properties-json-for-linux-kernel-development/#comment-74328</link>

		<dc:creator><![CDATA[kofemann]]></dc:creator>
		<pubDate>Sun, 26 Jul 2020 18:28:04 +0000</pubDate>
		<guid isPermaLink="false">https://iotexpert.com/?p=9155#comment-74328</guid>

					<description><![CDATA[Thanks! With a small tweak I can use it for exploring the kernel source tree.

Here is the adopted version

https://gist.github.com/kofemann/b8fecf19428c16c25d400a3c8a5b277a]]></description>
			<content:encoded><![CDATA[<p>Thanks! With a small tweak I can use it for exploring the kernel source tree.</p>
<p>Here is the adopted version</p>
<p><a href="https://gist.github.com/kofemann/b8fecf19428c16c25d400a3c8a5b277a" rel="nofollow ugc">https://gist.github.com/kofemann/b8fecf19428c16c25d400a3c8a5b277a</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tigran		</title>
		<link>https://iotexpert.com/stupid-python-tricks-vscode-c_cpp_properties-json-for-linux-kernel-development/#comment-74311</link>

		<dc:creator><![CDATA[Tigran]]></dc:creator>
		<pubDate>Sun, 26 Jul 2020 17:13:57 +0000</pubDate>
		<guid isPermaLink="false">https://iotexpert.com/?p=9155#comment-74311</guid>

					<description><![CDATA[Thanks!  With a small tweak this can be used for kernel development out of git tree:

 def processLine(lineData):
     linelist = lineData.split()
-    pwd = os.getcwd()
     for i in linelist:
         if(i[:2] == &quot;-I&quot;):
             if(i[2:2] == &#039;/&#039;):
                 includePath.add(i[2:])
             else:
-                includePath.add(f&quot;{pwd}/include/{i[2:]}&quot;)
+                includePath.add(f&quot;/usr/src/linux-headers-{kernelVersion}/{i[2:]}&quot;)
         elif (i[:2] == &quot;-D&quot;):
             defines.add(i[2:])
         elif (i[:2] == &quot;--&quot;):
             doubleDash.add(i)
         elif (i[:1] == &#039;-&#039;):
             otherOptions.add(i)
-]]></description>
			<content:encoded><![CDATA[<p>Thanks!  With a small tweak this can be used for kernel development out of git tree:</p>
<p> def processLine(lineData):<br />
     linelist = lineData.split()<br />
&#8211;    pwd = os.getcwd()<br />
     for i in linelist:<br />
         if(i[:2] == &#8220;-I&#8221;):<br />
             if(i[2:2] == &#8216;/&#8217;):<br />
                 includePath.add(i[2:])<br />
             else:<br />
&#8211;                includePath.add(f&#8221;{pwd}/include/{i[2:]}&#8221;)<br />
+                includePath.add(f&#8221;/usr/src/linux-headers-{kernelVersion}/{i[2:]}&#8221;)<br />
         elif (i[:2] == &#8220;-D&#8221;):<br />
             defines.add(i[2:])<br />
         elif (i[:2] == &#8220;&#8211;&#8220;):<br />
             doubleDash.add(i)<br />
         elif (i[:1] == &#8216;-&#8216;):<br />
             otherOptions.add(i)<br />
&#8211;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
