core: Allow compilation in UML

Add a specific trace path for arch uml.
This change assumes that the kernel and datarmnet source at the same
parent folder when compiling for UML.

Additionally, compilation is skipped for ipa and related low latency
modules for UML.

CRs-Fixed: 3237924
Change-Id: I6151578373b3822cade3fb7fd306390e99f617c4
Signed-off-by: Subash Abhinov Kasiviswanathan <quic_subashab@quicinc.com>
This commit is contained in:
Subash Abhinov Kasiviswanathan
2021-07-12 23:39:02 -06:00
orang tua 73d31ec862
melakukan 95a8eb69ff
4 mengubah file dengan 46 tambahan dan 25 penghapusan

Melihat File

@@ -10,18 +10,21 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/version.h>
#undef TRACE_SYSTEM
#define TRACE_SYSTEM dfc
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
#ifdef RMNET_LA_PLATFORM
#define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
#elif RMNET_TRACE_INCLUDE_LE
#define TRACE_INCLUDE_PATH ../../../../../../../datarmnet/core
#if defined(RMNET_LA_PLATFORM)
#define TRACE_INCLUDE_PATH ../../../../vendor/qcom/opensource/datarmnet/core
#elif defined(__arch_um__)
#define TRACE_INCLUDE_PATH ../../datarmnet/core
#elif defined(RMNET_TRACE_INCLUDE_LE)
#define TRACE_INCLUDE_PATH ../../../../../../../datarmnet/core
#else
#define TRACE_INCLUDE_PATH ../../../../../../../src/datarmnet/core
#endif
#define TRACE_INCLUDE_PATH ../../../../../../../src/datarmnet/core
#endif /* defined(RMNET_LA_PLATFORM) */
#define TRACE_INCLUDE_FILE dfc
#if !defined(_TRACE_DFC_H) || defined(TRACE_HEADER_MULTI_READ)