ARM: 7777/1: Avoid extra calls to the C compiler
authorDouglas Anderson <dianders@chromium.org>
Thu, 27 Jun 2013 03:32:06 +0000 (04:32 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 29 Jun 2013 10:20:23 +0000 (11:20 +0100)
commit1b21376a737aeaa82320ae014b8e1c2c53cfc479
treea4bc728855165356ac53f904e9974510d438ada9
parent81793bab5d7cc0d0962dae47dab3a63ae4bd5265
ARM: 7777/1: Avoid extra calls to the C compiler

Starting up the C compiler can be a slow operation on some systems.
Though these calls don't individually take a lot of time, they add up.
Rearrange the ARM Makefile a bit to avoid extra calls to the compiler
when they can be easily avoided.

When running with the Chrome OS ARM cross compiler
"armv7a-cros-linux-gnueabi-", this shaved .55 seconds (from 5.31
seconds to 4.76 seconds) off an incremental build of the kernel:
  time make -j32 ARCH=arm CROSS_COMPILE=armv7a-cros-linux-gnueabi-

Thanks to Mike Frysinger for the clean trick to make this work.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Makefile