LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1662|回复: 2

内核编译进不了ARM平台???

[复制链接]
发表于 2008-2-27 10:40:09 | 显示全部楼层 |阅读模式
我在PC上装了redhat linux 9.0后,想重新编译移植到ARM平台的内核,但是make menuconfig后出现了如下信息:
rm -f include/asm
(cd include;ln -sf asm-i386 asm)
结果,重新编译内核总是进不了arm/config.in,进的总是i-386平台,虽然我手动ln -sf asm-arm asm,但是make menuconfig后还是出现rm -f include/asm
(cd include;asm-i386 asm),怎么办啊?这几条命令rm -f include/asm
(cd include;asm-i386 asm)在哪个文件里?
发表于 2008-3-1 12:57:02 | 显示全部楼层
在内核的Makefile文件中将 ARCH 变量改为 ARM:
  1. # CROSS_COMPILE specify the prefix used for all executables used
  2. # during compilation. Only gcc and related bin-utils executables
  3. # are prefixed with $(CROSS_COMPILE).
  4. # CROSS_COMPILE can be set on the command line
  5. # make CROSS_COMPILE=ia64-linux-
  6. # Alternatively CROSS_COMPILE can be set in the environment.
  7. # Default value for CROSS_COMPILE is not to prefix executables
  8. # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
  9. ARCH            ?= ARM
  10. CROSS_COMPILE   ?=
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-3-17 10:20:56 | 显示全部楼层
好的,谢谢指点:-)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表