From: shuah <shuah@kernel.org>
To: Tim.Bird@sony.com, linux-kselftest@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, shuah <shuah@kernel.org>
Subject: Re: bug in KBUILD_OUTPUT handling - for relative paths in kselftest
Date: Thu, 26 Sep 2019 11:42:56 -0600 [thread overview]
Message-ID: <1b1e87f8-db1f-f641-45d5-b3e24381d85a@kernel.org> (raw)
In-Reply-To: <ECADFF3FD767C149AD96A924E7EA6EAF977BD214@USCULXMSG01.am.sony.com>
On 9/25/19 10:11 PM, Tim.Bird@sony.com wrote:
> I found a bug in kselftest KBUILD_OUTPUT handling.
>
> The following works:
> $ cd /home/tbird/work/linux
> $ export KBUILD_OUTPUT=/home/tbird/work/kbuild
> $ yes '' | make localmodconfig
> $ make TARGETS=size kselftest
>
> But this doesn't work:
> $ cd /home/tbird/work/linux
> $ export KBUILD_OUTPUT=../kbuild
> $ yes '' | make localmodconfig
> $ make TARGETS=size kselftest
>
> I see the following:
> make[1]: Entering directory '/home/tbird/work/kbuild'
> make --no-builtin-rules INSTALL_HDR_PATH=$BUILD/usr \
> ARCH=x86 -C ../../.. headers_install
> INSTALL ../kbuild/kselftest/usr/include
> gcc -static -ffreestanding -nostartfiles -s get_size.c -o ../kbuild/kselftest/size/get_size
> /usr/bin/ld: cannot open output file ../kbuild/kselftest/size/get_size: No such file or directory
> collect2: error: ld returned 1 exit status
> ../lib.mk:138: recipe for target '../kbuild/kselftest/size/get_size' failed
> make[3]: *** [../kbuild/kselftest/size/get_size] Error 1
> Makefile:136: recipe for target 'all' failed
> make[2]: *** [all] Error 2
> /home/tbird/work/linux/Makefile:1240: recipe for target 'kselftest' failed
> make[1]: *** [kselftest] Error 2
> make[1]: Leaving directory '/home/tbird/work/kbuild'
> Makefile:179: recipe for target 'sub-make' failed
> make: *** [sub-make] Error 2
>
> This is due to the relative path for KBUILD_OUTPUT being handled incorrectly (I believe)
> in tools/testing/selftests/Makefile.
>
Thanks Tim! I will take a look as part of my work to simplify kselftest
use-cases.
thanks,
-- Shuah
prev parent reply other threads:[~2019-09-26 17:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 4:11 Tim.Bird
2019-09-26 17:42 ` shuah [this message]
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=1b1e87f8-db1f-f641-45d5-b3e24381d85a@kernel.org \
--to=shuah@kernel.org \
--cc=Tim.Bird@sony.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
/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
all inboxes | Powered by JetHome®