본문 바로가기

개발일기/Linux

.config에 새로운 option 추가

커널 컴파일 .config파일에 나만의 옵션을 추가하려면 다음과 같은 2가지 파일을 수정해줘야한다.

1) Kconfig 파일

config MY_SETTING
    bool “This is the menuconfig label”
    default y
    help
       help for your new option

2) (위에 Kconfig 파일과 같은 디렉토리의) Makefile

obj-$(CONFIG_MY_SETTING)       += yournewcode.o

Reference: https://stackoverflow.com/questions/36646428/introduce-a-new-configuration-parameter-in-linux-kernel-make-menuconfig

 

Introduce a new configuration parameter in Linux Kernel make menuconfig

I added a feature in Linux kernel which I switch on/off using pre-processor macros. I now want these macros to be available in make menuconfig as configuration parameters. I tried to add them in the

stackoverflow.com

 

'개발일기 > Linux' 카테고리의 다른 글

[Linux] root 비밀번호 세팅/변경  (1) 2024.03.29
[Ubuntu] Macbook에서 Ubuntu 설치 USB 만들기  (1) 2024.03.29
[PM] 관련 명령 정리  (1) 2023.06.04