public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: nvidia@cohens.org.il
To: linux-kbuild@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
	Masahiro Yamada <masahiroy@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	Nicolas Schier <nicolas@fjasle.eu>
Subject: Makefile: fix usage of kernelrelease with M=foo
Date: Tue, 14 Mar 2023 15:02:47 +0200	[thread overview]
Message-ID: <20230314130248.954196-1-nvidia@cohens.org.il> (raw)

Commit 1cb86b6c3136 ("kbuild: save overridden KERNELRELEASE in
include/config/kernel.release") set the command that is used for
printing the output of kernelrelease only when KBUILD_EXTMOD is not set.

Test:

make M=$PWD -s kernelversion
make M=$PWD -s kernelrelease

Should print both. Prints only kernelversion and an empty line for
kernelrelease. Included a simple patch that fixes this test.



             reply	other threads:[~2023-03-14 13:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-14 13:02 nvidia [this message]
2023-03-14 13:02 ` [PATCH] Makefile: Make kernelrelease target work with M= nvidia
2023-03-14 14:14   ` 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=20230314130248.954196-1-nvidia@cohens.org.il \
    --to=nvidia@cohens.org.il \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=nicolas@fjasle.eu \
    /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