diff --git a/Makefile b/Makefile index 1d031c2..e2ee042 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,9 @@ CONFIG_PNO_SUPPORT = n CONFIG_PNO_SET_DEBUG = n CONFIG_AP_WOWLAN = n ###################### Platform Related ####################### -CONFIG_PLATFORM_I386_PC = y +CONFIG_PLATFORM_I386_PC ?= y +CONFIG_PLATFORM_ARM ?= n +CONFIG_RASPBIAN ?= n ############################################################### CONFIG_DRVEXT_MODULE = n @@ -248,6 +250,33 @@ 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 +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 @@ -315,6 +344,7 @@ else export CONFIG_RTL8723BU = m + all: modules modules: diff --git a/README.md b/README.md index 061c80e..3762f8f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,12 @@ -# rtl8723bu +rtl8723bu +========= + Driver for Realtek RTL8723BU Wireless Adapter with Hardware ID `0bda:b720` +Supports building of module for the Raspberry Pi 1/2/3 or Zero +under Yocto + + # How to use? ## a. Concurrent Mode If you want to operate the hardware as a station AND as an access point *simultaneously*, follow these instructions. This will show two devices when you run the `iwconfig` command.