From patchwork Tue Mar 29 20:44:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 64627 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2236074lbc; Tue, 29 Mar 2016 13:47:34 -0700 (PDT) X-Received: by 10.98.44.73 with SMTP id s70mr6807533pfs.2.1459284454603; Tue, 29 Mar 2016 13:47:34 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si696689pat.227.2016.03.29.13.47.34; Tue, 29 Mar 2016 13:47:34 -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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758215AbcC2UqG (ORCPT + 29 others); Tue, 29 Mar 2016 16:46:06 -0400 Received: from alt22.smtp-out.videotron.ca ([70.80.0.73]:35452 "EHLO alt22.smtp-out.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754571AbcC2UpM (ORCPT ); Tue, 29 Mar 2016 16:45:12 -0400 Received: from yoda.home ([96.23.157.65]) by Videotron with SMTP id l0VhahYPxg8R4l0ViaGERI; Tue, 29 Mar 2016 16:45:10 -0400 X-Authority-Analysis: v=2.1 cv=X4TyUDne 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 896A22DA05E5; Tue, 29 Mar 2016 16:45:08 -0400 (EDT) From: Nicolas Pitre To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 7/8] kbuild: build sample modules along with the rest of the kernel Date: Tue, 29 Mar 2016 16:44:41 -0400 Message-Id: <1459284282-6676-8-git-send-email-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1459284282-6676-1-git-send-email-nicolas.pitre@linaro.org> References: <1459284282-6676-1-git-send-email-nicolas.pitre@linaro.org> X-CMAE-Envelope: MS4wfG5ajyx4/AJ0jz+uQZKp20yWhfv6XcaNvcIBPg5RBrFi101HALM48KkXoLC3t9Q0UBVtIyQfOk8lH1VxV6Wrmx+vW5gGH/u6ug90LqBVCTNJCdhBdwi1 YDdqnoJ/GYcpqi1GTfAy8B/GlHf2uJ0j9oRUq6aqPiZwa4ojVs2J87bGlysP9x/lLusvP2kCnx22rADKvoqfaJu+uqA0bYef64qojjnHI6a5rBPUMAapYpuh H/lSYIMgZArJUdhHtT2YHg== 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.5 diff --git a/Makefile b/Makefile index 9f93d2595d..cec9539d30 100644 --- a/Makefile +++ b/Makefile @@ -940,9 +940,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 @@ -960,6 +957,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) ;