[root@localhost linux]# make
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/armlinux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mshort-load-bytes -msoft-float -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/arch/dma.h:14,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/dma.h:11,
from /root/armlinux/linux/include/linux/bootmem.h:8,
from init/main.c:28:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/arch/hardware.h:16: asm/mach-types.h: ?????????
init/main.c: In function `start_kernel':
init/main.c:597: warning: implicit declaration of function `pgtable_cache_init'
我再根据那本书附带的视频文件build_armlinux_4_skyeye.avi编译,仍然编译不了,出现如下错误:
[root@localhost linux]# make
make: *** No rule to make target `/mnt/hda9/ywc02/skyeyeProject/linux/include/as
m/arch/param.h', needed by `/mnt/hda9/ywc02/skyeyeProject/linux/include/asm/para
m.h'. Stop.
我的也出现同样的错误,解压完之后,先执行make clean,再make也不行啊.
[root@louis linux]# make
make: *** No rule to make target `/mnt/hda9/ywc02/skyeyeProject/linux/include/as
m/arch/param.h', needed by `/mnt/hda9/ywc02/skyeyeProject/linux/include/asm/para
m.h'. Stop.
查看README和Makefile文件,我试了一下以下的方法,可以行得通.不过不知道是否正确,还请各位给点意见.
make clean
make mrproper
make menuconfig
(选择所需要支持的东西)
make dep
make
完成之后生成vmlinux,vmlinux.bin
README中有如下描述:
- Make sure you have no stale .o files and dependencies lying around:
cd linux
make mrproper
You should now have the sources correctly installed.