一、前言
最近进行uClinux移植,make menuconfig时碰到如下问题:
[[email protected] uClinux-dist]$ make menuconfig find vendors -mindepth 2 ‘(‘ -name .svn -prune ‘)‘ -o -type f -name Kconfig -print | sed ‘s:^:source ../:‘ > vendors/Kconfig config/mkconfig > Kconfig KCONFIG_NOTIMESTAMP=1 /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig/mconf Kconfig /bin/sh: /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig/mconf: cannot execute binary file make: *** [menuconfig] Error 126
二、解决
参考<http://www.alteraforum.com/forum/archive/index.php/t-38370.html> 文中提到的将mconf重新编译可解决问题,但文中未提及如何重新编译。
现补充如下:
[[email protected] kconfig]$ cd /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig [[email protected] kconfig]$ ls
[[email protected] kconfig]$ make clean [[email protected] kconfig]$ make all
然后重新make menuconfig即可。
时间: 2024-12-16 08:32:06