[qca-nss-drv] Compile nss_pm for all boards
The qca-nss-crypto module requires certain functions from nss_pm.
Compile nss_pm.c for all board types and add a compile time
check for IPQ807x.
Related to IR-198649
Change-Id: Ia0568e196bbe84308ce2f9426795776f435d0a3a
Signed-off-by: Tanmay V Jagdale <tjagdale@codeaurora.org>
diff --git a/Makefile b/Makefile
index f35dbaf..34388db 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,7 @@
nss_n2h.o \
nss_oam.o \
nss_phys_if.o \
+ nss_pm.o \
nss_profiler.o \
nss_portid.o \
nss_ppe.o \
@@ -65,8 +66,7 @@
ifeq ($(SoC), ipq806x)
qca-nss-drv-objs += nss_data_plane/nss_data_plane_gmac.o \
- nss_hal/ipq806x/nss_hal_pvt.o \
- nss_pm.o
+ nss_hal/ipq806x/nss_hal_pvt.o
ccflags-y += -I$(obj)/nss_hal/ipq806x -DNSS_HAL_IPQ806X_SUPPORT
endif