]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/env_default.h
Merge remote-tracking branch 'u-boot-ti/master'
[karo-tx-uboot.git] / include / env_default.h
1 /*
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  *
8  * See file CREDITS for list of people who contributed to this
9  * project.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License as
13  * published by the Free Software Foundation; either version 2 of
14  * the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24  * MA 02111-1307 USA
25  */
26
27 #ifdef DEFAULT_ENV_INSTANCE_EMBEDDED
28 env_t environment __PPCENV__ = {
29         ENV_CRC,        /* CRC Sum */
30 #ifdef CONFIG_SYS_REDUNDAND_ENVIRONMENT
31         1,              /* Flags: valid */
32 #endif
33         {
34 #elif defined(DEFAULT_ENV_INSTANCE_STATIC)
35 static char default_environment[] = {
36 #else
37 const uchar default_environment[] = {
38 #endif
39 #ifdef  CONFIG_BOOTARGS
40         "bootargs="     CONFIG_BOOTARGS                 "\0"
41 #endif
42 #ifdef  CONFIG_BOOTCOMMAND
43         "bootcmd="      CONFIG_BOOTCOMMAND              "\0"
44 #endif
45 #ifdef  CONFIG_RAMBOOTCOMMAND
46         "ramboot="      CONFIG_RAMBOOTCOMMAND           "\0"
47 #endif
48 #ifdef  CONFIG_NFSBOOTCOMMAND
49         "nfsboot="      CONFIG_NFSBOOTCOMMAND           "\0"
50 #endif
51 #if defined(CONFIG_BOOTDELAY) && (CONFIG_BOOTDELAY >= 0)
52         "bootdelay="    __stringify(CONFIG_BOOTDELAY)   "\0"
53 #endif
54 #if defined(CONFIG_BAUDRATE) && (CONFIG_BAUDRATE >= 0)
55         "baudrate="     __stringify(CONFIG_BAUDRATE)    "\0"
56 #endif
57 #ifdef  CONFIG_LOADS_ECHO
58         "loads_echo="   __stringify(CONFIG_LOADS_ECHO)  "\0"
59 #endif
60 #ifdef  CONFIG_ETHADDR
61         "ethaddr="      __stringify(CONFIG_ETHADDR)     "\0"
62 #endif
63 #ifdef  CONFIG_ETH1ADDR
64         "eth1addr="     __stringify(CONFIG_ETH1ADDR)    "\0"
65 #endif
66 #ifdef  CONFIG_ETH2ADDR
67         "eth2addr="     __stringify(CONFIG_ETH2ADDR)    "\0"
68 #endif
69 #ifdef  CONFIG_ETH3ADDR
70         "eth3addr="     __stringify(CONFIG_ETH3ADDR)    "\0"
71 #endif
72 #ifdef  CONFIG_ETH4ADDR
73         "eth4addr="     __stringify(CONFIG_ETH4ADDR)    "\0"
74 #endif
75 #ifdef  CONFIG_ETH5ADDR
76         "eth5addr="     __stringify(CONFIG_ETH5ADDR)    "\0"
77 #endif
78 #ifdef  CONFIG_ETHPRIME
79         "ethprime="     CONFIG_ETHPRIME                 "\0"
80 #endif
81 #ifdef  CONFIG_IPADDR
82         "ipaddr="       __stringify(CONFIG_IPADDR)      "\0"
83 #endif
84 #ifdef  CONFIG_SERVERIP
85         "serverip="     __stringify(CONFIG_SERVERIP)    "\0"
86 #endif
87 #ifdef  CONFIG_SYS_AUTOLOAD
88         "autoload="     CONFIG_SYS_AUTOLOAD             "\0"
89 #endif
90 #ifdef  CONFIG_PREBOOT
91         "preboot="      CONFIG_PREBOOT                  "\0"
92 #endif
93 #ifdef  CONFIG_ROOTPATH
94         "rootpath="     CONFIG_ROOTPATH                 "\0"
95 #endif
96 #ifdef  CONFIG_GATEWAYIP
97         "gatewayip="    __stringify(CONFIG_GATEWAYIP)   "\0"
98 #endif
99 #ifdef  CONFIG_NETMASK
100         "netmask="      __stringify(CONFIG_NETMASK)     "\0"
101 #endif
102 #ifdef  CONFIG_HOSTNAME
103         "hostname="     __stringify(CONFIG_HOSTNAME)    "\0"
104 #endif
105 #ifdef  CONFIG_BOOTFILE
106         "bootfile="     CONFIG_BOOTFILE                 "\0"
107 #endif
108 #ifdef  CONFIG_LOADADDR
109         "loadaddr="     __stringify(CONFIG_LOADADDR)    "\0"
110 #endif
111 #ifdef  CONFIG_CLOCKS_IN_MHZ
112         "clocks_in_mhz=1\0"
113 #endif
114 #if defined(CONFIG_PCI_BOOTDELAY) && (CONFIG_PCI_BOOTDELAY > 0)
115         "pcidelay="     __stringify(CONFIG_PCI_BOOTDELAY)"\0"
116 #endif
117 #ifdef  CONFIG_ENV_VARS_UBOOT_CONFIG
118         "arch="         CONFIG_SYS_ARCH                 "\0"
119         "cpu="          CONFIG_SYS_CPU                  "\0"
120         "board="        CONFIG_SYS_BOARD                "\0"
121 #ifdef CONFIG_SYS_VENDOR
122         "vendor="       CONFIG_SYS_VENDOR               "\0"
123 #endif
124 #ifdef CONFIG_SYS_SOC
125         "soc="          CONFIG_SYS_SOC                  "\0"
126 #endif
127 #endif
128 #ifdef  CONFIG_EXTRA_ENV_SETTINGS
129         CONFIG_EXTRA_ENV_SETTINGS
130 #endif
131         "\0"
132 #ifdef DEFAULT_ENV_INSTANCE_EMBEDDED
133         }
134 #endif
135 };