最近發(fā)現(xiàn)在Ubuntu16.04下編譯Linux 2.6.36的內(nèi)核會出現(xiàn)一下錯誤
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
根據(jù)上述提示,直接把內(nèi)核源碼中./kernel/timeconst.pl
第373行的if條件中的defined(@val)
改成@val
,再次編譯就可通過了.
Jacob Pan ( jacobpan3g.github.io/cn )