mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-21 10:43:06 +00:00
a770159f88
Define a misc_init_r() which calls "syno populate_env" if the environment seems incomplete (or default), indicated by missing "ethaddr" variable. With this in place, no random MAC address fallback is needed anymore. Signed-off-by: Phil Sutter <phil@nwl.cc>
17 lines
351 B
C
17 lines
351 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Commands to deal with Synology specifics.
|
|
*
|
|
* Copyright (C) 2021 Phil Sutter <phil@nwl.cc>
|
|
*/
|
|
|
|
#ifndef _CMD_SYNO_H
|
|
#define _CMD_SYNO_H
|
|
|
|
#define SYNO_ETHADDR_MAX 4
|
|
#define SYNO_SN_TAG "SN="
|
|
#define SYNO_CHKSUM_TAG "CHK="
|
|
|
|
int do_syno_populate(int argc, char *const argv[]);
|
|
|
|
#endif /* _CMD_SYNO_H */
|