2022-08-20 10:39:26 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=qca-nss-dp
|
2024-04-16 14:44:41 +00:00
|
|
|
PKG_RELEASE:=3
|
2022-08-20 10:39:26 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/nss-dp.git
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2023-06-23 12:18:14 +00:00
|
|
|
PKG_SOURCE_DATE:=2023-06-06
|
|
|
|
PKG_SOURCE_VERSION:=fa67464466f69f00967cc373d1bdd6025f57eb89
|
2024-03-25 09:03:26 +00:00
|
|
|
PKG_MIRROR_HASH:=39329770042c85b32780cd12eef2aad2c5df79f34d1b7081e5ba1e1cc0b1b161
|
2022-08-20 10:39:26 +00:00
|
|
|
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/qca-nss-dp
|
|
|
|
SECTION:=kernel
|
|
|
|
CATEGORY:=Kernel modules
|
|
|
|
SUBMENU:=Network Devices
|
2023-06-11 17:32:52 +00:00
|
|
|
DEPENDS:=@TARGET_qualcommax +kmod-qca-ssdk
|
2022-08-20 10:39:26 +00:00
|
|
|
TITLE:=Qualcom NSS dataplane ethernet driver
|
|
|
|
FILES:=$(PKG_BUILD_DIR)/qca-nss-dp.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,31,qca-nss-dp,1)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/qca-nss-dp/Description
|
|
|
|
NSS dataplane ethernet driver for Qualcom SoCs.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(1)/usr/include/qca-nss-dp
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/exports/* $(1)/usr/include/qca-nss-dp/
|
|
|
|
endef
|
|
|
|
|
|
|
|
EXTRA_CFLAGS+= \
|
|
|
|
-I$(STAGING_DIR)/usr/include/qca-ssdk
|
|
|
|
|
|
|
|
NSS_DP_HAL_DIR:=$(PKG_BUILD_DIR)/hal
|
|
|
|
define Build/Configure
|
2024-04-01 02:03:22 +00:00
|
|
|
$(CP) $(NSS_DP_HAL_DIR)/soc_ops/$(CONFIG_TARGET_SUBTARGET)/nss_$(CONFIG_TARGET_SUBTARGET).h \
|
2022-08-20 10:39:26 +00:00
|
|
|
$(PKG_BUILD_DIR)/exports/nss_dp_arch.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2023-06-23 16:34:39 +00:00
|
|
|
+$(KERNEL_MAKE) $(PKG_JOBS) \
|
|
|
|
-C "$(LINUX_DIR)" \
|
2022-08-20 10:39:26 +00:00
|
|
|
M="$(PKG_BUILD_DIR)" \
|
2023-06-13 20:07:06 +00:00
|
|
|
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" SoC="$(CONFIG_TARGET_SUBTARGET)" \
|
2022-08-20 10:39:26 +00:00
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,qca-nss-dp))
|