mirror of
https://github.com/cilynx/rtl88x2bu
synced 2025-08-22 02:01:55 +00:00
Fix compilation of not installed kernels
This commit fixes aac7c. The definitions of directories were neither complete nor correct. With the present commit a compilation of Linux 5.12 succeeded. In order to do so, the kernel has to be compiled. Doing make tinyconfig was not sufficient, instead yes "" | make localmodconfig had to be done. The compilation itself was done via `make dir-pkg` and it was not tested whether other build targets work too.
This commit is contained in:
parent
d13de4e4e1
commit
f6bdb215ba
13
Makefile
13
Makefile
@ -1309,10 +1309,17 @@ else
|
||||
endif
|
||||
CROSS_COMPILE ?=
|
||||
KVER ?= $(shell uname -r)
|
||||
KSRC ?= /lib/modules/$(KVER)/build
|
||||
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
|
||||
ifeq ($(KBASE),)
|
||||
KBASE = /lib/modules/$(KVER)
|
||||
KSRC = $(KBASE)/build
|
||||
MODDESTDIR = $(KBASE)/kernel/drivers/net/wireless/
|
||||
STAGINGMODDIR = $(KBASE)/kernel/drivers/staging
|
||||
else
|
||||
KSRC = $(KBASE)
|
||||
MODDESTDIR = $(KBASE)/drivers/net/wireless/
|
||||
STAGINGMODDIR = $(KBASE)/drivers/staging
|
||||
endif
|
||||
INSTALL_PREFIX :=
|
||||
STAGINGMODDIR := /lib/modules/$(KVER)/kernel/drivers/staging
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_PLATFORM_NV_TK1), y)
|
||||
|
Loading…
x
Reference in New Issue
Block a user