2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-29 13:28:14 +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:
Max Görner 2021-03-30 21:36:03 +02:00
parent d13de4e4e1
commit f6bdb215ba

View File

@ -1309,10 +1309,17 @@ else
endif endif
CROSS_COMPILE ?= CROSS_COMPILE ?=
KVER ?= $(shell uname -r) KVER ?= $(shell uname -r)
KSRC ?= /lib/modules/$(KVER)/build ifeq ($(KBASE),)
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ 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 := INSTALL_PREFIX :=
STAGINGMODDIR := /lib/modules/$(KVER)/kernel/drivers/staging
endif endif
ifeq ($(CONFIG_PLATFORM_NV_TK1), y) ifeq ($(CONFIG_PLATFORM_NV_TK1), y)