qcacld-3.0: Add CONFIG_CNSS_OUT_OF_TREE flag

Use CONFIG_CNSS_OUT_OF_TREE to control if CNSS family drivers are
built from in-kernel-tree source or out-of-kernel-tree source since
the exposed header files will be in different paths. This is also
for backward compatibility.

Change-Id: Icc1253f65a596c8579424f056dcd0fcb5e73a4a1
CRs-fixed: 3022566
This commit is contained in:
Yue Ma
2021-06-30 18:34:44 -07:00
committad av Madan Koyyalamudi
förälder 2e49f1156d
incheckning 39066dbed1
7 ändrade filer med 32 tillägg och 0 borttagningar

Visa fil

@@ -25,8 +25,12 @@
#include <osapi_linux.h>
#ifdef CNSS_UTILS
#ifdef CONFIG_CNSS_OUT_OF_TREE
#include "cnss_utils.h"
#else
#include <net/cnss_utils.h>
#endif
#endif
#define PLD_IMAGE_FILE "athwlan.bin"
#define PLD_UTF_FIRMWARE_FILE "utf.bin"
@@ -40,8 +44,12 @@
#define TOTAL_DUMP_SIZE 0x00200000
#ifdef CNSS_MEM_PRE_ALLOC
#ifdef CONFIG_CNSS_OUT_OF_TREE
#include "cnss_prealloc.h"
#else
#include <net/cnss_prealloc.h>
#endif
#endif
/**
* enum pld_bus_type - bus type

Visa fil

@@ -29,8 +29,12 @@
#include <net/cnss.h>
#endif
#ifdef CONFIG_PLD_PCIE_CNSS
#ifdef CONFIG_CNSS_OUT_OF_TREE
#include "cnss2.h"
#else
#include <net/cnss2.h>
#endif
#endif
#ifdef CONFIG_PLD_SNOC_ICNSS
#ifdef CONFIG_PLD_SNOC_ICNSS2
#include <soc/qcom/icnss2.h>

Visa fil

@@ -23,8 +23,12 @@
#include <linux/slab.h>
#ifdef CONFIG_PLD_PCIE_CNSS
#ifdef CONFIG_CNSS_OUT_OF_TREE
#include "cnss2.h"
#else
#include <net/cnss2.h>
#endif
#endif
#include "pld_internal.h"
#include "pld_pcie.h"

Visa fil

@@ -20,8 +20,12 @@
#define __PLD_PCIE_H__
#ifdef CONFIG_PLD_PCIE_CNSS
#ifdef CONFIG_CNSS_OUT_OF_TREE
#include "cnss2.h"
#else
#include <net/cnss2.h>
#endif
#endif
#include <linux/pci.h>
#include "pld_internal.h"