Skip to content

Commit c62ff73

Browse files
committed
fix: auto detect Allwinner kernel
Allwinner requires proprietary MMC API.
1 parent 7e4f804 commit c62ff73

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
diff --git a/src/SDIO/driver_fw/driver/aic8800/aic8800_bsp/Makefile b/src/SDIO/driver_fw/driver/aic8800/aic8800_bsp/Makefile
2+
index 138bacd..3d29307 100644
3+
--- a/src/SDIO/driver_fw/driver/aic8800/aic8800_bsp/Makefile
4+
+++ b/src/SDIO/driver_fw/driver/aic8800/aic8800_bsp/Makefile
5+
@@ -130,6 +130,11 @@ KVER ?= $(shell uname -r)
6+
MODDESTDIR ?= /lib/modules/$(KVER)/kernel/drivers/net/wireless/
7+
ARCH ?= x86_64
8+
CROSS_COMPILE ?=
9+
+
10+
+ifeq ($(CONFIG_AW_BSP), y)
11+
+ccflags-y += -DCONFIG_PLATFORM_ALLWINNER
12+
+endif
13+
+
14+
endif
15+
###########################################
16+
17+
diff --git a/src/SDIO/driver_fw/driver/aic8800/aic8800_fdrv/Makefile b/src/SDIO/driver_fw/driver/aic8800/aic8800_fdrv/Makefile
18+
index 2b24142..c244197 100644
19+
--- a/src/SDIO/driver_fw/driver/aic8800/aic8800_fdrv/Makefile
20+
+++ b/src/SDIO/driver_fw/driver/aic8800/aic8800_fdrv/Makefile
21+
@@ -389,6 +389,11 @@ KVER ?= $(shell uname -r)
22+
MODDESTDIR ?= /lib/modules/$(KVER)/kernel/drivers/net/wireless/
23+
ARCH ?= x86_64
24+
CROSS_COMPILE ?=
25+
+
26+
+ifeq ($(CONFIG_AW_BSP), y)
27+
+ccflags-y += -DCONFIG_PLATFORM_ALLWINNER
28+
+endif
29+
+
30+
endif
31+
###########################################
32+

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ fix-linux-6.12-build.patch
1313
fix-linux-6.13-build.patch
1414
fix-linux-6.15-build.patch
1515
fix-aic_btusb-implicit-declare-compat_ptr.patch
16+
fix-allwinner-dkms.patch

0 commit comments

Comments
 (0)