Πως να κτίσω το (crossbuild) τον `rtl8188eus` driver για Android (χ86-64)

Παλύω να κτίσω το rtl8188eus για android x86-64. Κατέβασα τον kernel:

git clone https://android.googlesource.com/kernel/common.git
cd common
git checkout android14-6.1-2024-04_r11

Μετά εκτέλεσα

make menuconfig
make scripts

Και έκανα clone τον driver rtl8188eus :

git clone https://github.com/aircrack-ng/rtl8188eus.git
cd rtl8188eus

Εφόσον έβαλα το Android SDK:

export ANDROID_SDK_ROOT=/home/pcmagas/Android
export ANDROID_HOME=/home/pcmagas/Android

export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator

export NDK_HOME=$ANDROID_HOME/ndk/27.0.11902837
export PATH=$PATH:$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin

sdkmanager "ndk;27.0.11902837"

Και το κτίζω

export ARCH=x86_64
export CROSS_COMPILE=x86_64-linux-android-
make -C /home/pcmagas/dlink-decompile/common M=/home/pcmagas/dlink-decompile/rtl8188eus CC=x86_64-linux-android25-clang KSRC=~/dlink-decompile/common KDIR=~/dlink-decompile/common  modules

Αλλα παίρνω το error

make: Entering directory '/home/pcmagas/dlink-decompile/common'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  You are using:           Android (11889484, +pgo, +bolt, +lto, +mlgo, based on r522817) clang version 18.0.1 (https://android.googlesource.com/toolchain/llvm-project d8003a456d14a3deb8054cdaa529ffbf02d9b262)
make[1]: *** No rule to make target 'scripts/mod/modpost', needed by '/home/pcmagas/dlink-decompile/rtl8188eus/Module.symvers'.  Stop.
make: *** [Makefile:2009: modpost] Error 2
make: Leaving directory '/home/pcmagas/dlink-decompile/common'

Και δεν έχω ιδέα πως να προχωρίσω

Ως τώρα δοκίμασα τα βήματα:

cd common
make clean
make mrproper
make menuconfig
make scripts
make -j$(nproc)
make modules
make ARCH=x86_64 defconfig

Μετέπειτα δοκίμασα:

cd rtl8188eus
make clean
 make -C /home/pcmagas/dlink-decompile/common M=/home/pcmagas/dlink-decompile/rtl8188eus  KSRC=~/dlink-decompile/common KDIR=~/dlink-decompile/common ARCH=x86_64

Και η εντολή:

make -C /home/pcmagas/dlink-decompile/common M=/home/pcmagas/dlink-decompile/rtl8188eus  KSRC=~/dlink-decompile/common KDIR=~/dlink-decompile/common ARCH=x86_64

Βγάζει error:

make: Entering directory '/home/pcmagas/dlink-decompile/common'
  MODPOST /home/pcmagas/dlink-decompile/rtl8188eus/Module.symvers
WARNING: Module.symvers is missing.
         Modules may not have dependencies or modversions.
         You may get many unresolved symbol warnings.
make: Leaving directory '/home/pcmagas/dlink-decompile/common'