* [Buildroot] [PATCH for-next] Makefile: delete default rules
@ 2016-11-05 21:05 Arnout Vandecappelle
2016-11-05 22:34 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Arnout Vandecappelle @ 2016-11-05 21:05 UTC (permalink / raw)
To: buildroot
We don't use the default implicit rules that are added by make, so
they just slow down the Makefile processing. The default implicit
rules can be removed by defining an empty .SUFFIXES: target.
This speeds up the start of the build on my machine from 5.6s to
4.9s.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile b/Makefile
index 4ea64b3..6cf5f1c 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,9 @@
# You shouldn't need to mess with anything beyond this point...
#--------------------------------------------------------------
+# Delete default rules. We don't use them. This saves a bit of time.
+.SUFFIXES:
+
# we want bash as shell
SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH for-next] Makefile: delete default rules
2016-11-05 21:05 [Buildroot] [PATCH for-next] Makefile: delete default rules Arnout Vandecappelle
@ 2016-11-05 22:34 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-11-05 22:34 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 5 Nov 2016 22:05:08 +0100, Arnout Vandecappelle
(Essensium/Mind) wrote:
> We don't use the default implicit rules that are added by make, so
> they just slow down the Makefile processing. The default implicit
> rules can be removed by defining an empty .SUFFIXES: target.
>
> This speeds up the start of the build on my machine from 5.6s to
> 4.9s.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> Makefile | 3 +++
> 1 file changed, 3 insertions(+)
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-05 22:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-05 21:05 [Buildroot] [PATCH for-next] Makefile: delete default rules Arnout Vandecappelle
2016-11-05 22:34 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox