Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Question] Including only needed makefiles?
@ 2016-02-17  4:00 Masahiro Yamada
  2016-02-17  8:11 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Masahiro Yamada @ 2016-02-17  4:00 UTC (permalink / raw)
  To: buildroot

Hi expert.

I am not an active developer of Buildroot.
Apology if I am asking a silly question.


It takes a few seconds for Buildroot to start building things
after executing "make".

I think it is because Buildroot parses all the makefiles
included by the following wildcard pattern:

include $(sort $(wildcard package/*/*.mk))


Some of them are really needed to build desired packages,
but most of them are not necessary at all.



I found commit 863036378b257d9a9eb9908322edaf29f2121ae7
("package/c-libraries: need linux-headers").

This commit added the dependency to Kconfig
rather than leaving it to Makefile.


I have two questions.


[1]

Are we going towards inter-package dependency in Kconfig
rather than in Makefiles?



[2]
If we achieve the perfect dependency in Kconfig,
perhaps can we include makefiles that are really
enabled by Kconfig?   For example, like this?


pkg-$(BR2_PACKAGE_BUSYBOX) += busybox
pkg-$(BR2_PACKAGE_LAME)    += lame
pkg-$(BR2_PACKAGE_GZIP)    += gzip
   ...


include $(addprefix packages, $(addsuffix Makefike, $(pkg-y)))




I understand this is too big change,
and I am not sure if it will work well or not.

But, including only needed makefiles would improve
the response of "make" anyway.


-- 
Best Regards
Masahiro Yamada

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

end of thread, other threads:[~2016-02-18  0:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-17  4:00 [Buildroot] [Question] Including only needed makefiles? Masahiro Yamada
2016-02-17  8:11 ` Thomas Petazzoni
2016-02-17  9:59   ` Yann E. MORIN
2016-02-18  0:02     ` Arnout Vandecappelle

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