From 9afab1542925764f4dffafa4cc9676b9197eaa4c Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Fri, 23 Aug 2024 23:41:15 +0200 Subject: [PATCH] eu support --- scripts/patches/openhd_utils.patch | 7 ++++++- scripts/patches/openhd_wifi.patch | 9 ++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/patches/openhd_utils.patch b/scripts/patches/openhd_utils.patch index 8645c709b37e5..a2a8e0da9727a 100644 --- a/scripts/patches/openhd_utils.patch +++ b/scripts/patches/openhd_utils.patch @@ -8,7 +8,7 @@ diff --git a/lib/utils.sh b/lib/utils.sh index bdb1bcd..2b5dd86 100644 --- a/lib/utils.sh +++ b/lib/utils.sh -@@ -199,6 +199,33 @@ prepare_source() { +@@ -199,6 +199,38 @@ prepare_source() { git reset --hard FETCH_HEAD git clean -ffd git switch --detach $origin/$BSP_BRANCH @@ -20,6 +20,7 @@ index bdb1bcd..2b5dd86 100644 + rm -Rf rtl88x2bu + git clone https://github.com/openhd/rtl8812au/ + git clone https://github.com/openhd/rtl88x2bu/ ++ git clone https://github.com/openhd/rtl88x2eu/ + git clone https://github.com/openhd/rtl88x2bu/ -b initial52-1 rtl8852bu + cd rtl8812au + sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' Makefile @@ -29,6 +30,10 @@ index bdb1bcd..2b5dd86 100644 + sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' Makefile + sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/' Makefile + cd .. ++ cd rtl88x2eu ++ sed -i 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' Makefile ++ sed -i 's/CONFIG_PLATFORM_ARM64_RPI = n/CONFIG_PLATFORM_ARM64_RPI = y/' Makefile ++ cd .. + cd rtl8852bu + sed -i 's/aarch64\.l/arm64/' Makefile + cd ../../../../ diff --git a/scripts/patches/openhd_wifi.patch b/scripts/patches/openhd_wifi.patch index 0058e5d4ef4b8..d2e1acf44f8a2 100644 --- a/scripts/patches/openhd_wifi.patch +++ b/scripts/patches/openhd_wifi.patch @@ -8,12 +8,13 @@ diff --git a/arch/arm64/configs/rockchip_linux_defconfig b/arch/arm64/configs/ro index bca67bdfb66b..62d434dbe124 100644 --- a/arch/arm64/configs/rockchip_linux_defconfig +++ b/arch/arm64/configs/rockchip_linux_defconfig -@@ -689,6 +689,8 @@ CONFIG_WL_ROCKCHIP=y +@@ -689,6 +689,9 @@ CONFIG_WL_ROCKCHIP=y CONFIG_WIFI_BUILD_MODULE=y CONFIG_AP6XXX=m CONFIG_RTL8852BU=m +CONFIG_RTL8812AU=m +CONFIG_RTL8822BU=m ++CONFIG_RTL8822EU=m CONFIG_USB_NET_RNDIS_WLAN=y # CONFIG_IEEE802154_DRIVERS is not set CONFIG_LTE=y @@ -21,12 +22,13 @@ diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index 46f5cc40788a..c00af2f6ac00 100644 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig -@@ -49,6 +49,8 @@ source "drivers/net/wireless/ti/Kconfig" +@@ -49,6 +49,9 @@ source "drivers/net/wireless/ti/Kconfig" source "drivers/net/wireless/zydas/Kconfig" source "drivers/net/wireless/quantenna/Kconfig" source "drivers/net/wireless/rockchip_wlan/Kconfig" +source "drivers/net/wireless/rtl8812au/Kconfig" +source "drivers/net/wireless/rtl88x2bu/Kconfig" ++source "drivers/net/wireless/rtl88x2eu/Kconfig" config PCMCIA_RAYCS tristate "Aviator/Raytheon 2.4GHz wireless support" @@ -34,12 +36,13 @@ diff --git a/drivers/net/wireless/Makefile b/drivers/net/wireless/Makefile index 5671364ae98d..bff5de684f50 100644 --- a/drivers/net/wireless/Makefile +++ b/drivers/net/wireless/Makefile -@@ -31,3 +31,5 @@ obj-$(CONFIG_MAC80211_HWSIM) += mac80211_hwsim.o +@@ -31,3 +31,6 @@ obj-$(CONFIG_MAC80211_HWSIM) += mac80211_hwsim.o obj-$(CONFIG_VIRT_WIFI) += virt_wifi.o obj-$(CONFIG_WL_ROCKCHIP) += rockchip_wlan/ +obj-m += rtl8812au/ +obj-m += rtl88x2bu/ ++obj-m += rtl88x2eu/ diff --git a/drivers/net/wireless/realtek/Kconfig b/drivers/net/wireless/realtek/Kconfig index 4a1f0e64df03..d8dbd0596395 100644 --- a/drivers/net/wireless/realtek/Kconfig