commit | author | age
|
a0be3f
|
1 |
DESCRIPTION = "Realtek RTL8188FU USB Wi-Fi driver" |
G |
2 |
|
|
3 |
LICENSE = "GPL-2.0-or-later" |
|
4 |
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" |
|
5 |
|
|
6 |
# Git repository and branch |
|
7 |
SRC_URI = "git://github.com/kelebek333/rtl8188fu.git;branch=master;protocol=https" |
|
8 |
SRCREV = "${AUTOREV}" |
|
9 |
|
|
10 |
# Specify where the source files will be fetched to |
|
11 |
S = "${WORKDIR}/git" |
|
12 |
|
|
13 |
# Inherit the module class to handle kernel module compilation |
|
14 |
inherit module |
|
15 |
|
|
16 |
do_configure() { |
|
17 |
sed -i 's|^ARCH.*|ARCH ?= arm|' ${S}/Makefile |
|
18 |
sed -i 's|^CROSS_COMPILE.*|CROSS_COMPILE ?= ${TARGET_PREFIX}|' ${S}/Makefile |
|
19 |
sed -i 's|^KVER.*|KVER ?= ${KERNEL_VERSION}|' ${S}/Makefile |
|
20 |
sed -i 's|^KSRC.*|KSRC ?= ${STAGING_KERNEL_DIR}|' ${S}/Makefile |
|
21 |
} |
|
22 |
|
|
23 |
# Define the compile task |
|
24 |
do_compile() { |
|
25 |
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
|
26 |
oe_runmake all |
|
27 |
} |
|
28 |
|
|
29 |
# Define where to install the kernel module |
|
30 |
do_install() { |
|
31 |
install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/ |
|
32 |
install -m 0644 ${S}/rtl8188fu.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/ |
|
33 |
} |
|
34 |
|
|
35 |
# Add the driver to the kernel modules list |
|
36 |
KERNEL_MODULE_PROBECONF = "rtl8188fu" |
|
37 |
|