简体   繁体   English

如何通过内核级别的Makefile查找* .o文件

[英]How to find *.o file by KERNEL level Makefile

Generally in kernel level make file contain 通常在内核级别make file包含

$(CONFIG_SERIAL_DEVICE) += serial.o

When we are making user level make file then it'll find .o file from that particular folder. 当我们创建用户级别的make file它将从该特定文件夹中找到.o文件。 But in this, where serial.o exist?? 但是在这里, serial.o存在的地方?

For Example 例如

drivers/serial/Makefile:obj-$(CONFIG_SERIAL_TXX9)+=serial_txx9.o

this Makefile in kernel serial driver will build depending .config of respective kernel code. 内核串行驱动程序中的此Makefile将根据相应内核代码的.config进行构建。 It will pick details like build statically or dynamically from .config. 它将选择细节,例如从.config静态或动态生成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM