mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
31aefaf89a
Add a bootmeth driver which handles distro boot from a disk, so we can boot a bootflow using this commonly used mechanism. In effect, this provides the same functionality as the 'sysboot' command and shares the same code. But the interface into it is via a bootmeth. For now this requires the 'pxe' command be enabled. Future work may tidy this up so that it can be used without CONFIG_CMDLINE being enabled. Signed-off-by: Simon Glass <sjg@chromium.org>
24 lines
465 B
C
24 lines
465 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2021 Google LLC
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*/
|
|
|
|
#ifndef __distro_h
|
|
#define __distro_h
|
|
|
|
#define DISTRO_FNAME "extlinux/extlinux.conf"
|
|
|
|
/**
|
|
* struct distro_info - useful information for distro_getfile()
|
|
*
|
|
* @dev: bootmethod device being used to boot
|
|
* @bflow: bootflow being booted
|
|
*/
|
|
struct distro_info {
|
|
struct udevice *dev;
|
|
struct bootflow *bflow;
|
|
struct cmd_tbl *cmdtp;
|
|
};
|
|
|
|
#endif
|