添加.S文件到Linux内核code [英] Adding a .S file to the linux kernel code
本文介绍了添加.S文件到Linux内核code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想一个新的组件(.S)文件添加到Linux内核。
这可能是一个愚蠢的问题,但我似乎无法找到如何以及在哪里这样的文件添加到make文件。我看目前的.S文件code的例子,但我找不到他们组装并链接到vmlinux的二进制代码。
I'm trying to add a new assembly (.S) file to the Linux kernel. It may be a dumb question, but I can't seem to find how and where to add such files to the make files. I've looked at code examples of current .S files, but I can't find where they are assembled and linked to the vmlinux binary.
任何提示将appericiated。
Any hints would be appericiated.
谢谢!
推荐答案
只需添加相应的的.o
导致一些规则。有隐规则的 .S
- > 的.o
翻译
Just add the corresponding .o
result to some rule. There are implicit rules for the .S
-> .o
translation.
这篇关于添加.S文件到Linux内核code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文