From patchwork Mon Mar 14 02:42:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 63782 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2245337lbc; Sun, 13 Mar 2016 19:43:33 -0700 (PDT) X-Received: by 10.66.66.108 with SMTP id e12mr34255454pat.33.1457923413646; Sun, 13 Mar 2016 19:43:33 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sm10si1409204pab.78.2016.03.13.19.43.33; Sun, 13 Mar 2016 19:43:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754625AbcCNCn2 (ORCPT + 30 others); Sun, 13 Mar 2016 22:43:28 -0400 Received: from alt13.smtp-out.videotron.ca ([135.19.0.26]:8445 "EHLO alt12.smtp-out.videotron.ca" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754554AbcCNCnG (ORCPT ); Sun, 13 Mar 2016 22:43:06 -0400 Received: from yoda.home ([96.23.157.65]) by Videotron with SMTP id fITGagZjPF40UfITHa6Afq; Sun, 13 Mar 2016 22:43:03 -0400 X-Authority-Analysis: v=2.1 cv=SrQwkK60 c=1 sm=1 tr=0 a=keA3yYpnlypCNW5BNWqu+w==:117 a=keA3yYpnlypCNW5BNWqu+w==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=7OsogOcEt9IA:10 a=KKAkSRfTAAAA:8 a=cQ-5IyCveKTtfClzvNMA:9 Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 840322DA064A; Sun, 13 Mar 2016 22:43:01 -0400 (EDT) From: Nicolas Pitre To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 7/8] kbuild: build sample modules along with the rest of the kernel Date: Sun, 13 Mar 2016 22:42:15 -0400 Message-Id: <1457923336-2732-8-git-send-email-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1457923336-2732-1-git-send-email-nicolas.pitre@linaro.org> References: <1457923336-2732-1-git-send-email-nicolas.pitre@linaro.org> X-CMAE-Envelope: MS4wfGDb7gFjsrx/80C2rANiOeaC2ZVzeF+pMj6c3wbtn5PTihG+7o4fvZcSY8pNOpHEwkmWUfyNkN/6sNsbKigoOFlp0fG97S4OuGCNpOGZG1reEMr1mU9p bQt7Ze4rDNukv7Xy/O/5A6DOR/OOFDqpb0DAPVQ2AwcnQkNHqtfrWh5O7ZLaFO4lM4a1Msq6iiXcfjPMtFY7wmGBxeNZIho6PUEBRWEupgUX5rU+IoGX0qd5 EDJk+w5Md+ELTXt/a4jhHQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make sample modules in parallel with the rest of the kernel rather than having them built from the vmlinux target. This makes the build slightly faster, and those modules are properly considered when adjust_autoksyms.sh is executed. Signed-off-by: Nicolas Pitre --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.5.0 diff --git a/Makefile b/Makefile index bb865095ca..f5daa4bbf3 100644 --- a/Makefile +++ b/Makefile @@ -928,9 +928,6 @@ endif ifdef CONFIG_HEADERS_CHECK $(Q)$(MAKE) -f $(srctree)/Makefile headers_check endif -ifdef CONFIG_SAMPLES - $(Q)$(MAKE) $(build)=samples -endif ifdef CONFIG_BUILD_DOCSRC $(Q)$(MAKE) $(build)=Documentation endif @@ -948,6 +945,11 @@ PHONY += autoksyms_recursive include/generated/autoksyms.h: FORCE $(Q)$(CONFIG_SHELL) scripts/adjust_autoksyms.sh true +# Build samples along the rest of the kernel +ifdef CONFIG_SAMPLES +vmlinux-dirs += samples +endif + # The actual objects are generated when descending, # make sure no implicit rule kicks in $(sort $(vmlinux-deps)): $(vmlinux-dirs) ;