mirror of
https://github.com/Fishwaldo/meta-riscv.git
synced 2025-03-15 19:41:42 +00:00
rtl8723ds-mod: Add recipe for rtl8723ds
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
This commit is contained in:
parent
85dfe4db9e
commit
b576fc7019
2 changed files with 59 additions and 0 deletions
18
recipes-kernel/rtl8723ds-mod/rtl8723ds.bb
Normal file
18
recipes-kernel/rtl8723ds-mod/rtl8723ds.bb
Normal file
|
@ -0,0 +1,18 @@
|
|||
SUMMARY = "Linux driver for RTL8723DS"
|
||||
DESCRIPTION = "${SUMMARY}"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1f6f1c0be32491a0c8d2915607a28f36"
|
||||
|
||||
inherit module
|
||||
|
||||
SRCREV = "ec85dc6b9f72bfe413bff464ed01a272e29c8dbe"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/lwfinger/rtl8723ds.git;protocol=https;name=rtl8723ds;branch=master \
|
||||
file://0001-Makefile-Add-modules_install-chain-and-make-KSRC-ass.patch \
|
||||
"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
RPROVIDES:${PN} += "kernel-module-rtl8723ds"
|
||||
|
||||
EXTRA_OEMAKE = "KSRC=${STAGING_KERNEL_DIR}"
|
|
@ -0,0 +1,41 @@
|
|||
From cc69e105677d7d52809228cf688615d9936b26c1 Mon Sep 17 00:00:00 2001
|
||||
From: Pavel Zhukov <pavel@zhukoff.net>
|
||||
Date: Sun, 5 Feb 2023 09:20:57 +0100
|
||||
Subject: [PATCH 1/2] Makefile: Add modules_install chain and make KSRC
|
||||
assignment weaker
|
||||
Cc: pavel@zhukoff.net
|
||||
|
||||
Upstream-Status: Inappropriate [embedded/chroot specific]
|
||||
May be submittable with further modifications.
|
||||
|
||||
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
|
||||
---
|
||||
Makefile | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index ddd4561..ebae427 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -996,7 +996,7 @@ EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
|
||||
EXTRA_CFLAGS += -DCONFIG_IOCTL_CFG80211 -DRTW_USE_CFG80211_STA_EVENT
|
||||
CROSS_COMPILE ?=
|
||||
KVER := $(shell uname -r)
|
||||
-KSRC := /lib/modules/$(KVER)/build
|
||||
+KSRC ?= /lib/modules/$(KVER)/build
|
||||
MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/
|
||||
INSTALL_PREFIX :=
|
||||
endif
|
||||
@@ -1809,6 +1809,9 @@ install:
|
||||
install -p -m 644 $(MODULE_NAME).ko $(MODDESTDIR)
|
||||
/sbin/depmod -a ${KVER}
|
||||
|
||||
+modules_install:
|
||||
+ $(MAKE) -C $(KSRC) M=$(shell pwd) modules_install
|
||||
+
|
||||
uninstall:
|
||||
rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
|
||||
/sbin/depmod -a ${KVER}
|
||||
--
|
||||
2.39.1
|
||||
|
Loading…
Add table
Reference in a new issue