【发布时间】:2014-08-01 05:26:39
【问题描述】:
摘自Linux内核documentation:
2.4 构建单独的文件
It is possible to build single files that are part of a module.
This works equally well for the kernel, a module, and even for
external modules.
Example (The module foo.ko, consist of bar.o and baz.o):
make -C $KDIR M=$PWD bar.lst
make -C $KDIR M=$PWD baz.o
make -C $KDIR M=$PWD foo.ko
make -C $KDIR M=$PWD /
我不明白这些命令是什么意思。
make -C $KDIR M=$PWD bar.lst
是不是意思:找bar.c,编译成bar.1st?
make -C $KDIR M=$PWD foo.ko
这是否意味着:查找所有 *.o 并将它们链接到 foo.ko?它是否也寻找 *.1st?
make -C $KDIR M=$PWD /
什么意思?
【问题讨论】:
标签: linux module makefile kernel