mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Prepare moving boiler plate code out of board confguration header and prepare to share a lot of things between boards. Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com> Signed-off-by: Max Merchel <Max.Merchel@ew.tq-group.com>
39 lines
817 B
Bash
39 lines
817 B
Bash
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
/*
|
|
* Copyright (c) 2024-2026 TQ-Systems GmbH <u-boot@ew.tq-group.com>,
|
|
* D-82229 Seefeld, Germany.
|
|
* Author: Max Merchel
|
|
*
|
|
* shared environment for TQ imx boards
|
|
*/
|
|
|
|
#ifdef CONFIG_CMD_SF
|
|
#include "spi.env"
|
|
#ifdef CONFIG_CMD_UBIFS
|
|
#include "ubi.env"
|
|
#endif /* CONFIG_CMD_UBIFS */
|
|
#endif /* CONFIG_CMD_SF */
|
|
|
|
#ifdef CONFIG_CMD_MMC
|
|
#include "mmc.env"
|
|
#endif
|
|
|
|
#ifdef CONFIG_CMD_NFS
|
|
#include "nfs.env"
|
|
#endif
|
|
|
|
addip=
|
|
run check_ipaddr;
|
|
setenv bootargs "${bootargs}"
|
|
ip="${ipaddr}":"${serverip}":"${gatewayip}":"${netmask}":"${hostname}":"${netdev}":off
|
|
|
|
addtty=setenv bootargs "${bootargs}" "${console}"
|
|
|
|
check_ipaddr=
|
|
if test -z "${ipaddr}" || test -z "${serverip}"; then
|
|
echo "ipaddr or serverip unset, falling back to DHCP...";
|
|
dhcp;
|
|
fi;
|
|
|
|
rootfsmode=ro
|