rtl8188eu: new package

[Thomas:
  - remove patches 0001 and 0002, they are not needed since when using
    the kernel-module infrastructure, we directly call the kernel
    build system and bypass the one provided by the external module
  - install the firmware directly in the Buildroot .mk file, which
    allows to also remove patch 0003.
  - remove RTL8188EU_DEPENDENCIES = linux, since this is already
    handled by the kernel-module infrastructure.]

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Luca Ceresoli 2015-07-27 12:06:20 +02:00 committed by Thomas Petazzoni
parent a35b7c4e91
commit ff6ba2f7e5
3 changed files with 41 additions and 0 deletions

View file

@ -405,6 +405,7 @@ endif
source "package/read-edid/Config.in"
source "package/rng-tools/Config.in"
source "package/rpi-userland/Config.in"
source "package/rtl8188eu/Config.in"
source "package/rtl8821au/Config.in"
source "package/sane-backends/Config.in"
source "package/sdparm/Config.in"

View file

@ -0,0 +1,19 @@
config BR2_PACKAGE_RTL8188EU
bool "rtl8188eu"
depends on BR2_LINUX_KERNEL
help
A standalone driver for the RTL8188EU USB Wi-Fi adapter.
This is needed only for Linux kernels before 3.12.
Since 3.12, there is a (staging) driver in mainline, with a similar
codebase.
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/lwfinger/rtl8188eu
comment "rtl8188eu needs a Linux kernel to be built"
depends on !BR2_LINUX_KERNEL

View file

@ -0,0 +1,21 @@
################################################################################
#
# rtl8188eu
#
################################################################################
RTL8188EU_VERSION = 3091828c8f4b4a01cbec6025128bf77e6e7b9f97
RTL8188EU_SITE = $(call github,lwfinger,rtl8188eu,$(RTL8188EU_VERSION))
RTL8188EU_LICENSE = GPLv2, proprietary (rtl8188eufw.bin firmware blob)
RTL8188EU_LICENSE_FILES = COPYING
RTL8188EU_MODULE_MAKE_OPTS = CONFIG_RTL8188EU=m
$(eval $(kernel-module))
define RTL8188EU_INSTALL_FIRMWARE
$(INSTALL) -D -m 644 $(@D)/rtl8188eufw.bin \
$(TARGET_DIR)/lib/firmware/rtlwifi/rtl8188eufw.bin
endef
RTL8188EU_POST_INSTALL_TARGET_HOOKS += RTL8188EU_INSTALL_FIRMWARE
$(eval $(generic-package))