Error:Makefile:1449:*** mixed implicit and normal rules: deprecated syntax

来源:互联网 发布:sql定义变量赋值并输出 编辑:程序博客网 时间:2024/05/19 03:21

在解压的linux2.6.22.6文件夹下make uImage的时候出现下面的错误:

Makefile:416:*** mixed implicit and normal rules: deprecated syntaxMakefile:1449:*** mixed implicit and normal rules: deprecated syntax
  • 1
  • 2
  • 1
  • 2

是由于我的系统的make工具太新,make的旧版规则已经无法兼容新版。按照以下方式,问题得到解决,用vim打开Makefile文件,修改416和1449行: 
416行修改前:

config %config: scripts_basic outputmakefile FORCE
  • 1
  • 1

416行修改后:

%config: scripts_basic outputmakefile FORCE
  • 1
  • 1

1449 行修改前:

/ %/: prepare scripts FORCE
  • 1
  • 1

1449 行修改后:

%/: prepare scripts FORCE
  • 1
  • 1

然后在make menuconfig有出现如下错误

scripts /kconfig/lxdialog/dialog.h32:20Lfatal error:curses.h:没有那个文件或者目录

这个错误是因为没安装libncurses,执行如下命令即可
sudo apt-get install libncurses5-dev

然后再make menuconfig 即可


然后再make uImage又出现下面的错误提示:

"mkimage" command not found - U-Boot images will not be built
  • 1
  • 1

执行下面的命令:

sudo apt-get install u-boot-tools
  • 1
  • 1

然后再make uImage即可

0 0
原创粉丝点击