]> git.ipfire.org Git - people/ms/u-boot.git/blame - env/nowhere.c
imx: hab: Check if CSF contains deprecated commands
[people/ms/u-boot.git] / env / nowhere.c
CommitLineData
0bc4a1ac 1/*
ea882baf 2 * (C) Copyright 2000-2010
0bc4a1ac
WD
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
3765b3e7 8 * SPDX-License-Identifier: GPL-2.0+
0bc4a1ac
WD
9 */
10
11#include <common.h>
0bc4a1ac
WD
12#include <command.h>
13#include <environment.h>
14#include <linux/stddef.h>
0bc4a1ac 15
d87080b7
WD
16DECLARE_GLOBAL_DATA_PTR;
17
eeba55cb
TR
18/*
19 * Because we only ever have the default environment available we must mark
20 * it as invalid.
21 */
22static int env_nowhere_init(void)
23{
24 gd->env_addr = (ulong)&default_environment[0];
25 gd->env_valid = ENV_INVALID;
26
27 return 0;
28}
29
4415f1d1
SG
30U_BOOT_ENV_LOCATION(nowhere) = {
31 .location = ENVL_NOWHERE,
eeba55cb 32 .init = env_nowhere_init,
ac358beb 33 ENV_NAME("nowhere")
4415f1d1 34};