From: Greg KH <gregkh@linuxfoundation.org>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: stable@vger.kernel.org, Sasha Levin <sashal@kernel.org>,
Masahiro Yamada <masahiroy@kernel.org>
Subject: Re: [PATCH for-5.4,5.10] kbuild: simplify access to the kernel's version
Date: Tue, 8 Feb 2022 18:17:22 +0100 [thread overview]
Message-ID: <YgKlosDt91Hf3+iJ@kroah.com> (raw)
In-Reply-To: <516b790f-8f67-0523-a95b-9d359036bd59@flygoat.com>
On Tue, Feb 08, 2022 at 03:47:13PM +0000, Jiaxun Yang wrote:
>
>
> 在 2022/2/8 15:23, Greg KH 写道:
> > On Tue, Feb 08, 2022 at 02:46:36PM +0000, Jiaxun Yang wrote:
> > > Oh Please ignore this series of backport.
> > For all branches?
> Yep.
> >
> > > We find another way to workaround the issue.
> > What is your solution? I am sure that others would be interested in it.
> Oh we just define them in Makefile with cflags
> like:
>
>
> --- a/Makefile.kernel
> +++ b/Makefile.kernel
> @@ -60,3 +60,5 @@ obj-$(CPTCFG_WLAN) += drivers/net/wireless/
> #obj-$(CPTCFG_USB_USBNET) += drivers/net/usb/
> #
> #obj-$(CPTCFG_STAGING) += drivers/staging/
> +
> +subdir-ccflags-y += -DCOMPAT_KERNEL_SUBLEVEL=$(SUBLEVEL)
Ah, that works, nice!
greg k-h
prev parent reply other threads:[~2022-02-08 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-07 14:36 [PATCH for-5.4,5.10] kbuild: simplify access to the kernel's version Jiaxun Yang
2022-02-08 14:46 ` Jiaxun Yang
2022-02-08 15:23 ` Greg KH
2022-02-08 15:47 ` Jiaxun Yang
2022-02-08 17:17 ` Greg KH [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=YgKlosDt91Hf3+iJ@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=jiaxun.yang@flygoat.com \
--cc=masahiroy@kernel.org \
--cc=sashal@kernel.org \
--cc=stable@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