美文网首页
Ubuntu16.04下编译Linux2.6.36的kernel

Ubuntu16.04下编译Linux2.6.36的kernel

作者: JacobPan | 来源:发表于2018-01-07 23:47 被阅读0次

最近发现在Ubuntu16.04下编译Linux 2.6.36的内核会出现一下错误

Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at kernel/timeconst.pl line 373.
/linux-2.6.36/kernel/Makefile:137: recipe for target 'kernel/timeconst.h' failed
make[3]: *** [kernel/timeconst.h] Error 255
/tmp/GmGWZPad:953: recipe for target 'kernel' failed

根据上述提示,直接把内核源码中./kernel/timeconst.pl第373行的if条件中的defined(@val)改成@val,再次编译就可通过了.


Jacob Pan ( jacobpan3g.github.io/cn )

相关文章

网友评论

      本文标题:Ubuntu16.04下编译Linux2.6.36的kernel

      本文链接:https://www.haomeiwen.com/subject/ilkvnxtx.html