Blame view
env/nowhere.c
719 Bytes
83d290c56 SPDX: Convert all... |
1 |
// SPDX-License-Identifier: GPL-2.0+ |
0bc4a1ac8 Initial revision |
2 |
/* |
ea882baf9 New implementatio... |
3 |
* (C) Copyright 2000-2010 |
0bc4a1ac8 Initial revision |
4 5 6 7 |
* Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * (C) Copyright 2001 Sysgo Real-Time Solutions, GmbH <www.elinos.com> * Andreas Heppel <aheppel@sysgo.de> |
0bc4a1ac8 Initial revision |
8 9 10 |
*/ #include <common.h> |
0bc4a1ac8 Initial revision |
11 |
#include <command.h> |
db1970103 env: Move env_val... |
12 |
#include <env.h> |
f3998fdc4 env: Rename envir... |
13 |
#include <env_internal.h> |
0bc4a1ac8 Initial revision |
14 |
#include <linux/stddef.h> |
0bc4a1ac8 Initial revision |
15 |
|
d87080b72 GCC-4.x fixes: cl... |
16 |
DECLARE_GLOBAL_DATA_PTR; |
eeba55cb4 env: Correct case... |
17 18 19 20 21 22 23 24 25 26 27 |
/* * Because we only ever have the default environment available we must mark * it as invalid. */ static int env_nowhere_init(void) { gd->env_addr = (ulong)&default_environment[0]; gd->env_valid = ENV_INVALID; return 0; } |
4415f1d1f env: Create a loc... |
28 29 |
U_BOOT_ENV_LOCATION(nowhere) = { .location = ENVL_NOWHERE, |
eeba55cb4 env: Correct case... |
30 |
.init = env_nowhere_init, |
ac358beb8 env: Drop the env... |
31 |
ENV_NAME("nowhere") |
4415f1d1f env: Create a loc... |
32 |
}; |