qiang@ubuntu:~
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule$ pwd
/
home
/
qiang
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule
qiang@ubuntu:~
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule$ ls
-
la
total
16
drwxrwxr
-
x
2
qiang qiang
4096
1
月
5
21
:
18
.
drwxrwxr
-
x
6
qiang qiang
4096
1
月
5
21
:
17
..
-
rw
-
rw
-
r
-
-
1
qiang qiang
310
1
月
5
21
:
06
helloworld.c
-
rw
-
rw
-
r
-
-
1
qiang qiang
498
1
月
5
21
:
08
Makefile
qiang@ubuntu:~
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule$ make
make ARCH
=
arm64 CROSS_COMPILE_ARM32
=
/
home
/
qiang
/
lineageOs
/
prebuilts
/
gcc
/
linux
-
x86
/
arm
/
arm
-
linux
-
androideabi
-
4.9
/
bin
/
arm
-
linux
-
androideabi
-
CROSS_COMPILE
=
/
home
/
qiang
/
lineageOs
/
prebuilts
/
gcc
/
linux
-
x86
/
aarch64
/
aarch64
-
linux
-
android
-
4.9
/
bin
/
aarch64
-
linux
-
android
-
-
C
/
home
/
qiang
/
myproject
/
kernel
/
oneplus3
/
msm8996
/
out M
=
/
home
/
qiang
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule modules
make[
1
]: Entering directory
'/home/qiang/myproject/kernel/oneplus3/msm8996/out'
CC [M]
/
home
/
qiang
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule
/
helloworld.o
Building modules, stage
2.
MODPOST
1
modules
CC
/
home
/
qiang
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule
/
helloworld.mod.o
LD [M]
/
home
/
qiang
/
myproject
/
kernel
/
oneplus3
/
modules
/
helloworldmodule
/
helloworld.ko
make[
1
]: Leaving directory
'/home/qiang/myproject/kernel/oneplus3/msm8996/out'