
Enable rmnet core and ctl drivers and update the kernel APIs to match the appropriate kernel. This change also adds support for the inclusion of the IPA kernel headers from a non-core kernel location. This is achieved using the flag KBUILD_REQUIRED_KOS. Additionally, remove all deprecated code. CRs-Fixed: 3311558 Change-Id: I9317f53ca8b1a370b6a5eb86734057399aee1d48 Signed-off-by: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
51 lignes
1009 B
Makefile
51 lignes
1009 B
Makefile
ifeq ($(RELEASE_PACKAGE),1)
|
|
EXTRA_CFLAGS+=-DRELEASE_PACKAGE
|
|
endif
|
|
LBITS ?= $(shell getconf LONG_BIT)
|
|
ifeq ($(LBITS),64)
|
|
CCFLAGS += -m64
|
|
EXTRA_CFLAGS+=-DSYSTEM_IS_64
|
|
else
|
|
CCFLAGS += -m32
|
|
endif
|
|
|
|
M ?= $(shell pwd)
|
|
#obj-m := rmnet_core.o rmnet_ctl.o
|
|
|
|
rmnet_core-y += rmnet_config.o \
|
|
rmnet_descriptor.o \
|
|
rmnet_genl.o \
|
|
rmnet_handlers.o \
|
|
rmnet_map_command.o \
|
|
rmnet_map_data.o \
|
|
rmnet_module.o \
|
|
rmnet_vnd.o \
|
|
dfc_qmap.c \
|
|
dfc_qmi.c \
|
|
qmi_rmnet.0 \
|
|
wda_qmi.0 \
|
|
rmnet_ll.o \
|
|
rmnet_ll_ipa.o \
|
|
rmnet_qmap.o \
|
|
rmnet_ll_qmap.o
|
|
|
|
ifneq (, $(filter y, $(CONFIG_ARCH_PINEAPPLE)))
|
|
rmnet_ctl-y += rmnet_ctl_client.o \
|
|
rmnet_ctl_ipa.o \
|
|
rmnet_ctl_mhi.o
|
|
endif
|
|
|
|
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
|
|
|
|
KBUILD_OPTIONS := RMNET_CORE_ROOT=$(PWD)
|
|
KBUILD_OPTIONS += MODNAME?=rmnet_core
|
|
|
|
all:
|
|
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
|
|
|
|
modules_install:
|
|
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules_install
|
|
|
|
clean:
|
|
$(MAKE) -C $(KERNEL_SRC) M=$(M) clean
|