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 수정 방법에 대한 글 이였습니다.




Posted by 인포개더러
,