Build error : Console input/output is redirected. Run 'make oldconfig' to update configuration 해결 방법
Programming 2013. 11. 21. 00:30
Build error : Console input/output is redirected. Run 'make oldconfig' to update configuration 해결 방법
Linux build 를 하다보면 여러가지 build 에러들을 보게 됩니다. 그중
Console input/output is redirected. Run 'make oldconfig' to update configuration 이라고 나오는 에러가 있습니다.
samsung battery driver (IT_BATTERY_SAMSUNG) [Y/n/?] y
dummy fuel gauge driver (IT_FUELGAUGE_DUMMY) [N/m/y/?] (NEW) aborted!
Console input/output is redirected. Run 'make oldconfig' to update configuration.
make[4]: *** [silentoldconfig] Error 1
make[3]: *** [silentoldconfig] Error 2
이 경우는 build 결과물 중 .config 를 생성하는데 defconfig file 의 내용 중 IT_FUELGAUGE_DUMMY 라는 driver 에 대한 내용이 없기 때문에 발생하는 에러 입니다.
이를 해결하기 위해서는 kernel/arch/xxxx/config/xxxx_defconfig 파일 내부에 IT_FUELGAUGE_DUMMY 에 관한 내용을 추가해 주면 됩니다.
CONFIG_IT_FUELGAUGE_DUMMY=y
위와 같이 default 값을 설정해 주게되면 위 에러는 해결 됩니다.
Kconfig 의 내용과 defconfig 파일의 내용은 항상 pair 가 되도록 작성을 해야하나 수작업으로 Kconfig 나 defconfig 를 수정하다 보면 짝이 맞지 않는 경우가 발생하여 생기는 문제입니다.
꼭 양쪽 파일들을 체크하여 수정하도록 해야겠습니다. ^^
이상 linux build error 수정 방법에 대한 글 이였습니다.
'Programming' 카테고리의 다른 글
Android setting 값 저장되어 있는 db file 위치와 내용 보기 (0) | 2014.02.26 |
---|---|
Android 개발시 Makefile 디버깅 정보 출력 방법 (1) | 2013.10.13 |
shell script 실행 시간 계산하기 (1) | 2013.07.26 |
Shell script 현재 path 변수로 저장하기 / Script 실행결과 변수로 저장하기 (0) | 2013.06.28 |
Makefile 을 구성하는 make 문법 (3) | 2013.01.03 |