.
.
.
common/main.c
1 static void run_preboot_environment_command(void)
2 {
3 #ifdef CONFIG_PREBOOT
4 char *p;
5
6 p = getenv("preboot");
7 if (p != NULL) {
8 # ifdef CONFIG_AUTOBOOT_KEYED
9 int prev = disable_ctrlc(1); /* disable Control C checking */
10 # endif
11
12 run_command_list(p, -1, 0);
13
14 # ifdef CONFIG_AUTOBOOT_KEYED
15 disable_ctrlc(prev); /* restore Control C checking */
16 # endif
17 }
18 #endif /* CONFIG_PREBOOT */
19 }
.
.
.
3번 줄의 CONFIG_PREBOOT이 선언되어 있어 if문이 수행됩니다. 6번 줄의 getenv함수가 수행됩니다.