+ -
当前位置:首页 → 问答吧 → make oldconfig 和 make defconfig有何区别?

make oldconfig 和 make defconfig有何区别?

时间:2011-08-25

来源:互联网

在配置内核时如果执行
Assembly code

make defconfig


那么make直接按照默认值生成.config。提示信息如下:
Assembly code

*** Default configuration is based on 'i386_defconfig'
#
# configuration written to .config
#




但是,如果在源码目录中没有.config文件的情况下执行
Assembly code

make oldconfig


那么make的提示如下:
Assembly code

scripts/kconfig/conf -o arch/x86/Kconfig
#
# using defaults found in arch/x86/configs/i386_defconfig
#
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Kernel compression mode
> 1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2)
  3. LZMA (KERNEL_LZMA)
  4. LZO (KERNEL_LZO) (NEW)
choice[1-4?]:


两者都用'i386_defconfig',为什么需要用户回答一些问题?这好像与make defconfig不太一样,make oldconfig有什么特殊考虑吗?


作者: jet8   发布时间: 2011-08-25

http://www.51testing.com/?uid-225738-action-viewspace-itemid-237838

作者: zmlovelx   发布时间: 2011-08-26

热门下载

更多