From: Masahiro Yamada Date: Tue, 04 Mar 2014 21:00:33 +0900 Subject: [U-Boot] [RESEND PATCH v2 4/4] kbuild: improve Kbuild speed In-Reply-To: <1393561646-882-5-git-send-email-yamada.m@jp.panasonic.com> References: <1393561646-882-1-git-send-email-yamada.m@jp.panasonic.com> <1393561646-882-5-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140304210033.6E7E.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Tom, > 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. > > This commit changes the build system as follows: Please hold applying this patch. I have found a bug in this patch. microblaze-generic board will be broken with this patch. ( microblaze-linux-gcc fails in building this board, so I missed this bug when I tested this series.) I will post version 3 tomorrow. Best Regards Masahiro Yamada