반응형
아래 글은 리눅스 문서에 작성되어 있는 커널 Configuring에 대한 설명이다.
잘 설명되어 있기에 따로 해석하여 적어놓지 않아도 읽어보면 어떻게 사용하여야 하는지 쉽게 파악할 수 있을 것이다.
CONFIGURING the kernel: 154 155 Do not skip this step even if you are only upgrading one minor 156 version. New configuration options are added in each release, and 157 odd problems will turn up if the configuration files are not set up 158 as expected. If you want to carry your existing configuration to a 159 new version with minimal work, use "make oldconfig", which will 160 only ask you for the answers to new questions. 161 162 - Alternative configuration commands are: 163 164 "make config" Plain text interface. 165 166 "make menuconfig" Text based color menus, radiolists & dialogs. 167 168 "make nconfig" Enhanced text based color menus. 169 170 "make xconfig" X windows (Qt) based configuration tool. 171 172 "make gconfig" X windows (Gtk) based configuration tool. 173 174 "make oldconfig" Default all questions based on the contents of 175 your existing ./.config file and asking about 176 new config symbols. 177 178 "make silentoldconfig" 179 Like above, but avoids cluttering the screen 180 with questions already answered. 181 Additionally updates the dependencies. 182 183 "make olddefconfig" 184 Like above, but sets new symbols to their default 185 values without prompting. 186 187 "make defconfig" Create a ./.config file by using the default 188 symbol values from either arch/$ARCH/defconfig 189 or arch/$ARCH/configs/${PLATFORM}_defconfig, 190 depending on the architecture. 191 192 "make ${PLATFORM}_defconfig" 193 Create a ./.config file by using the default 194 symbol values from 195 arch/$ARCH/configs/${PLATFORM}_defconfig. 196 Use "make help" to get a list of all available 197 platforms of your architecture. 198 199 "make allyesconfig" 200 Create a ./.config file by setting symbol 201 values to 'y' as much as possible. 202 203 "make allmodconfig" 204 Create a ./.config file by setting symbol 205 values to 'm' as much as possible. 206 207 "make allnoconfig" Create a ./.config file by setting symbol 208 values to 'n' as much as possible. 209 210 "make randconfig" Create a ./.config file by setting symbol 211 values to random values. 212 213 "make localmodconfig" Create a config based on current config and 214 loaded modules (lsmod). Disables any module 215 option that is not needed for the loaded modules. 216 217 To create a localmodconfig for another machine, 218 store the lsmod of that machine into a file 219 and pass it in as a LSMOD parameter. 220 221 target$ lsmod > /tmp/mylsmod 222 target$ scp /tmp/mylsmod host:/tmp 223 224 host$ make LSMOD=/tmp/mylsmod localmodconfig 225 226 The above also works when cross compiling. 227 228 "make localyesconfig" Similar to localmodconfig, except it will convert 229 all module options to built in (=y) options. 230 231 You can find more information on using the Linux kernel config tools 232 in Documentation/kbuild/kconfig.txt.
반응형
'Linux > Kernel Analysis' 카테고리의 다른 글
[Linux Kernel] 프로세스란? (1) | 2014.07.01 |
---|---|
[Linux Kernel] Kobject에 대하여 (0) | 2014.06.27 |
sysfs (0) | 2014.06.23 |
리눅스 소스 사이트 (0) | 2014.06.08 |
git-proxy 설정 (0) | 2014.06.01 |