/lib/modules/4.12.9/build连接到的是我编译的源码目录。
请问怎么样才能生成kernel-headers目录
代码: 全选
ls /lib/modules/4.12.9/ -l
total 4584
[color=#FF0000]lrwxrwxrwx 1 root root 18 Sep 14 01:00 build -> /root/linux-4.12.9[/color]
drwxr-xr-x 12 root root 4096 Sep 14 01:02 kernel
-rw-r--r-- 1 root root 1147213 Sep 14 01:02 modules.alias
-rw-r--r-- 1 root root 1134462 Sep 14 01:02 modules.alias.bin
-rw-r--r-- 1 root root 7482 Sep 14 01:00 modules.builtin
-rw-r--r-- 1 root root 9488 Sep 14 01:02 modules.builtin.bin
-rw-r--r-- 1 root root 469255 Sep 14 01:02 modules.dep
-rw-r--r-- 1 root root 672338 Sep 14 01:02 modules.dep.bin
-rw-r--r-- 1 root root 285 Sep 14 01:02 modules.devname
-rw-r--r-- 1 root root 180009 Sep 14 01:00 modules.order
-rw-r--r-- 1 root root 486 Sep 14 01:02 modules.softdep
-rw-r--r-- 1 root root 467359 Sep 14 01:02 modules.symbols
-rw-r--r-- 1 root root 576686 Sep 14 01:02 modules.symbols.bin
[color=#FF0000]lrwxrwxrwx 1 root root 18 Sep 14 01:00 source -> /root/linux-4.12.9[/color]