Cross-Compilation
The SDK build script can compile the driver for another architecture.
- Install the target cross compiler and prepare the matching kernel source tree.
- Edit
cross_compile_config.shin the SDK directory:
bash
export ARCH=arm64
export CROSS_COMPILE=/path/to/your/toolchain/bin/aarch64-linux-gnu-
export KERNEL_LOCATION=/path/to/your/kernel-source/- Run the cross-compilation command:
bash
./build.sh -cThe kernel source and configuration must match the kernel that will load the module.
