包含 Linux 内核配置的正确方法是什么?
我正在将一个旧版本的软件(部分是 Linux 内核模块)移植到 EL5,在进行了相关的 hack 之后,用于编译该东西的可怕的 GNU 自动工具混乱(不,它不通过 kbuild 编译内核模块) :( ) 我不断收到很多警告“包括 config.h 已被弃用” - 谷歌搜索结果告诉我应该使用 -I 标志,但似乎找不到什么标志以及应该将它们放在哪里
。软件是专有的,因此无法链接到它,因为
我正在移植的版本支持 2.6.16(并且我需要 2.6.18-164 el5)。数十个文件中大约有 100k 行(编译跨越几个 Makefile),
修复此问题的正确方法是什么?
I'm porting an old version of a software that is partly a linux kernel module to EL5, after doing the relevant hacks, the horrible GNU autotools mess that is used to compile the thing (no, it does not compile the kernel module via kbuild :( ) I keep getting lots of warnings 'Including config.h is deprecated' - I am told by google search results that I should be using -I flags instead, but cannot seem to find what flags and where I should put them.
The software is proprietary, so can not link to it as it is not publicly available.
The version I am porting had support up to and including 2.6.16 (and I need 2.6.18-164 el5). The kernel space code is in the ballpark of 100k lines in dozens of files (and the compilation spans over a few Makefiles)
What is the proper way of fixing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最终发现了,我不得不将“
-include $LINUX_KERNEL_INCLUDE/linux/autoconf.h
”添加到 CPPFLAGSFound it out eventually, I had to add "
-include $LINUX_KERNEL_INCLUDE/linux/autoconf.h
" to CPPFLAGS