From b072da4993707ef214a5d01dda9d54853666d70c Mon Sep 17 00:00:00 2001 From: Vaisakh Murali Date: Sun, 28 Jan 2024 11:07:53 +0530 Subject: [PATCH] techpack/datarmnet: add build time built-in modules support Signed-off-by: Vaisakh Murali --- techpack/datarmnet-ext/offload/Kbuild | 5 ++++- techpack/datarmnet-ext/shs/Kbuild | 5 ++++- techpack/datarmnet/core/Kbuild | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/techpack/datarmnet-ext/offload/Kbuild b/techpack/datarmnet-ext/offload/Kbuild index 2bb49c4e0b26..a566b2134ccc 100644 --- a/techpack/datarmnet-ext/offload/Kbuild +++ b/techpack/datarmnet-ext/offload/Kbuild @@ -1,7 +1,10 @@ #rmnet_perf needs the symbols from the core driver module KBUILD_EXTRA_SYMBOLS := $(shell pwd)/../../$(RMNET_CORE_PATH)/Module.symvers - +ifeq ($(BUILTIN), 1) +obj-y += rmnet_offload.o +else obj-m += rmnet_offload.o +endif #Need core headers ccflags-y := -I$(RMNET_CORE_INC_DIR) \ $(call cc-option,-Wno-misleading-indentation) diff --git a/techpack/datarmnet-ext/shs/Kbuild b/techpack/datarmnet-ext/shs/Kbuild index 030d5f66b375..e0e35e91f0a7 100644 --- a/techpack/datarmnet-ext/shs/Kbuild +++ b/techpack/datarmnet-ext/shs/Kbuild @@ -1,7 +1,10 @@ #rmnet_shs needs the symbols from the core driver module KBUILD_EXTRA_SYMBOLS := $(shell pwd)/../../$(RMNET_CORE_PATH)/Module.symvers - +ifeq ($(BUILTIN), 1) +obj-y += rmnet_shs.o +else obj-m += rmnet_shs.o +endif #Need core headers ccflags-y := -I$(RMNET_CORE_INC_DIR) \ $(call cc-option,-Wno-misleading-indentation) diff --git a/techpack/datarmnet/core/Kbuild b/techpack/datarmnet/core/Kbuild index 51ac345578dc..ffcca5042373 100644 --- a/techpack/datarmnet/core/Kbuild +++ b/techpack/datarmnet/core/Kbuild @@ -1,5 +1,10 @@ +ifeq ($(BUILTIN), 1) +obj-y += rmnet_core.o +obj-y += rmnet_ctl.o +else obj-m += rmnet_core.o obj-m += rmnet_ctl.o +endif rmnet_core-y := rmnet_config.o rmnet_handlers.o rmnet_descriptor.o \ rmnet_genl.o rmnet_map_command.o rmnet_map_data.o rmnet_vnd.o\ qmi_rmnet.o wda_qmi.o dfc_qmi.o dfc_qmap.o