morrownr / 8821au-20210708

Linux Driver for USB WiFi Adapters that are based on the RTL8811AU and RTL8821AU Chipsets - v5.12.5.2
Other
563 stars 80 forks source link

how to compile as an external kernel module? #110

Closed erophey7 closed 4 months ago

erophey7 commented 9 months ago

I tried this instruction: https://www.kernel.org/doc/Documentation/kbuild/modules.txt, but it didn’t work:

erophey7@compudahter-kubuntu:~/eblya/8821au-20210708$ make -C $HOME/eblya/android_kernel_xiaomi_lahaina/out M=$PWD ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- LLVM=1 LLVM_IAS=1 CROSS_COMPILE=$TC_DIR/bin/llvm-

make: Entering directory '/home/erophey7/eblya/android_kernel_xiaomi_lahaina/out'
  Building modules, stage 2.
  MODPOST 0 modules
make: Leaving directory '/home/erophey7/eblya/android_kernel_xiaomi_lahaina/out'

Clang: google clang-r450784d kernel: https://github.com/ghostrider-reborn/android_kernel_xiaomi_lahaina

morrownr commented 8 months ago

Hi @erophey7

I have a lot of patches nearly ready to go it and one may help you out. Keep an eye out for newly merged patches.

morrownr commented 8 months ago

I've now merged a large set of patches that might help.