aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.5k stars 767 forks source link

how to compile as an external module? #1114

Open erophey7 opened 11 months ago

erophey7 commented 11 months ago

I want to compile it as an external module for the android 5.4.233 kernel but when I try, the module does not compile with the following output:

erophey7@compudahter-kubuntu:~/eblya/rtl8812au$ make -C /home/erophey7/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- INSTALL_MOD_PATH=modules INSTALL_MOD_STRIP=1 modules
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