aircrack-ng / rtl8812au

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

Does not cross-compile with the kernel #1144

Closed erophey7 closed 3 months ago

erophey7 commented 3 months ago

Hello. I'm trying to compile this driver as a kernel module, but the build skips this module

Links: kernel: https://github.com/likkai/ksu_kernel_xiaomi_lisa version 5.4.242 compiler: https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/refs/tags/android-13.0.0_r13/clang-r450784d/

Files: drivers/net/wireless/realtek/Kconfig drivers/net/wireless/realtek/Makefile Driver path: drivers/net/wireless/realtek/rtl8812au out/.config.txt

$P content

$ echo $P 
O=out ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- LLVM=1 LLVM_IAS=1 CROSS_COMPILE=/home/erophey7/tc/clang-r450784d/bin/llvm-

Compile:

$ make -j$(nproc --all) $P > ../make_out.txt || exit $?
lib/lib.a:nmi_backtrace.o: no symbols
$ 

make_out.txt

Modules_install

$ make -j$(nproc --all) $P INSTALL_MOD_PATH=modules INSTALL_MOD_STRIP=1 modules_install > ../modules_install.txt
$

modules_install.txt realtek lines 40-48