Linux內核編譯時scripts/kconfig/conf --oldconfig Kconfig報錯


錯誤提示:

scripts/kconfig/conf  --oldconfig Kconfig
bcmdrivers/Kconfig.autogen:2: syntax error
Kconfig.bcm:1868: missing end statement for this entry
Kconfig.bcm:2: missing end statement for this entry
Kconfig:15: missing end statement for this entry
bcmdrivers/Kconfig.autogen:1: invalid statement
Kconfig.bcm:1870: unexpected end statement
Kconfig.bcm:1872: unexpected end statement
Kconfig:20: unexpected end statement
scripts/kconfig/Makefile:84: recipe for target 'oldconfig' failed
make[2]: *** [oldconfig] Error 1
Makefile:613: recipe for target 'oldconfig' failed
make[1]: *** [oldconfig] Error 2
make[1]: Leaving directory '/media××××××××××××××××××××××××××××××××××××××××××××××××××××××××'
Makefile:110: recipe for target 'linux_only' failed
make: *** [linux_only] Error 2

出現這種錯誤可能的原因時sh被鏈接為dash而不是bash

解決辦法:

# ls -al /bin/sh (查看sh鏈接)
lrwxrwxrwx 1 root root 4 三月 17  2018 /bin/sh -> dash
# ln -sf /bin/bash /bin/sh (修改sh為bash)
# dpkg-reconfigure dash (彈出窗口時選擇NO)

重新編譯即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM