Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: Shuah Khan <shuah@kernel.org>
Cc: Sasha Levin <sashal@kernel.org>,
	linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] selftests: lib.mk: define LINK.c, COMPILE.S and LINK.S when make has none
Date: Sun,  1 Nov 2026 20:33:31 -0500	[thread overview]
Message-ID: <20261102013331.2136774-1-sashal@kernel.org> (raw)
In-Reply-To: <20261011223358.2327625-6-sashal@kernel.org>

On Sun, Oct 11, 2026 at 06:33:34PM -0400, Sasha Levin wrote:
>The kernel build runs make with -rR, which removes make's built-in rules
>and variables. tools/testing/selftests/Makefile copes by clearing
>MAKEFLAGS for its sub-makes, and lib.mk defines LINK.c, COMPILE.S and
>LINK.S again, but only when building_out_of_srctree is set. A selftest
>directory built directly by a make that inherited -R gets neither, so
>LINK.c is empty and the generic rule tries to execute the source file:
>
>  make[4]: acct_syscall.c: No such file or directory

Hi Shuah,

Ping on this one. It still applies to v7.4-rc1.

The tools_build series [1] depends on it: without it, 70 of the 74
selftests the series builds fail this way. Could you pick it up for
7.5, or ack it so it can go through kbuild with the next version of the
series?

[1] https://lore.kernel.org/r/20261016143143.3613501-1-sashal@kernel.org

-- 
Thanks,
Sasha

      reply	other threads:[~2026-11-02  1:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-11 22:33 [PATCH] selftests: lib.mk: define LINK.c, COMPILE.S and LINK.S when make has none Sasha Levin
2026-11-02  1:33 ` Sasha Levin [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=20261102013331.2136774-1-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=shuah@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