u-boot에서 CFG_CMD와 CONFIG로 선언된 define문 질문입니다..

mabux의 이미지

두개로 선언되어있는 define 문들의 역활이 무엇인지 궁금합니다..

수많겠지만..

크게 CFG_CMD로 시작하는 define문은 무엇인지

CONFIG로 시작하는 define문은 무엇인지만 알면 괜찮겠습니다.

sungjin의 이미지

U-boot 1.1.1 의 READEM 파일에 다음과 같은 내용이 있군요.

Quote:

There are two classes of configuration variables:

* Configuration _OPTIONS_:
These are selectable by the user and have names beginning with
"CONFIG_".

* Configuration _SETTINGS_:
These depend on the hardware etc. and should not be meddled with if
you don't know what you're doing; they have names beginning with
"CFG_".

그리고, CONFIG_CMD 는
u-boot 상의 PROMPT에서 command
(예로 들면, printenv, setenv....)
를 정의하는 Define 으로 알고있습니다.