Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Large number of duplicate files in sdk
@ 2024-11-20 20:00 Grant Edwards
  2024-11-20 23:27 ` Grant Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2024-11-20 20:00 UTC (permalink / raw)
  To: buildroot

When I do a "make sdk" (using 2024.02.6), the resulting tarball
contains tons of duplicate files.  I'm using an external Linaro ARM
toolchain.  With a fairly bare-bones package selection, the sdk tarball
generated by buildroot appears to be about 40% duplicate files by
size (about 20% by count).  According to a Python app I hacked
together it looks like there are 2300+ duplicated files taking up
380MB of wasted disk space.

[The fdupes utility finds about 100 fewer duplicates than my Python
application, so my numbers might be slightly off.]

Pretty much all of the include and library files from the external
toolchain are found under both ./opt/ext-toolchain/arm-linux-gnueabihf
and again under ./arm-buildroot-linux-gnueabihf/sysroot

Are both copies of all those files needed?

Is there some option to prune unneeded files?

My first impulse was to just delete ./opt/ext-toolchain, but I noticed
that there are couple dozen files under ./bin that are symlinked to
.../opt/ instead of being duplicated like everything else.

--
Grant

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-21 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-20 20:00 [Buildroot] Large number of duplicate files in sdk Grant Edwards
2024-11-20 23:27 ` Grant Edwards
2024-11-21  8:18   ` Peter Korsgaard
2024-11-21 15:06     ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox