* How can I determine which files are used?
@ 2001-09-13 21:43 Gerald Champagne
2001-09-13 21:50 ` Jim Paris
2001-09-14 1:35 ` Keith Owens
0 siblings, 2 replies; 4+ messages in thread
From: Gerald Champagne @ 2001-09-13 21:43 UTC (permalink / raw)
To: linux-mips
Is there a recommended method of determining which files in the
Linux source tree are used with a given .config file? I've already
removed the obvious things like unused entries in the arch directory
and a couple of driver directories, but is there a way to generate a
list of only the files that are used?
I know I've read discussions about someday splitting up the source code
into smaller blocks, but can someone point me towards information on how
to prune the existing source tree?
Thanks.
Gerald
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I determine which files are used?
2001-09-13 21:43 How can I determine which files are used? Gerald Champagne
@ 2001-09-13 21:50 ` Jim Paris
2001-09-13 21:53 ` Jim Paris
2001-09-14 1:35 ` Keith Owens
1 sibling, 1 reply; 4+ messages in thread
From: Jim Paris @ 2001-09-13 21:50 UTC (permalink / raw)
To: Gerald Champagne; +Cc: linux-mips
> Is there a recommended method of determining which files in the
> Linux source tree are used with a given .config file? I've already
> removed the obvious things like unused entries in the arch directory
> and a couple of driver directories, but is there a way to generate a
> list of only the files that are used?
>
> I know I've read discussions about someday splitting up the source code
> into smaller blocks, but can someone point me towards information on how
> to prune the existing source tree?
I suppose you could do a
make clean
find . | xargs touch -t 198001010101
make
find . -not atime -1 | xargs rm $i
Which would set all of the access times to be really old,
rebuild everything, and then remove all files which weren't
touched during the build.
(Be careful; I didn't actually test this command and I wouldn't
trust it too much without testing it, since it's quite capable
of wiping out the whole directory)
-jim
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I determine which files are used?
2001-09-13 21:50 ` Jim Paris
@ 2001-09-13 21:53 ` Jim Paris
0 siblings, 0 replies; 4+ messages in thread
From: Jim Paris @ 2001-09-13 21:53 UTC (permalink / raw)
To: Gerald Champagne; +Cc: linux-mips
> make clean
> find . | xargs touch -t 198001010101
> make
> find . -not atime -1 | xargs rm $i
>
> Which would set all of the access times to be really old,
> rebuild everything, and then remove all files which weren't
> touched during the build.
Slight correction: make that last command
find . -not -atime -1 | xargs rm $i
and the last sentence "which weren't accessed during the build".
Still untested though :)
-jim
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I determine which files are used?
2001-09-13 21:43 How can I determine which files are used? Gerald Champagne
2001-09-13 21:50 ` Jim Paris
@ 2001-09-14 1:35 ` Keith Owens
1 sibling, 0 replies; 4+ messages in thread
From: Keith Owens @ 2001-09-14 1:35 UTC (permalink / raw)
To: Gerald Champagne; +Cc: linux-mips
On Thu, 13 Sep 2001 16:43:19 -0500,
Gerald Champagne <gerald.champagne@esstech.com> wrote:
>Is there a recommended method of determining which files in the
>Linux source tree are used with a given .config file?
Not with the current kernel build system. Kernel build 2.5[*] provides
the information you need but the existing system does not.
The best you can do with the current system is to make clean, make dep,
touch stamp, make bzImage modules. Then find all files accessed after
make dep finished using find -type f -anewer stamp.
[*]http://sourceforge.net/projects/kbuild
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-09-14 1:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-13 21:43 How can I determine which files are used? Gerald Champagne
2001-09-13 21:50 ` Jim Paris
2001-09-13 21:53 ` Jim Paris
2001-09-14 1:35 ` Keith Owens
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.