Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
0bc4a1ac | 2 | /* |
ea882baf | 3 | * (C) Copyright 2000-2010 |
0bc4a1ac WD |
4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
5 | * | |
6 | * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com> | |
7 | * Andreas Heppel <aheppel@sysgo.de> | |
0bc4a1ac WD |
8 | */ |
9 | ||
10 | #include <common.h> | |
0bc4a1ac WD |
11 | #include <command.h> |
12 | #include <environment.h> | |
13 | #include <linux/stddef.h> | |
0bc4a1ac | 14 | |
d87080b7 WD |
15 | DECLARE_GLOBAL_DATA_PTR; |
16 | ||
eeba55cb TR |
17 | /* |
18 | * Because we only ever have the default environment available we must mark | |
19 | * it as invalid. | |
20 | */ | |
21 | static int env_nowhere_init(void) | |
22 | { | |
23 | gd->env_addr = (ulong)&default_environment[0]; | |
24 | gd->env_valid = ENV_INVALID; | |
25 | ||
26 | return 0; | |
27 | } | |
28 | ||
4415f1d1 SG |
29 | U_BOOT_ENV_LOCATION(nowhere) = { |
30 | .location = ENVL_NOWHERE, | |
eeba55cb | 31 | .init = env_nowhere_init, |
ac358beb | 32 | ENV_NAME("nowhere") |
4415f1d1 | 33 | }; |