mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-11-03 18:01:41 +01:00 
			
		
		
		
	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>
		
			
				
	
	
		
			25 lines
		
	
	
		
			465 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 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
 |