Răsfoiți Sursa

datarmnet : Featurize the rmnet_core to point correct path.

These changes will help to have TRACE_INCLUDE_PATH according to
target directory structure. Target specific flag was added to detect
correct source path.

Change-Id: I04463c7c30a700f6d697a5de5df69cf9de7805ce
Signed-off-by: Mayank Vishwari <[email protected]>
Mayank Vishwari 4 ani în urmă
părinte
comite
4d883b9534
4 a modificat fișierele cu 13 adăugiri și 5 ștergeri
  1. 4 2
      core/Kbuild
  2. 3 1
      core/dfc.h
  3. 3 1
      core/rmnet_trace.h
  4. 3 1
      core/wda.h

+ 4 - 2
core/Kbuild

@@ -2,11 +2,13 @@ ifneq (, $(filter y, $(CONFIG_ARCH_LAHAINA) $(CONFIG_ARCH_WAIPIO)))
 ccflags-y	+= -DRMNET_LA_PLATFORM
 endif
 
+ifeq ($(CONFIG_ARCH_SDXNIGHTJAR), y)
+ccflags-y	+= -DRMNET_TRACE_INCLUDE_LE
+endif
+
 obj-m += rmnet_core.o
 obj-m += rmnet_ctl.o
 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
 rmnet_ctl-y := rmnet_ctl_client.o rmnet_ctl_ipa.o
-
-

+ 3 - 1
core/dfc.h

@@ -1,4 +1,4 @@
-/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 and
@@ -15,6 +15,8 @@
 #undef TRACE_INCLUDE_PATH
 #ifdef RMNET_LA_PLATFORM
 #define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
+#elif RMNET_TRACE_INCLUDE_LE
+#define TRACE_INCLUDE_PATH ../../../../../../../datarmnet/core
 #else
 #define TRACE_INCLUDE_PATH ../../../../../../../src/datarmnet/core
 #endif

+ 3 - 1
core/rmnet_trace.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-/* Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
  */
 #ifdef CONFIG_FTRACE
 #undef TRACE_SYSTEM
@@ -7,6 +7,8 @@
 #undef TRACE_INCLUDE_PATH
 #ifdef RMNET_LA_PLATFORM
 #define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
+#elif RMNET_TRACE_INCLUDE_LE
+#define TRACE_INCLUDE_PATH ../../../../../../../datarmnet/core
 #else
 #define TRACE_INCLUDE_PATH ../../../../../../../src/datarmnet/core
 #endif

+ 3 - 1
core/wda.h

@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0-only */
-/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2018,2021, The Linux Foundation. All rights reserved.
  */
 
 #undef TRACE_SYSTEM
@@ -7,6 +7,8 @@
 #undef TRACE_INCLUDE_PATH
 #ifdef RMNET_LA_PLATFORM
 #define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
+#elif RMNET_TRACE_INCLUDE_LE
+#define TRACE_INCLUDE_PATH ../../../../../../../datarmnet/core
 #else
 #define TRACE_INCLUDE_PATH ../../../../../../../src/datarmnet/core
 #endif