From 6784fc1f62f19dd4b4059d83ecfca4dd1ba1d6bf Mon Sep 17 00:00:00 2001 From: "Matthew S. Dippel" Date: Mon, 26 Sep 2016 18:07:33 -0400 Subject: [PATCH 1/5] Add Raspbian to Makefile --- Makefile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 273b605..ffb3b3c 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,8 @@ CONFIG_PNO_SUPPORT = n CONFIG_PNO_SET_DEBUG = n CONFIG_AP_WOWLAN = n ###################### Platform Related ####################### -CONFIG_PLATFORM_I386_PC = y +CONFIG_PLATFORM_I386_PC = n +CONFIG_RASPBIAN = y ############################################################### CONFIG_DRVEXT_MODULE = n @@ -246,6 +247,18 @@ ifeq ($(CONFIG_GPIO_WAKEUP), y) EXTRA_CFLAGS += -DCONFIG_GPIO_WAKEUP endif +ifeq ($(CONFIG_RASPBIAN), y) +EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN +EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 +EXTRA_CFLAGS += -DRTW_USE_CFG80211_STA_EVENT # only enable when kernel >= 3.2 +EXTRA_CFLAGS += -DCONFIG_P2P_IPS +ARCH := arm +CROSS_COMPILE := arm-linux-gnueabihf- +KVER := $(shell uname -r) +KSRC ?= /lib/modules/$(KVER)/build +MODULE_NAME := 8723bu +MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ +endif ifeq ($(CONFIG_PLATFORM_I386_PC), y) EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 From 47d8a58da9205708327ad75f2b702494028f3b6d Mon Sep 17 00:00:00 2001 From: "Matthew S. Dippel" Date: Tue, 27 Sep 2016 11:38:45 -0400 Subject: [PATCH 2/5] Updated README.md to indicate platform --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4308ff9..9ec9e80 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ rtl8723bu ========= -Driver for RTL8723BU +Driver for RTL8723BU for building of module on the Raspberry Pi 1/2/3 or Zero under Raspbian Jessie. From 13de5baefbd138763634b038bd86e994061cbb26 Mon Sep 17 00:00:00 2001 From: "r.volkmer" Date: Mon, 9 Jan 2017 16:16:44 +0100 Subject: [PATCH 3/5] add CONFIG_PLATFORM_ARM --- Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index faff50b..ed05231 100644 --- a/Makefile +++ b/Makefile @@ -54,7 +54,7 @@ CONFIG_PNO_SET_DEBUG = n CONFIG_AP_WOWLAN = n ###################### Platform Related ####################### CONFIG_PLATFORM_I386_PC = n -CONFIG_RASPBIAN = y +CONFIG_RASPBIAN = n ############################################################### CONFIG_DRVEXT_MODULE = n @@ -249,6 +249,21 @@ ifeq ($(CONFIG_GPIO_WAKEUP), y) EXTRA_CFLAGS += -DCONFIG_GPIO_WAKEUP endif +ifeq ($(CONFIG_PLATFORM_ARM), y) +EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN +EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 +EXTRA_CFLAGS += -DRTW_USE_CFG80211_STA_EVENT # only enable when kernel >= 3.2 +EXTRA_CFLAGS += -DCONFIG_P2P_IPS +ARCH := arm +CROSS_COMPILE := arm-linux-gnueabihf- +KVER := $(KERNEL_VERSION) +KSRC := $(KERNEL_PATH) +#KERNEL_SOURCE ?= /lib/modules/$(KVER)/build +MODULE_NAME := 8723bu +MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ +endif + + ifeq ($(CONFIG_RASPBIAN), y) EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 @@ -328,6 +343,9 @@ else export CONFIG_RTL8723BU = m +error: + @echo "No PLATFORM was set in Makefile" + all: modules modules: From a909078074b18b7f413207b61fccce474a7c7ed3 Mon Sep 17 00:00:00 2001 From: "r.volkmer" Date: Tue, 10 Jan 2017 11:03:40 +0100 Subject: [PATCH 4/5] Default builds for i386 platform. Added Options for ARM(Yocto compatible) and Raspbian --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ed05231..fafea90 100644 --- a/Makefile +++ b/Makefile @@ -53,8 +53,9 @@ CONFIG_PNO_SUPPORT = n CONFIG_PNO_SET_DEBUG = n CONFIG_AP_WOWLAN = n ###################### Platform Related ####################### -CONFIG_PLATFORM_I386_PC = n -CONFIG_RASPBIAN = n +CONFIG_PLATFORM_I386_PC ?= y +CONFIG_PLATFORM_ARM ?= n +CONFIG_RASPBIAN ?= n ############################################################### CONFIG_DRVEXT_MODULE = n From 52691f3aacb1831a9c52eebe74f040a1bb19a749 Mon Sep 17 00:00:00 2001 From: "r.volkmer" Date: Tue, 10 Jan 2017 13:23:08 +0100 Subject: [PATCH 5/5] remove error: section --- Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Makefile b/Makefile index fafea90..e2ee042 100644 --- a/Makefile +++ b/Makefile @@ -344,8 +344,6 @@ else export CONFIG_RTL8723BU = m -error: - @echo "No PLATFORM was set in Makefile" all: modules