Blame view

env/nowhere.c 701 Bytes
83d290c56   Tom Rini   SPDX: Convert all...
1
  // SPDX-License-Identifier: GPL-2.0+
0bc4a1ac8   wdenk   Initial revision
2
  /*
ea882baf9   Wolfgang Denk   New implementatio...
3
   * (C) Copyright 2000-2010
0bc4a1ac8   wdenk   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   wdenk   Initial revision
8
9
10
   */
  
  #include <common.h>
0bc4a1ac8   wdenk   Initial revision
11
12
13
  #include <command.h>
  #include <environment.h>
  #include <linux/stddef.h>
0bc4a1ac8   wdenk   Initial revision
14

d87080b72   Wolfgang Denk   GCC-4.x fixes: cl...
15
  DECLARE_GLOBAL_DATA_PTR;
eeba55cb4   Tom Rini   env: Correct case...
16
17
18
19
20
21
22
23
24
25
26
  /*
   * 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   Simon Glass   env: Create a loc...
27
28
  U_BOOT_ENV_LOCATION(nowhere) = {
  	.location	= ENVL_NOWHERE,
eeba55cb4   Tom Rini   env: Correct case...
29
  	.init		= env_nowhere_init,
ac358beb8   Simon Glass   env: Drop the env...
30
  	ENV_NAME("nowhere")
4415f1d1f   Simon Glass   env: Create a loc...
31
  };