Skip to content

Commit

Permalink
feat: add aic8800-pcie-dkms
Browse files Browse the repository at this point in the history
  • Loading branch information
RadxaYuntian committed Feb 23, 2024
1 parent 6881145 commit e011f87
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 2 deletions.
10 changes: 10 additions & 0 deletions debian/aic8800-pcie-dkms.dkms
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PACKAGE_NAME="aic8800-pcie"
PACKAGE_VERSION="#MODULE_VERSION#"
CLEAN="make clean"
MAKE[0]="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/PCIE/driver_fw/driver/aic8800/aic8800_fdrv"

BUILT_MODULE_NAME[0]="aic8800D80_fdrv"
BUILT_MODULE_LOCATION[0]="PCIE/driver_fw/driver/aic8800/aic8800_fdrv"
DEST_MODULE_LOCATION[0]="/updates/dkms"

AUTOINSTALL=yes
1 change: 1 addition & 0 deletions debian/aic8800-pcie-dkms.docs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SOURCE
3 changes: 3 additions & 0 deletions debian/aic8800-pcie-dkms.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/dh-exec

src/PCIE usr/src/aic8800-pcie-${DEB_VERSION}/
2 changes: 2 additions & 0 deletions debian/aic8800-pcie-dkms.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# We do not track this on GitHub
aic8800-pcie-dkms: initial-upload-closes-no-bugs
18 changes: 16 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ Priority: optional
Depends: ${misc:Depends},
Provides: aic8800-dkms (= 3.0+git20231212.15dcf017-2)
Conflicts: aic8800-dkms (<< 3.0+git20231212.15dcf017-2),
aic8800-usb-dkms
aic8800-usb-dkms,
aic8800-pcie-dkms,
Replaces: aic8800-dkms (<< 3.0+git20231212.15dcf017-2)
Description: dkms sources for Aicsemi aic8800 SDIO Wi-Fi driver
This package provides the dkms source code for Aicsemi
Expand All @@ -28,11 +29,24 @@ Section: misc
Priority: optional
Depends: ${misc:Depends},
Conflicts: aic8800-dkms (<< 3.0+git20231212.15dcf017-2),
aic8800-sdio-dkms
aic8800-sdio-dkms,
aic8800-pcie-dkms,
Description: dkms sources for Aicsemi aic8800 USB Wi-Fi driver
This package provides the dkms source code for Aicsemi
aic8800 USB Wi-Fi driver.

Package: aic8800-pcie-dkms
Architecture: all
Section: misc
Priority: optional
Depends: ${misc:Depends},
Conflicts: aic8800-dkms (<< 3.0+git20231212.15dcf017-2),
aic8800-sdio-dkms,
aic8800-usb-dkms,
Description: dkms sources for Aicsemi aic8800 PCIe Wi-Fi driver
This package provides the dkms source code for Aicsemi
aic8800 PCIe Wi-Fi driver.

Package: aicrf-test
Architecture: any
Section: misc
Expand Down
30 changes: 30 additions & 0 deletions debian/patches/fix-pcie-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/Makefile b/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/Makefile
index 5bdb438..99f44b7 100644
--- a/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/Makefile
+++ b/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/Makefile
@@ -1,3 +1,12 @@
+ccflags-y += -Wno-implicit-fallthrough
+ccflags-y += -Wno-unused-function
+ccflags-y += -Wno-unused-variable
+ccflags-y += -Wno-comment
+ccflags-y += -Wno-format
+ccflags-y += -Wno-declaration-after-statement
+ccflags-y += -Wno-misleading-indentation
+ccflags-y += -Wno-parentheses
+
RWNX_VERS_NUM := 6.4.3.0

CONFIG_COUNTRY_CODE = "00"
diff --git a/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_platform.c b/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_platform.c
index 27e61f0..d6f983e 100644
--- a/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_platform.c
+++ b/src/PCIE/driver_fw/driver/aic8800/aic8800_fdrv/rwnx_platform.c
@@ -48,7 +48,7 @@ extern char aic_fw_path[FW_PATH_MAX_LEN];
#define PRINT 2
#define GET_VALUE 3

-
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

struct rwnx_plat *g_rwnx_plat;

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
fix-firmware-path.patch
fix-sdio-fall-through.patch
fix-debug-file-with-no-debug-symbols.patch
fix-pcie-build.patch

0 comments on commit e011f87

Please sign in to comment.