<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Used_files</id>
		<title>Used files - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=Used_files"/>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Used_files&amp;action=history"/>
		<updated>2026-07-19T04:10:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.elphel.com/index.php?title=Used_files&amp;diff=16590&amp;oldid=prev</id>
		<title>Oleg: /* Output of used_files.py without arguments */</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Used_files&amp;diff=16590&amp;oldid=prev"/>
				<updated>2019-01-29T21:17:53Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Output of used_files.py without arguments&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:17, 29 January 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot; &gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Here is the full sequence (target is the project name extracted from .cproject):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; Here is the full sequence (target is the project name extracted from .cproject):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 1. bitbake target-c cleansstate&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 1. bitbake target -c cleansstate&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 2. bitbake target-c unpack -f&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 2. bitbake target -c unpack -f&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 3. bitbake target-c configure -f&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 3. bitbake target -c configure -f&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 4. Scan all files under extra_source directory, find last modification stamp&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 4. Scan all files under extra_source directory, find last modification stamp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 5. bitbake target-c compile -f&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 5. bitbake target -c compile -f&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 6. bitbake target-c install -f # in the case of Linux kernel in triggers compilation of the kernel&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 6. bitbake target -c install -f # in the case of Linux kernel in triggers compilation of the kernel&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; modules&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; modules&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 7. Scan source files, create list of the used files and then list of excluded files (Eclipse CDT allows&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; 7. Scan source files, create list of the used files and then list of excluded files (Eclipse CDT allows&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Oleg</name></author>	</entry>

	<entry>
		<id>https://wiki.elphel.com/index.php?title=Used_files&amp;diff=16586&amp;oldid=prev</id>
		<title>Andrey.filippov: Created page with &quot;== Output of used_files.py without arguments ==    This program creates a list of the source files (such as C headers) used to build the project  for Eclipse CDT plugin. It on...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=Used_files&amp;diff=16586&amp;oldid=prev"/>
				<updated>2019-01-23T17:51:37Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Output of used_files.py without arguments ==    This program creates a list of the source files (such as C headers) used to build the project  for Eclipse CDT plugin. It on...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Output of used_files.py without arguments ==&lt;br /&gt;
&lt;br /&gt;
  This program creates a list of the source files (such as C headers) used to build the project&lt;br /&gt;
 for Eclipse CDT plugin. It only needs to be run for the new projects, the existing ones already&lt;br /&gt;
 have .cproject file distributed in each subproject repository (in 'eclipse_project_setup' sub-&lt;br /&gt;
 directory of the root sub-project directory). This sub-directory content is copyied to the sub-&lt;br /&gt;
 project root by setup.py when it is first run. You may delete .project file (while Eclipse is closed)&lt;br /&gt;
 and re-run setup.py (in elphel393 directory) restore default project settings if they get corrupted.&lt;br /&gt;
&lt;br /&gt;
   The program does not rely on exact duplicating of the environment used by bitbake, instead it&lt;br /&gt;
 &amp;quot;spies&amp;quot; on the bitbake by noticing which files it accesses during build (using file modification and&lt;br /&gt;
 access timestamps) and creates list of exclusions. As the access time is recorded only after the first&lt;br /&gt;
 access after modification, the program first unpacks/touches the sources.&lt;br /&gt;
&lt;br /&gt;
 The extra_source directory is the specified in the command line directory (in addition to hard-coded&lt;br /&gt;
 'src') with sub-tree of the source files (headers) to be filtered.&lt;br /&gt;
&lt;br /&gt;
 Here is the full sequence (target is the project name extracted from .cproject):&lt;br /&gt;
 1. bitbake target-c cleansstate&lt;br /&gt;
 2. bitbake target-c unpack -f&lt;br /&gt;
 3. bitbake target-c configure -f&lt;br /&gt;
 4. Scan all files under extra_source directory, find last modification stamp&lt;br /&gt;
 5. bitbake target-c compile -f&lt;br /&gt;
 6. bitbake target-c install -f # in the case of Linux kernel in triggers compilation of the kernel&lt;br /&gt;
    modules&lt;br /&gt;
 7. Scan source files, create list of the used files and then list of excluded files (Eclipse CDT allows&lt;br /&gt;
 to specify directory and exclusion filter)&lt;br /&gt;
 8. Add (or replace) the record in .cproject file that specifies source directory and the filter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 You need to run indexing  (right-click on the project in the Navigator panel -&amp;gt; Index -&amp;gt; rebuild&lt;br /&gt;
 when the workspace is opened with the modified .cproject file.&lt;br /&gt;
&lt;br /&gt;
 Do not run this program when Eclipse IDE is opened that includes the current project!&lt;br /&gt;
&lt;br /&gt;
 The program should be launched from the project root directory, e.g. for applications:&lt;br /&gt;
    ./scripts/used_files.py sysroots&lt;br /&gt;
&lt;br /&gt;
 Program can either overwrite the current .cproject configuration file or create a new modified version&lt;br /&gt;
 if specified in teh command line argument. In that case program runs in debug mode and generates lists&lt;br /&gt;
 of files in the project root directory:== Output of used_files.py withou arguments ==&lt;br /&gt;
&lt;br /&gt;
    all_sources.lst - all scanned source file with last access timestamps&lt;br /&gt;
    including.lst - list of the files (relative to specified extra_source directory) used by bitbake&lt;br /&gt;
    excluding.lst - list of the unused files (they will appear crossed in the Project Navigator)&lt;br /&gt;
&lt;br /&gt;
 USAGE:&lt;br /&gt;
   ./used_files.py extra_source [path-to-modified-cproject]&lt;br /&gt;
&lt;br /&gt;
   First (mandatory) argument of this program (extra_source) is the relative path additional source/header&lt;br /&gt;
   files. For Linux kernel development it is 'linux', for php extension - 'php, for applications - 'sysroots'&lt;br /&gt;
   (symlink to header files)&lt;br /&gt;
&lt;br /&gt;
   Second (optional) argument (path-to-modified-cproject) is the relative to project root file to write&lt;br /&gt;
   modified .cproject content. If specified it forces program to run in debug mode and generate 3 file lists.&lt;/div&gt;</summary>
		<author><name>Andrey.filippov</name></author>	</entry>

	</feed>