From f48ecb0bc88aae6f1f7724de154bc423f240c804 Mon Sep 17 00:00:00 2001 From: morrownr Date: Sun, 11 Dec 2022 12:52:18 -0600 Subject: [PATCH] support ARMv61 --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 181f9b0..159e9e7 100644 --- a/Makefile +++ b/Makefile @@ -1351,13 +1351,26 @@ ifeq ($(CONFIG_PLATFORM_GENERIC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT +# This could be a better way to set SUBARCH but it needs work +# SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ +# -e s/arm.*/arm/ \ +# -e s/mips.*/mips/ \ +# -e s/aarch64.*/arm64/ ) + SUBARCH := $(shell uname -m) + ifeq ($(SUBARCH), aarch64) SUBARCH := arm64 endif + ifeq ($(SUBARCH), armv7l) SUBARCH := arm endif + +ifeq ($(SUBARCH), armv6l) +SUBARCH := arm +endif + ARCH ?= $(SUBARCH) CROSS_COMPILE ?=