mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 02:08:38 +00:00
ff2545ab78
When there is no $fdtfile variable set, we still have a good chance that on 32bit arm the fdtfile really is just called $soc-$board.dtb. Enable the exports for $soc and $board in our distr defaults and make use of them in the efi boot script. Reported-by: Andreas Faerber <afaerber@suse.de> Reported-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Andreas Färber <afaerber@suse.de>
70 lines
1.8 KiB
C
70 lines
1.8 KiB
C
/*
|
|
* Copyright 2013-2014 Red Hat, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _CONFIG_CMD_DISTRO_DEFAULTS_H
|
|
#define _CONFIG_CMD_DISTRO_DEFAULTS_H
|
|
|
|
/*
|
|
* List of all commands and options that when defined enables support for
|
|
* features required by distros to support boards in a standardised and
|
|
* consistent manner.
|
|
*/
|
|
|
|
#define CONFIG_BOOTP_BOOTPATH
|
|
#define CONFIG_BOOTP_DNS
|
|
#define CONFIG_BOOTP_GATEWAY
|
|
#define CONFIG_BOOTP_HOSTNAME
|
|
#define CONFIG_BOOTP_PXE
|
|
#define CONFIG_BOOTP_SUBNETMASK
|
|
|
|
#if defined(__arm__) || defined(__aarch64__)
|
|
#define CONFIG_BOOTP_PXE_CLIENTARCH 0x100
|
|
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
|
|
#if !defined(CONFIG_BOOTP_VCI_STRING)
|
|
#define CONFIG_BOOTP_VCI_STRING "U-Boot.armv7"
|
|
#endif
|
|
#elif defined(__aarch64__)
|
|
#if !defined(CONFIG_BOOTP_VCI_STRING)
|
|
#define CONFIG_BOOTP_VCI_STRING "U-Boot.armv8"
|
|
#endif
|
|
#else
|
|
#if !defined(CONFIG_BOOTP_VCI_STRING)
|
|
#define CONFIG_BOOTP_VCI_STRING "U-Boot.arm"
|
|
#endif
|
|
#endif
|
|
#elif defined(__i386__)
|
|
#define CONFIG_BOOTP_PXE_CLIENTARCH 0x0
|
|
#elif defined(__x86_64__)
|
|
#define CONFIG_BOOTP_PXE_CLIENTARCH 0x9
|
|
#endif
|
|
|
|
#ifdef CONFIG_ARM64
|
|
#define CONFIG_CMD_BOOTI
|
|
#else
|
|
#define CONFIG_CMD_BOOTZ
|
|
#endif
|
|
#define CONFIG_CMD_DHCP
|
|
#define CONFIG_CMD_EXT2
|
|
#define CONFIG_CMD_EXT4
|
|
#define CONFIG_CMD_FAT
|
|
#define CONFIG_CMD_FS_GENERIC
|
|
#define CONFIG_CMD_MII
|
|
#define CONFIG_CMD_PING
|
|
#define CONFIG_CMD_PXE
|
|
|
|
#define CONFIG_CMDLINE_EDITING
|
|
#define CONFIG_AUTO_COMPLETE
|
|
#define CONFIG_BOOTDELAY 2
|
|
#define CONFIG_SYS_LONGHELP
|
|
#define CONFIG_MENU
|
|
#define CONFIG_DOS_PARTITION
|
|
#define CONFIG_EFI_PARTITION
|
|
#define CONFIG_ISO_PARTITION
|
|
#define CONFIG_SUPPORT_RAW_INITRD
|
|
#define CONFIG_SYS_HUSH_PARSER
|
|
#define CONFIG_ENV_VARS_UBOOT_CONFIG
|
|
|
|
#endif /* _CONFIG_CMD_DISTRO_DEFAULTS_H */
|