Move Makefile section from patch (#5909)

There are many changes in this file and its impossible to cover this with a patch for now current and all kernels back
We are using same hack in UWE drivers.
This commit is contained in:
Igor
2023-11-14 12:04:15 +01:00
committed by GitHub
parent 02f80a255b
commit dc5d461c95
2 changed files with 4 additions and 9 deletions

View File

@@ -691,6 +691,10 @@ driver_rtl8723cs() {
fi
if linux-version compare "${version}" ge 6.1; then
# Add to section Makefile
echo "obj-\$(CONFIG_RTL8723CS) += rtl8723cs/" >> "$kerneldir/drivers/net/wireless/Makefile"
process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/8723cs-Add-a-new-driver-v5.12.2-7-g2de5ec386.20201013_beta.patch" "applying"
process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/8723cs-Make-the-driver-compile-and-probe-drop-rockchip-platform.patch" "applying"
process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/8723cs-Enable-OOB-interrupt.patch" "applying"

View File

@@ -1189,15 +1189,6 @@ index 5cfabd5376cc..1645e5222ce6 100644
+source "drivers/staging/rtl8723cs/Kconfig"
+
endif # STAGING
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index f8c3aa9c2418..7409022ac76d 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -29,3 +29,4 @@ obj-$(CONFIG_PI433) += pi433/
obj-$(CONFIG_XIL_AXIS_FIFO) += axis-fifo/
obj-$(CONFIG_FIELDBUS_DEV) += fieldbus/
obj-$(CONFIG_QLGE) += qlge/
+obj-$(CONFIG_RTL8723CS) += rtl8723cs/
diff --git a/drivers/staging/rtl8723cs/Kconfig b/drivers/staging/rtl8723cs/Kconfig
new file mode 100644
index 000000000000..78e5f124ca80