Reference Manual

Table Of Contents
RS9116 n-Link Linux and Android Technical Reference Manual
Version 2.0
August 2019
12
Figure 5: Save the changes before exiting
 4. Now to compile the driver, enter the following command:
make
The code is compiled and the binaries are generated in thesource/host/release folder.For embedded
platforms, modify the path assigned to the "DEF_KERNEL_DIR" variable in the Makefile:
cd RS9116.NXX.NL.GEN.LNX.x.y.z/source/host
vim Makefile
The DEF_KERNEL_DIR variable has to be assigned along with the compiled kernel path. For an x86 based
Linux platform, the path is usually
"/lib/modules/<kernel_version>/build"
and this is the path assigned in
the Makefile provided in the package.
Example:
DEF_KERNEL_DIR:= /lib/modules/3.4.66/build
Next, use the "make" command to start compiling the driver. For embedded platforms, add the target
platform and toolchain path as cross compilation option to the "make" command.
For example, if the target platform is ARM and tool chain path is
"/opt/freescale/usr/local/gcc-4.4.4-
glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-"
, then the command is
issued as:
make ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-
gnueabi/bin/arm-none-linux-gnueabi-