From: Al Viro <viro@ZenIV.linux.org.uk>
To: David Howells <dhowells@redhat.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>,
Michal Marek <michal.lkml@markovi.net>,
linux-kbuild@vger.kernel.org, arnd@arndb.de,
sfr@canb.auug.org.au, nico@linaro.org,
linux-kernel@vger.kernel.org
Subject: Re: Can we fix samples/ dependency on headers please?
Date: Wed, 1 Aug 2018 15:45:48 +0100 [thread overview]
Message-ID: <20180801144548.GM30522@ZenIV.linux.org.uk> (raw)
In-Reply-To: <31061.1533131891@warthog.procyon.org.uk>
On Wed, Aug 01, 2018 at 02:58:11PM +0100, David Howells wrote:
> Hi,
>
> I'm currently having to mark various userspace programs I've added to the
> samples/ directory as BROKEN in samples/Kconfig because the root Makefile
> mucks up the dependencies between building samples and headers_install.
>
> The main culprit seems to be:
>
> commit dd92478a15fa3bfd746ee08b4ef59401c1537804
> Author: Nicolas Pitre <nicolas.pitre@linaro.org>
> Date: Sun Feb 28 22:00:00 2016 -0500
> kbuild: build sample modules along with the rest of the kernel
>
> which make the samples build in parallel with the build, thereby voiding the
> explicit dependency:
>
> Documentation/ samples/: headers_install
>
> and thereby breaking:
>
> commit ddea05fa148b4d8e66498e522a616d87f9cf81e3
> Author: Arnd Bergmann <arnd@arndb.de>
> Date: Mon Jul 4 16:39:35 2016 +0200
> kbuild: make samples depend on headers_install
Breaking a commit 4 months before its creation is quite a feat... Said that,
something along the lines of Arnd's commit is needed (build of samples/*
should happen against the kernel-supplied headers; it certainly should not
depend upon having make headers_install done on the same tree in previous
build. The problem, AFAICS, is that dependency is for explicit samples/ in
the target list, not samples/<anything> being added there. Worse, by the
time we get to those, we don't see top-level Makefile targets, so e.g.
adding explict
$(obj)/.test-fsmount.cmd: headers_install
won't work...
next prev parent reply other threads:[~2018-08-01 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-01 13:58 Can we fix samples/ dependency on headers please? David Howells
2018-08-01 14:45 ` Al Viro [this message]
2018-08-02 15:11 ` Masahiro Yamada
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=20180801144548.GM30522@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=arnd@arndb.de \
--cc=dhowells@redhat.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michal.lkml@markovi.net \
--cc=nico@linaro.org \
--cc=sfr@canb.auug.org.au \
--cc=yamada.masahiro@socionext.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox