[email protected]:~/test_module$ make
/usr/bin/makex: line 20: build/envsetup.sh: No such file or directory
/usr/bin/make2 -C /home/michael/android_code/out/target/product//obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=/home/michael/android_code/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android- M=/home/michael/test_module KCFLAGS=-mno-android modules
make2[1]: Entering directory '/home/michael/android_code/out/target/product//obj/kernel/msm-4.4'
CC [M] /home/michael/test_module/test_module.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/michael/test_module/test_module.mod.o
LD [M] /home/michael/test_module/test_module.ko
make2[1]: Leaving directory '/home/michael/android_code/out/target/product//obj/kernel/msm-4.4'
[email protected]:~/test_module$ ls -la
total 628
drwxrwxr-x 3 michael michael 4096 Jun 26 14:14 .
drwxr-xr-x 17 michael michael 4096 Jun 26 14:14 ..
-rw-rw-r-- 1 michael michael 483 Jun 26 14:14 .test_module.ko.cmd
-rw-rw-r-- 1 michael michael 41291 Jun 26 14:14 .test_module.mod.o.cmd
-rw-rw-r-- 1 michael michael 51771 Jun 26 14:14 .test_module.o.cmd
drwxrwxr-x 2 michael michael 4096 Jun 26 14:14 .tmp_versions
-rw-rw-r-- 1 michael michael 492 Jun 26 14:14 Makefile
-rw-rw-r-- 1 michael michael 0 Jun 26 14:14 Module.symvers
-rw-rw-r-- 1 michael michael 52 Jun 26 14:14 modules.order
-rw-rw-r-- 1 michael michael 10276 May 30 11:14 test_module.c
-rw-rw-r-- 1 michael michael 247216 Jun 26 14:14 test_module.ko
-rw-rw-r-- 1 michael michael 2277 Jun 26 14:14 test_module.mod.c
-rw-rw-r-- 1 michael michael 83424 Jun 26 14:14 test_module.mod.o
-rw-rw-r-- 1 michael michael 165320 Jun 26 14:14 test_module.o