aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-02-24 11:59:56 +0000
committerJohn Crispin <john@openwrt.org>2015-02-24 11:59:56 +0000
commit114da1595aac7648c5db75971794f3494ce49f64 (patch)
tree4ad14a07b894bbcb23a2c5a8a69b5951505c7261
parent9b6adc2d3ab961cb5c481bb474ab1aa13f4c9d8c (diff)
downloadupstream-114da1595aac7648c5db75971794f3494ce49f64.tar.gz
upstream-114da1595aac7648c5db75971794f3494ce49f64.tar.bz2
upstream-114da1595aac7648c5db75971794f3494ce49f64.zip
kernel: add qca-nss-gmac as a new module
This driver is used on IPQ806x to instanciate & drive the ethernet interfaces. Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org> SVN-Revision: 44521
-rw-r--r--package/kernel/qca-nss-gmac/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/package/kernel/qca-nss-gmac/Makefile b/package/kernel/qca-nss-gmac/Makefile
new file mode 100644
index 0000000000..d9947708fc
--- /dev/null
+++ b/package/kernel/qca-nss-gmac/Makefile
@@ -0,0 +1,50 @@
+#
+# Copyright (c) 2015 The Linux Foundation. All rights reserved.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=qca-nss-gmac
+PKG_VERSION:=20150210
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=git://codeaurora.org/quic/qsdk/oss/lklm/nss-gmac
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE_VERSION:=969aab0aff40a3a5afe70d0f00e783b1c57aaea6
+
+PKG_LICENSE:=ISC
+
+include $(INCLUDE_DIR)/package.mk
+
+define KernelPackage/qca-nss-gmac
+ SECTION:=kernel
+ CATEGORY:=Kernel modules
+ SUBMENU:=Network Devices
+ DEPENDS:=@TARGET_ipq806x
+ TITLE:=Kernel driver for NSS gmac
+ FILES:=$(PKG_BUILD_DIR)/ipq806x/qca-nss-gmac.ko
+ AUTOLOAD:=$(call AutoProbe,qca-nss-gmac)
+endef
+
+define KernelPackage/qca-nss-gmac/Description
+This package contains a NSS driver for QCA chipset
+endef
+
+EXTRA_CFLAGS+= \
+ -DCONFIG_NSS_DEBUG_LEVEL=4 \
+ -I$(PKG_BUILD_DIR)/nss_hal/include \
+ -I$(PKG_BUILD_DIR)/nss_hal/$(BOARD)
+
+define Build/Compile
+ $(MAKE) -C "$(LINUX_DIR)" \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ ARCH="$(LINUX_KARCH)" \
+ SUBDIRS="$(PKG_BUILD_DIR)" \
+ EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
+ modules
+endef
+
+$(eval $(call KernelPackage,qca-nss-gmac))