Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1605417

Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT

From Michael Ellerman <mpe@ellerman.id.au>
Newsgroups linux.kernel
Subject Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT
Date 2017-03-21 09:40 +0100
Message-ID <tnnuF-JD-7@gated-at.bofh.it> (permalink)
References <sIPeN-7XO-5@gated-at.bofh.it> <sIPeO-7XO-43@gated-at.bofh.it> <tndlE-2eT-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Andy Lutomirski <luto@amacapital.net> writes:

> On Tue, Nov 29, 2016 at 3:55 AM,  <bamvor.zhangjian@huawei.com> wrote:
>> From: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
>>
>> Enable O and KBUILD_OUTPUT for kselftest. User could compile kselftest
>> to another directory by passing O or KBUILD_OUTPUT. And O is high
>> priority than KBUILD_OUTPUT.
>
> Sorry for noticing this late, but this patch
> (a8ba798bc8ec663cf02e80b0dd770324de9bafd9) is really annoying for
> people who *don't* use these fancy options:

Yeah sorry, it wasn't quite ready to go in.

> $ make -C tools/testing/selftests/x86 ldt_gdt_32
> make: Entering directory '/home/luto/apps/linux/tools/testing/selftests/x86'
> Makefile:44: warning: overriding recipe for target 'clean'
> ../lib.mk:55: warning: ignoring old recipe for target 'clean'
> make: *** No rule to make target 'ldt_gdt_32'.  Stop.
> make: Leaving directory '/home/luto/apps/linux/tools/testing/selftests/x86'
>
> Is there any way that you can make this work again?

There obviously is *a* way, but I'm not sure there's a simple and
obviously correct way that is an easy fix for 4.11.

I see at least 18 Makefile's in tools/testing/selftests that use
$(OUTPUT)/, which would all need to be updated at least to use $(OUTPUT)
(no trailing slash), and then some other changes to not propagate OUTPUT
when the user didn't specify it. But hopefully someone will prove me
wrong.

As a (poor) alternative you can do:

 $ cd tools/testing/selftests/x86; make $PWD/ldt_gdt_32

or just:

 $ make -C tools/testing/selftests/x86

cheers

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Andy Lutomirski <luto@amacapital.net> - 2017-03-20 22:50 +0100
  Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Michael Ellerman <mpe@ellerman.id.au> - 2017-03-21 09:40 +0100
    Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Bamvor Zhang Jian <bamvor.zhangjian@linaro.org> - 2017-03-21 10:10 +0100
      Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Shuah Khan <shuahkh@osg.samsung.com> - 2017-03-21 15:00 +0100
        Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Bamvor Zhang Jian <bamvor.zhangjian@linaro.org> - 2017-03-21 17:20 +0100
          Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Shuah Khan <shuahkh@osg.samsung.com> - 2017-03-21 19:10 +0100
            Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Bamvor Zhang Jian <bamvor.zhangjian@linaro.org> - 2017-03-22 14:00 +0100
          Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Michael Ellerman <mpe@ellerman.id.au> - 2017-03-22 12:40 +0100
        Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Michael Ellerman <mpe@ellerman.id.au> - 2017-03-22 12:50 +0100
      Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Michael Ellerman <mpe@ellerman.id.au> - 2017-03-22 12:50 +0100
        Re: [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT Bamvor Zhang Jian <bamvor.zhangjian@linaro.org> - 2017-03-22 14:00 +0100

csiph-web