1 // SPDX-License-Identifier: GPL-2.0+
4 * Max Krummenacher, Toradex
6 * Snippets taken from tools/env/fw_env.c
8 * This prints the list of default environment variables as currently
15 /* Pull in the current config to define the default environment */
16 #include <linux/kconfig.h>
19 #define __ASSEMBLY__ /* get only #defines from config.h */
26 #define DEFAULT_ENV_INSTANCE_STATIC
27 #include <generated/environment.h>
28 #include <env_default.h>
34 for (env = default_environment; *env; env = nxt + 1) {
35 for (nxt = env; *nxt; ++nxt) {
36 if (nxt >= &default_environment[sizeof(default_environment)]) {
37 fprintf(stderr, "## Error: environment not terminated\n");