Add WLAN support for MT7668.
Change-Id: I5c9ac5af9e73e3d06b8712f06c8027f31a339ac3
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d4db2e9
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+excelsior-wlan (1-1) mendel-chef; urgency=medium
+
+ * Initial release to support MT7668
+
+ -- Coral Team <coral-support@google.com> Mon, 15 Apr 2019 16:04:08 -0700
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..752385d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,20 @@
+Source: excelsior-wlan
+Section: libs
+Priority: optional
+Maintainer: Coral <coral-support@google.com>
+Build-Depends: debhelper (>= 10),
+ linux-headers-4.19.32-mtk (>1),
+ linux-kbuild-4.19.32-mtk (>1)
+Standards-Version: 3.9.8
+Homepage: https://coral.withgoogle.com/
+
+Package: excelsior-wlan
+Section: libs
+Architecture: arm64 armhf
+Priority: optional
+Depends: excelsior-connectivity-fw,
+ ${shlibs:Depends},
+ ${misc:Depends}
+Description: Excelsior WLAN support.
+ Install modules and firmware to support the MT7668 WLAN chipset.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..646722c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,6 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: excelsior-wlan
+
+Files: *
+Copyright: Copyright 2019 Google, LLC <coral-support@google.com>
+License: Apache-2.0
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..70a92b4
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1 @@
+excelsior-wlan: new-package-should-close-itp-bug
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..096c772
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+
+depmod -a 4.19.32-mtk
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..de5dad1
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#
+# output every command that modifies files on the build system.
+# export DH_VERBOSE = 1
+
+PACKAGENAME=excelsior-wlan
+DESTDIR=$(shell pwd)/debian/$(PACKAGENAME)
+CURDIR=$(shell pwd)
+KERNELVERSION=4.19.32-mtk
+MODULESDIR=$(DESTDIR)/lib/modules/$(KERNELVERSION)
+CONNECTIVITYMODULESDIR=$(MODULESDIR)/kernel/misc/mediatek/connectivity
+
+KERNELSRC=/usr/src/linux-headers-$(KERNELVERSION)
+KERNELMOD=wlan_mt7668_sdio.ko
+
+
+
+
+MAKEOPTS := MTK_COMBO_CHIP=MT6632 \
+ CONFIG_MTK_WIFI_ONLY=m \
+ CONFIG_MTK_COMBO=m \
+ CONFIG_MTK_COMBO_WIFI=m \
+ CONFIG_MTK_COMBO_WIFI_HIF=sdio \
+ WLAN_CHIP_ID=mt7668 \
+ -j $(shell nproc)
+
+%:
+ dh $@
+
+override_dh_auto_clean:
+ true
+
+override_dh_auto_build:
+ $(MAKE) ARCH=$(DEB_TARGET_ARCH) CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- -C $(KERNELSRC) $(MAKEOPTS) M=$(PWD)
+
+override_dh_auto_install:
+ install -d $(MODULESDIR)
+ install -d $(CONNECTIVITYMODULESDIR)
+ install -g 0 -o 0 $(KERNELMOD) $(CONNECTIVITYMODULESDIR)
+
+
+