Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Oct 21, 2024
1 parent 22bdbd7 commit 3afefbf
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOSCALE=y
# OPENHD
BR2_PACKAGE_OPENHD=y
#BR2_PACKAGE_OPENHD_AIR_FILES=y
#BR2_PACKAGE_RTL8812AU_OPENHD=y
BR2_PACKAGE_RTL88x2EU_OPENHD=y

BR2_PACKAGE_GSTREAMER1_GST_DEBUG=y
BR2_PACKAGE_GSTREAMER1_INSTALL_TOOLS=y
Expand Down
17 changes: 17 additions & 0 deletions external/buildroot/package/rtl8812eu-openhd/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
config BR2_PACKAGE_RTL88x2EU_OPENHD
bool "RTL88x2EU-openhd"
depends on BR2_LINUX_KERNEL
help
A standalone driver for the RTL88x2EU / RTL8821AU 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.

https://github.com/aircrack-ng/RTL88x2EU/

comment "RTL88x2EU needs a Linux kernel to be built"
depends on !BR2_LINUX_KERNEL
38 changes: 38 additions & 0 deletions external/buildroot/package/rtl8812eu-openhd/rtl8812au-openhd.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
################################################################################
#
# RTL88x2EU-openhd
#
################################################################################

RTL88x2EU_OPENHD_VERSION = {{VERSION}}
RTL88x2EU_OPENHD_SITE = $(call github,OpenHD,rtl88x2eu,$(RTL88x2EU_OPENHD_VERSION))

RTL88x2EU_OPENHD_LICENSE = GPL-2.0
RTL88x2EU_OPENHD_LICENSE_FILES = COPYING

RTL88x2EU_OPENHD_EXTRA_CFLAGS = \
-DCONFIG_$(call qstrip,$(BR2_ENDIAN))_ENDIAN \
-DCONFIG_IOCTL_CFG80211 \
-DRTW_USE_CFG80211_STA_EVENT \
-Wno-error=address \
-Wno-error=array-bounds \
-Wno-error=cast-function-type

RTL88x2EU_OPENHD_MODULE_MAKE_OPTS = \
CONFIG_RTL88x2EU=m \
CONFIG_PLATFORM_I386_PC=n \
CONFIG_88XXEU=m \
KVER=$(LINUX_VERSION_PROBED) \
KSRC=$(LINUX_DIR) \
USER_EXTRA_CFLAGS="$(RTL88x2EU_OPENHD_EXTRA_CFLAGS)"

define RTL88x2EU_OPENHD_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_NET)
$(call KCONFIG_ENABLE_OPT,CONFIG_WIRELESS)
$(call KCONFIG_ENABLE_OPT,CONFIG_CFG80211)
$(call KCONFIG_ENABLE_OPT,CONFIG_USB_SUPPORT)
$(call KCONFIG_ENABLE_OPT,CONFIG_USB)
endef

$(eval $(kernel-module))
$(eval $(generic-package))

0 comments on commit 3afefbf

Please sign in to comment.