From: David Hildenbrand <david@redhat.com>
To: Muhammad Usama Anjum <usama.anjum@collabora.com>,
Anders Roxell <anders.roxell@linaro.org>,
shuah@kernel.org, Andrew Morton <akpm@linux-foundation.org>,
"open list : MEMORY MANAGEMENT" <linux-mm@kvack.org>,
John Hubbard <jhubbard@nvidia.com>
Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests: lib.mk: fix out-of-tree builds
Date: Tue, 13 Jun 2023 10:44:10 +0200 [thread overview]
Message-ID: <e05c4897-ea77-bd1e-0bdd-e897107a614f@redhat.com> (raw)
In-Reply-To: <cf6eb3f1-276a-bdcc-7d63-7f4ab3f9cdce@collabora.com>
On 13.06.23 10:16, Muhammad Usama Anjum wrote:
> This patch needs to go through mm tree as the commit which it fixes is in mm.
>
> On 6/13/23 12:49 PM, Anders Roxell wrote:
>> Since commit ("selftests: error out if kernel header files are not yet
>> built") got merged, the kselftest build correctly because the
>> KBUILD_OUTPUT isn't set when building out-of-tree and specifying 'O='
>> This is the error message that pops up.
>>
>> make --silent --keep-going --jobs=32 O=/home/anders/.cache/tuxmake/builds/1482/build INSTALL_PATH=/home/anders/.cache/tuxmake/builds/1482/build/kselftest_install ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- V=1 CROSS_COMPILE_COMPAT=arm-linux-gnueabihf- kselftest-install
>> make[3]: Entering directory '/home/anders/src/kernel/next/tools/testing/selftests/alsa'
>>
>> -e ^[[1;31merror^[[0m: missing kernel header files.
>> Please run this and try again:
>>
>> cd /home/anders/src/kernel/next/tools/testing/selftests/../../..
>> make headers
>>
>> make[3]: Leaving directory '/home/anders/src/kernel/next/tools/testing/selftests/alsa'
>> make[3]: *** [../lib.mk:77: kernel_header_files] Error 1
>>
>> Fixing the issue by assigning KBUILD_OUTPUT the same way how its done in
>> kselftest's Makefile. By adding 'KBUILD_OUTPUT := $(O)' 'if $(origin O)'
>> is set to 'command line'. This will set the the BUILD dir to
>> KBUILD_OUTPUT/kselftest when doing out-of-tree builds which makes them
>> in its own separete output directory.
>>
>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> Please add fixes tag. ("selftests: error out if kernel header files are not
> yet built")
>
> Tested-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
This should get squashed into the original patch unless it's already in
mm-stable (which it isn't) and we have a stable commit id.
--
Cheers,
David / dhildenb
next prev parent reply other threads:[~2023-06-13 8:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 7:49 [PATCH] selftests: lib.mk: fix out-of-tree builds Anders Roxell
2023-06-13 8:16 ` Muhammad Usama Anjum
2023-06-13 8:44 ` David Hildenbrand [this message]
2023-06-14 2:23 ` John Hubbard
2023-06-14 21:16 ` Anders Roxell
2023-06-14 23:27 ` John Hubbard
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=e05c4897-ea77-bd1e-0bdd-e897107a614f@redhat.com \
--to=david@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=anders.roxell@linaro.org \
--cc=jhubbard@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=shuah@kernel.org \
--cc=usama.anjum@collabora.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;
as well as URLs for NNTP newsgroup(s).