From 7c764ba7584e2ca83448290e7d7fd49101faecad Mon Sep 17 00:00:00 2001 From: "Mr. Philipp" <33333559+d3vilh@users.noreply.github.com> Date: Sun, 12 Feb 2023 18:27:06 +0200 Subject: [PATCH] ARM Raspberry-PI Support ++ Raspberry PI Support. --- Makefile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 3d08dac..1d96805 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) +EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) -fno-pie EXTRA_CFLAGS += -O1 #EXTRA_CFLAGS += -O3 #EXTRA_CFLAGS += -Wall @@ -24,7 +24,7 @@ ifeq ($(GCC_VER_49),1) EXTRA_CFLAGS += -Wno-date-time # Fix compile error && warning on gcc 4.9 and later endif -EXTRA_CFLAGS += -I$(src)/include +EXTRA_CFLAGS += -I$(src)/include -I$(srctree)/$(src)/include EXTRA_LDFLAGS += --strip-debug @@ -143,8 +143,8 @@ CONFIG_LAYER2_ROAMING = y CONFIG_ROAMING_FLAG = 0x3 ###################### Platform Related ####################### CONFIG_PLATFORM_I386_PC = y -CONFIG_PLATFORM_RPI_ARM = n -CONFIG_PLATFORM_RPI_ARM64 = n +CONFIG_PLATFORM_ARM_RPI = n +CONFIG_PLATFORM_ARM64_RPI = n CONFIG_PLATFORM_ANDROID_X86 = n CONFIG_PLATFORM_ANDROID_INTEL_X86 = n CONFIG_PLATFORM_JB_X86 = n @@ -277,10 +277,11 @@ _HAL_INTFS_FILES := hal/hal_intf.o \ hal/led/hal_$(HCI_NAME)_led.o -EXTRA_CFLAGS += -I$(src)/platform +EXTRA_CFLAGS += -I$(src)/platform -I$(srctree)/$(src)/platform _PLATFORM_FILES := platform/platform_ops.o -EXTRA_CFLAGS += -I$(src)/hal/btc +EXTRA_CFLAGS += -I$(src)/hal/btc -I$(srctree)/$(src)/hal/btc +EXTRA_CFLAGS += -I$(src)/hal/phydm -I$(srctree)/$(src)/hal/phydm ########### HAL_RTL8188E ################################# ifeq ($(CONFIG_RTL8188E), y) @@ -1350,7 +1351,7 @@ ifeq ($(CONFIG_PLATFORM_I386_PC), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT -SUBARCH := $(shell uname -m | sed -e s/i.86/i386/) +SUBARCH := $(shell uname -m | sed -e "s/i.86/i386/; s/ppc64le/powerpc/; s/ppc/powerpc/; s/armv.l/arm/; s/aarch64/arm64/;") ARCH ?= $(SUBARCH) CROSS_COMPILE ?= KVER := $(shell uname -r) @@ -1360,7 +1361,7 @@ INSTALL_PREFIX := STAGINGMODDIR := /lib/modules/$(KVER)/kernel/drivers/staging endif -ifeq ($(CONFIG_PLATFORM_RPI_ARM), y) +ifeq ($(CONFIG_PLATFORM_ARM_RPI), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT @@ -1372,7 +1373,7 @@ MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX := endif -ifeq ($(CONFIG_PLATFORM_RPI_ARM64), y) +ifeq ($(CONFIG_PLATFORM_ARM64_RPI), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT @@ -2557,4 +2558,3 @@ clean: rm -fr *.mod.c *.mod *.o .*.cmd *.ko *~ rm -fr .tmp_versions endif -