Re: [PATCH for-5.4,5.10] kbuild: simplify access to the kernel's version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux