|
@@ -191,7 +191,8 @@ static void post_bootmode_test_off (void)
|
|
post_word_store (word);
|
|
post_word_store (word);
|
|
}
|
|
}
|
|
|
|
|
|
-static void post_get_flags (int *test_flags)
|
|
|
|
|
|
+#ifndef CONFIG_POST_SKIP_ENV_FLAGS
|
|
|
|
+static void post_get_env_flags(int *test_flags)
|
|
{
|
|
{
|
|
int flag[] = { POST_POWERON, POST_NORMAL, POST_SLOWTEST,
|
|
int flag[] = { POST_POWERON, POST_NORMAL, POST_SLOWTEST,
|
|
POST_CRITICAL };
|
|
POST_CRITICAL };
|
|
@@ -204,10 +205,6 @@ static void post_get_flags (int *test_flags)
|
|
int last;
|
|
int last;
|
|
int i, j;
|
|
int i, j;
|
|
|
|
|
|
- for (j = 0; j < post_list_size; j++) {
|
|
|
|
- test_flags[j] = post_list[j].flags;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
for (i = 0; i < varnum; i++) {
|
|
for (i = 0; i < varnum; i++) {
|
|
if (getenv_f(var[i], list, sizeof (list)) <= 0)
|
|
if (getenv_f(var[i], list, sizeof (list)) <= 0)
|
|
continue;
|
|
continue;
|
|
@@ -245,6 +242,19 @@ static void post_get_flags (int *test_flags)
|
|
name = s + 1;
|
|
name = s + 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+static void post_get_flags(int *test_flags)
|
|
|
|
+{
|
|
|
|
+ int j;
|
|
|
|
+
|
|
|
|
+ for (j = 0; j < post_list_size; j++)
|
|
|
|
+ test_flags[j] = post_list[j].flags;
|
|
|
|
+
|
|
|
|
+#ifndef CONFIG_POST_SKIP_ENV_FLAGS
|
|
|
|
+ post_get_env_flags(test_flags);
|
|
|
|
+#endif
|
|
|
|
|
|
for (j = 0; j < post_list_size; j++) {
|
|
for (j = 0; j < post_list_size; j++) {
|
|
if (test_flags[j] & POST_POWERON) {
|
|
if (test_flags[j] & POST_POWERON) {
|