forked from OpenIPC/firmware
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RTL8733BU FPV driver & wifibroadcast script support for FPV
- Loading branch information
Showing
5 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
general/package/rtl8733bu-openipc-fpv/0001-fix-extra-cflags.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -1,6 +1,7 @@ | ||
EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS) | ||
-EXTRA_CFLAGS += -O1 | ||
+EXTRA_CFLAGS += -Os | ||
#EXTRA_CFLAGS += -O3 | ||
+EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT | ||
#EXTRA_CFLAGS += -Wall | ||
#EXTRA_CFLAGS += -Wextra | ||
#EXTRA_CFLAGS += -Werror |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
config BR2_PACKAGE_RTL8733BU_OPENIPC_FPV | ||
bool "rtl8733bu-openipc-fpv" | ||
depends on BR2_LINUX_KERNEL | ||
help | ||
A standalone driver for the RTL8733BU Dual Band | ||
USB Wi-Fi adapter. | ||
|
||
Make sure your target kernel has the CONFIG_WIRELESS_EXT | ||
config option enabled. | ||
|
||
Note: this package needs a firmware loading mechanism to | ||
load the binary blob for the chip to work. | ||
|
||
|
||
comment "rtl8733bu needs a Linux kernel to be built" | ||
depends on !BR2_LINUX_KERNEL |
24 changes: 24 additions & 0 deletions
24
general/package/rtl8733bu-openipc-fpv/rtl8733bu-openipc-fpv.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
################################################################################ | ||
# | ||
# rtl8733bu-openipc-fpv | ||
# | ||
################################################################################ | ||
|
||
ifeq ($(LOCAL_DOWNLOAD),y) | ||
RTL8733BU_OPENIPC_FPV_SITE_METHOD = git | ||
RTL8733BU_OPENIPC_FPV_SITE = https://github.com/libc0607/rtl8733bu-20230626 | ||
RTL8733BU_OPENIPC_FPV_VERSION = $(shell git ls-remote $(RTL8733BU_OPENIPC_FPV_SITE) HEAD | head -1 | cut -f1) | ||
else | ||
RTL8733BU_OPENIPC_FPV_SITE = https://github.com/libc0607/rtl8733bu-20230626/archive | ||
RTL8733BU_OPENIPC_FPV_SOURCE = master.tar.gz | ||
endif | ||
|
||
RTL8733BU_OPENIPC_FPV_LICENSE = GPL-2.0 | ||
RTL8733BU_OPENIPC_FPV_LICENSE_FILES = COPYING | ||
|
||
RTL8733BU_OPENIPC_FPV_MODULE_MAKE_OPTS = CONFIG_RTL8733BU=m \ | ||
KVER=$(LINUX_VERSION_PROBED) \ | ||
KSRC=$(LINUX_DIR) | ||
|
||
$(eval $(kernel-module)) | ||
$(eval $(generic-package)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters