From 9a4732c8a0b1eb0032e980bf371100eab859d9c5 Mon Sep 17 00:00:00 2001 From: morrownr Date: Fri, 18 Nov 2022 20:46:45 -0600 Subject: [PATCH] Makefile plus minor updates --- Makefile | 11 ++++++++++- README.md | 14 ++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 36802e3..08e64a5 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,7 @@ EXTRA_CFLAGS += -Wno-unused-variable #EXTRA_CFLAGS += -Wno-unused-function #EXTRA_CFLAGS += -Wno-unused #EXTRA_CFLAGS += -Wno-uninitialized +#EXTRA_CFLAGS += -Wno-vla EXTRA_CFLAGS += -Wno-misleading-indentation EXTRA_CFLAGS += -Wno-implicit-fallthrough #EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE @@ -1338,12 +1339,20 @@ EXTRA_CFLAGS += -DCONFIG_RTW_MBO -DCONFIG_RTW_80211K -DCONFIG_RTW_WNM -DCONFIG_R EXTRA_CFLAGS += -DCONFIG_RTW_80211R endif +# *** GENERIC *** ifeq ($(CONFIG_PLATFORM_GENERIC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT SUBARCH := $(shell uname -m) +ifeq ($(SUBARCH), aarch64) +SUBARCH := arm64 +endif +ifeq ($(SUBARCH), armv7l) +SUBARCH := arm +endif ARCH ?= $(SUBARCH) + CROSS_COMPILE ?= KVER ?= $(shell uname -r) KSRC := /lib/modules/$(KVER)/build @@ -1356,7 +1365,7 @@ STAGINGMODDIR := /lib/modules/$(KVER)/kernel/drivers/staging #EXTRA_CFLAGS += -DCONFIG_PLATFORM_ROCKCHIPS # End of Platform Specific Flags endif - +# *** End GENERIC *** ifeq ($(CONFIG_PLATFORM_I386_PC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN diff --git a/README.md b/README.md index 0567d21..96e7f5b 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,8 @@ confirm that this is the correct driver for your adapter. - x86 - x86-64 (amd64) -- arm -- arm64 (aarch64) +- arm (armv7l) +- arm64 (aarch64) ### Compatible Kernels @@ -57,7 +57,7 @@ is easy to install and works reliably on many distros. Meeting this goal depends on you to report your recommendations and updated information. If you see information that needs to be updated, please report the updated information and if you do not see adequate support for -items such as Installation Steps 2, 3 and 9, and you know what updates +items such as Installation Steps 2 and 3, and you know what updates need to added or you can get that information, please provide it so that the Installation Steps can be improved. @@ -106,8 +106,8 @@ lack of mac80211 technology drivers that are supported in-kernel as called for by Linux Wireless Standards. This repo is supported for the benefit of Linux users who already have adapters based on the supported chipsets. If you are looking for information about what adapter to buy, -click [here](https://github.com/morrownr/USB-WiFi) for information about -and links to recommended adapters. +click [here](https://github.com/morrownr/USB-WiFi) and look for Main Menu +item 2 which will show information about and links to recommended adapters. * Cudy WU700 * EDUP EP-AC1651 @@ -116,8 +116,6 @@ and links to recommended adapters. * Mercusys MU6H (multi-state) * Numerous additional products that are based on the supported chipsets -Note: Please read "supported-device-IDs" for information about how to confirm the correct driver for your adapter. - ### Installation Information Warning: Installing multiple drivers for the same hardware usually does @@ -254,7 +252,7 @@ sudo apt install -y build-essential dkms git - Option for Fedora ``` -sudo dnf -y install git dkms kernel-devel kernel-debug-devel +sudo dnf -y install git dkms kernel-devel openssl ``` - Option for openSUSE