On Sun, 2018-09-23 at 22:03 +0200, Johannes Berg wrote: > On Sun, 2018-09-23 at 16:16 +0200, Hauke Mehrtens wrote: > > Hi, > > > > I tried to compile backports against kernel 4.18 and 4.19-rc4 (header > > files from Ubuntu) and ran into this problem when it wants to link the > > kernel: > > > > LD [M] > > /home/hauke/compat-wireless/backports-4.19-rc4-1/drivers/net/wireless/realtek/rtlwifi/rtl_usb.o > > Building modules, stage 2. > > scripts/Makefile.lib:10: *** Recursive variable 'KBUILD_CFLAGS' > > references itself (eventually). Stop. > > Hmm. I vaguely remember something like that with our driver, but can't > find it now? I also remember trying to fix it in the upstream kernel ... Hmm. Well, I can't find any changes from me upstream in this area, so either I didn't succeed or it didn't get applied. I also can't find a public record of a patch, so I guess I didn't succeed? Seems simple enough though, just make cc-option := instead of = in scripts/Kbuild.include? Or maybe not, dunno. johannes -- To unsubscribe from this list: send the line "unsubscribe backports" in