Skip to content

Big acceleration of Kbuild performance

Tom Rini u-boot 1 version New

Get series with b4
b4 am 20140227195125.GO16805@bill-the-cat

Versions newest first

  1. v1 Latest0 of 4 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 4 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 0/4] Big acceleration of Kbuild performance
Quoted 16 lines · Masahiro Yamada

Kbuild brought about many advantages for us but a significant performance regression was reported by Simon Glass.

After some discussions and analysis, it turned out its main cause is in $(call cc-option,...).

Historically, U-Boot parses all config.mk (arch/*/config.mk and board/*/config.mk)
every time descending into subdirectories.
That means cc-options are evaluated over and over again.

$(call cc-option,...) is useful but costly. So we want to evaluate them only in ./Makefile and spl/Makefile and export compiler flags.

Quoted 8 lines

1/4 through 3/4 are preparation for 4/4.

4/4 is what we really want to do.
By applying it, I think Kbuild will get much faster.

Simon,
Could you post the result of "time" command?
I want to know how fast Kbuild will be on your computer.

Locally, I see am335x_evm down to about 9 seconds, and it was 11 seconds or so before Kbuild and 23s on master. I think this speed up over pre-Kbuild is quite real as we've gone from ~2000 cc-option execs to 90.

I'd really love to see some run-time sanity check from the Tegra folks, even tho I did see Stephen ack that patch.

Thanks for getting this done so quick!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140227/733fb026/attachment.pgp>