blob: 90431beb192db11a16fef8ba8108a65ef5b19392 [file] [log] [blame]
Joe Hershbergerddd84182012-10-12 08:48:51 +00001/*
2 * (C) Copyright 2000-2010
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com>
6 * Andreas Heppel <aheppel@sysgo.de>
7 *
Wolfgang Denk3765b3e2013-10-07 13:07:26 +02008 * SPDX-License-Identifier: GPL-2.0+
Joe Hershbergerddd84182012-10-12 08:48:51 +00009 */
10
Joe Hershberger170ab112012-12-11 22:16:24 -060011#include <env_callback.h>
12
Joe Hershbergerddd84182012-10-12 08:48:51 +000013#ifdef DEFAULT_ENV_INSTANCE_EMBEDDED
14env_t environment __PPCENV__ = {
15 ENV_CRC, /* CRC Sum */
16#ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
17 1, /* Flags: valid */
18#endif
19 {
20#elif defined(DEFAULT_ENV_INSTANCE_STATIC)
21static char default_environment[] = {
22#else
23const uchar default_environment[] = {
24#endif
Joe Hershberger170ab112012-12-11 22:16:24 -060025#ifdef CONFIG_ENV_CALLBACK_LIST_DEFAULT
26 ENV_CALLBACK_VAR "=" CONFIG_ENV_CALLBACK_LIST_DEFAULT "\0"
27#endif
Joe Hershberger25980902012-12-11 22:16:31 -060028#ifdef CONFIG_ENV_FLAGS_LIST_DEFAULT
29 ENV_FLAGS_VAR "=" CONFIG_ENV_FLAGS_LIST_DEFAULT "\0"
30#endif
Joe Hershbergerddd84182012-10-12 08:48:51 +000031#ifdef CONFIG_BOOTARGS
32 "bootargs=" CONFIG_BOOTARGS "\0"
33#endif
34#ifdef CONFIG_BOOTCOMMAND
35 "bootcmd=" CONFIG_BOOTCOMMAND "\0"
36#endif
37#ifdef CONFIG_RAMBOOTCOMMAND
38 "ramboot=" CONFIG_RAMBOOTCOMMAND "\0"
39#endif
40#ifdef CONFIG_NFSBOOTCOMMAND
41 "nfsboot=" CONFIG_NFSBOOTCOMMAND "\0"
42#endif
43#if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)
44 "bootdelay=" __stringify(CONFIG_BOOTDELAY) "\0"
45#endif
46#if defined(CONFIG_BAUDRATE) && (CONFIG_BAUDRATE >= 0)
47 "baudrate=" __stringify(CONFIG_BAUDRATE) "\0"
48#endif
49#ifdef CONFIG_LOADS_ECHO
50 "loads_echo=" __stringify(CONFIG_LOADS_ECHO) "\0"
51#endif
52#ifdef CONFIG_ETHADDR
53 "ethaddr=" __stringify(CONFIG_ETHADDR) "\0"
54#endif
55#ifdef CONFIG_ETH1ADDR
56 "eth1addr=" __stringify(CONFIG_ETH1ADDR) "\0"
57#endif
58#ifdef CONFIG_ETH2ADDR
59 "eth2addr=" __stringify(CONFIG_ETH2ADDR) "\0"
60#endif
61#ifdef CONFIG_ETH3ADDR
62 "eth3addr=" __stringify(CONFIG_ETH3ADDR) "\0"
63#endif
64#ifdef CONFIG_ETH4ADDR
65 "eth4addr=" __stringify(CONFIG_ETH4ADDR) "\0"
66#endif
67#ifdef CONFIG_ETH5ADDR
68 "eth5addr=" __stringify(CONFIG_ETH5ADDR) "\0"
69#endif
70#ifdef CONFIG_ETHPRIME
71 "ethprime=" CONFIG_ETHPRIME "\0"
72#endif
73#ifdef CONFIG_IPADDR
74 "ipaddr=" __stringify(CONFIG_IPADDR) "\0"
75#endif
76#ifdef CONFIG_SERVERIP
77 "serverip=" __stringify(CONFIG_SERVERIP) "\0"
78#endif
79#ifdef CONFIG_SYS_AUTOLOAD
80 "autoload=" CONFIG_SYS_AUTOLOAD "\0"
81#endif
82#ifdef CONFIG_PREBOOT
83 "preboot=" CONFIG_PREBOOT "\0"
84#endif
85#ifdef CONFIG_ROOTPATH
86 "rootpath=" CONFIG_ROOTPATH "\0"
87#endif
88#ifdef CONFIG_GATEWAYIP
89 "gatewayip=" __stringify(CONFIG_GATEWAYIP) "\0"
90#endif
91#ifdef CONFIG_NETMASK
92 "netmask=" __stringify(CONFIG_NETMASK) "\0"
93#endif
94#ifdef CONFIG_HOSTNAME
95 "hostname=" __stringify(CONFIG_HOSTNAME) "\0"
96#endif
97#ifdef CONFIG_BOOTFILE
98 "bootfile=" CONFIG_BOOTFILE "\0"
99#endif
100#ifdef CONFIG_LOADADDR
101 "loadaddr=" __stringify(CONFIG_LOADADDR) "\0"
102#endif
103#ifdef CONFIG_CLOCKS_IN_MHZ
104 "clocks_in_mhz=1\0"
105#endif
106#if defined(CONFIG_PCI_BOOTDELAY) && (CONFIG_PCI_BOOTDELAY > 0)
107 "pcidelay=" __stringify(CONFIG_PCI_BOOTDELAY)"\0"
108#endif
109#ifdef CONFIG_ENV_VARS_UBOOT_CONFIG
110 "arch=" CONFIG_SYS_ARCH "\0"
111 "cpu=" CONFIG_SYS_CPU "\0"
112 "board=" CONFIG_SYS_BOARD "\0"
Stephen Warren418b7f32012-10-31 11:17:28 +0000113 "board_name=" CONFIG_SYS_BOARD "\0"
Joe Hershbergerddd84182012-10-12 08:48:51 +0000114#ifdef CONFIG_SYS_VENDOR
115 "vendor=" CONFIG_SYS_VENDOR "\0"
116#endif
117#ifdef CONFIG_SYS_SOC
118 "soc=" CONFIG_SYS_SOC "\0"
119#endif
120#endif
121#ifdef CONFIG_EXTRA_ENV_SETTINGS
122 CONFIG_EXTRA_ENV_SETTINGS
123#endif
124 "\0"
125#ifdef DEFAULT_ENV_INSTANCE_EMBEDDED
126 }
127#endif
128};