之前在arch/arm/configs/下面已经有了默认的配置文件as353x_defconfig
后来我在那边又加了个as353x_nand_config用于默认的启动nand支持,
结果在make clean 和make distclean后,去
make ARCH=arm as353x_nand_config
却出现错误:
make ARCH=arm as353x_nand_config
HOSTCC scripts/basic/fixdep
/usr/lib/gcc/i586-suse-linux/4.1.3/../../../../i586-suse-linux/bin/ld: error in /usr/lib/gcc/i586-suse-linux/4.1.3/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.
HOSTCC scripts/basic/docproc
/usr/lib/gcc/i586-suse-linux/4.1.3/../../../../i586-suse-linux/bin/ld: error in /usr/lib/gcc/i586-suse-linux/4.1.3/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.
HOSTCC scripts/basic/hash
/usr/lib/gcc/i586-suse-linux/4.1.3/../../../../i586-suse-linux/bin/ld: error in /usr/lib/gcc/i586-suse-linux/4.1.3/crtend.o(.eh_frame); no .eh_frame_hdr table will be created.
make[1]: *** No rule to make target `as353x_nand_config’. Stop.
make: *** [as353x_nand_config] Error 2
而make ARCH=arm as353x_defconfig
就可以。后来才搞懂,这个默认配置文件,必须是XXX_defconfig才可以。。。。
改成as353x_nand_defconfig,再去
make ARCH=arm as353x_nand_defconfig
就可以正常导入默认配置了。
转载请注明:在路上 » Linux Kernel default configure 文件命名是有规定的:必须是XXX_defconfig