之前对linux的移植的尝试都是基于内核版本2.4.0和Redhat9.0来做的,最近觉得有必要脱离这个经典的操作系统,并且进行
问题1:
修改最外层Makefile中关于平台和cross compile的相关内容后,make menuconfig时出现下面错误:
{make: ***/linux-2.6.300/arch/arm : Is a directory. Stop.}
原因:
ARCH ?=arm,在arm后面留有空格,出错的原因是在Makefile的include命令参数是目录。
问题2:
编译环境:
windows vmware下ubuntu9.10 with arm-linux-gcc-4.1.0
当编译内核时:
问题1:
修改最外层Makefile中关于平台和cross compile的相关内容后,make menuconfig时出现下面错误:
{make: ***/linux-2.6.300/arch/arm : Is a directory. Stop.}
原因:
ARCH ?=arm,在arm后面留有空格,出错的原因是在Makefile的include命令参数是目录。
问题2:
编译环境:
windows vmware下ubuntu9.10 with arm-linux-gcc-4.1.0
当编译内核时:
shuangbi@shuangbi-desktop:~/Toolchain/linux-2.6.30$ make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CC kernel/bounds.s
In file included from include/linux/compiler-gcc.h:86,
from include/linux/compiler.h:40,
from include/linux/stddef.h:4,
from include/linux/posix_types.h:4,
from include/linux/types.h:14,
from include/linux/page-flags.h:8,
from kernel/bounds.c:9:
include/linux/compiler-gcc4.h:8:4: error: #error Your version of gcc miscompiles the __weak directive
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
shuangbi@shuangbi-desktop:~/Toolchain/linux-2.6.30$