From b9d50acaa2329a0b54d69ab1aa5195fcc9006ea1 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sat, 16 Nov 2019 06:07:27 +0100 Subject: [PATCH] Add platform support for Nvidia Jetson Nano --- Makefile | 12 ++++++++++++ dkms.conf | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f4e8dde..ae59ec0 100755 --- a/Makefile +++ b/Makefile @@ -107,6 +107,7 @@ CONFIG_MP_VHT_HW_TX_MODE = y CONFIG_PLATFORM_I386_PC = y CONFIG_PLATFORM_ARM_RPI = n CONFIG_PLATFORM_ARM64_RPI = n +CONFIG_PLATFORM_ARM_JET_NANO = y CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_ANDROID_INTEL_X86 = n CONFIG_PLATFORM_JB_X86 = n @@ -1184,6 +1185,17 @@ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX := endif +# NVidia Jetson Nano +ifeq ($(CONFIG_PLATFORM_ARM_JET_NANO), y) +EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN +EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE +EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT +ARCH := arm64 +KVER ?= $(shell uname -r) +KSRC := /usr/src/linux-headers-$(KVER)-ubuntu18.04_aarch64/kernel-4.9 +MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/realtek/rtl8812au/ +endif + ifeq ($(CONFIG_PLATFORM_ARM_ODROIDC2), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT diff --git a/dkms.conf b/dkms.conf index 00f7985..bb224be 100644 --- a/dkms.conf +++ b/dkms.conf @@ -1,5 +1,5 @@ PACKAGE_NAME="realtek-rtl88xxau" -PACKAGE_VERSION="5.6.4.2~20191114" +PACKAGE_VERSION="5.6.4.2~20191116" CLEAN="'make' clean" BUILT_MODULE_NAME[0]=88XXau PROCS_NUM=`nproc`