linux kernel defconfig和.config
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                linux kernel defconfig和.config
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                
                            
                            
                            在Linux內核里,編譯內核文件時,先要配置.config文件,然后Makefile在編譯時通過讀取.config文件的配置來選擇要編譯的文件,選擇驅動的加載方式。  
                        
                        
                        - xxx_defconfig 一般在arch/arm64/configs/目錄下,是一個沒有展開的內核配置,需要配合Kconfig展開成.config
 - 從defconfig到.config不是簡單的復制操作,而是make?ARCH=arm64?defconfig
 - .confg也不是直接拷貝成defconfig,而是使用make ARCH=arm64 savedefconfig
 
- if option is mentioned in?defconfig, build system puts that option into?.config?with value chosen in?defconfig
 - if option isn't mentioned in?defconfig, build system puts that option into?.config?using its default value, specified in corresponding?Kconfig
 
總結
以上是生活随笔為你收集整理的linux kernel defconfig和.config的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: 特斯拉自动驾驶造假?曝马斯克已被美国监管
 - 下一篇: bootcmd和bootargs