All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Pitre <nicolas.pitre@linaro.org>
To: Michal Marek <mmarek@suse.com>
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	[thread overview]
Message-ID: <1457923336-2732-8-git-send-email-nicolas.pitre@linaro.org> (raw)
In-Reply-To: <1457923336-2732-1-git-send-email-nicolas.pitre@linaro.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 <nico@linaro.org>
---
 Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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) ;
-- 
2.5.0

  parent reply	other threads:[~2016-03-14  2:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-14  2:42 [PATCH v6 0/8]/[PULL REQUEST] Trim unused exported kernel symbols Nicolas Pitre
2016-03-14  2:42 ` [PATCH v6 1/8] kbuild: record needed exported symbols for modules Nicolas Pitre
2016-03-14  2:42 ` [PATCH v6 2/8] allow for per-symbol configurable EXPORT_SYMBOL() Nicolas Pitre
2016-03-14  2:42 ` [PATCH v6 3/8] fixdep: accept extra dependencies on stdin Nicolas Pitre
2016-03-14  2:42 ` [PATCH v6 4/8] kbuild: de-duplicate fixdep usage Nicolas Pitre
2016-03-14  2:42 ` [PATCH v6 5/8] kbuild: add fine grained build dependencies for exported symbols Nicolas Pitre
2016-03-15 20:33   ` Michal Marek
2016-03-15 20:34     ` Michal Marek
     [not found]     ` <fvfraWW5gnPSEfvfsaDPXE@videotron.ca>
2016-03-15 23:14       ` Nicolas Pitre
2016-03-16 12:29         ` Michal Marek
2016-03-16 15:05           ` Nicolas Pitre
2016-03-14  2:42 ` [PATCH v6 6/8] create/adjust generated/autoksyms.h Nicolas Pitre
2016-03-14  2:42 ` Nicolas Pitre [this message]
2016-03-14  2:42 ` [PATCH v6 8/8] kconfig option for TRIM_UNUSED_KSYMS Nicolas Pitre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1457923336-2732-8-git-send-email-nicolas.pitre@linaro.org \
    --to=nicolas.pitre@linaro.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.