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:

committad av
Madan Koyyalamudi

förälder
2e49f1156d
incheckning
39066dbed1
@@ -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
|
||||
|
@@ -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>
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
||||
|
Referens i nytt ärende
Block a user