config_distro_defaults.h 1.71 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/*
 * Copyright 2013-2014 Red Hat, Inc.
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */

#ifndef _CONFIG_CMD_DISTRO_DEFAULTS_H
#define _CONFIG_CMD_DISTRO_DEFAULTS_H

/*
11 12
 * List of all commands and options that when defined enables support for
 * features required by distros to support boards in a standardised and
13
 * consistent manner.
14 15 16 17 18 19 20 21 22
 */

#define CONFIG_BOOTP_BOOTPATH
#define CONFIG_BOOTP_DNS
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_HOSTNAME
#define CONFIG_BOOTP_PXE
#define CONFIG_BOOTP_SUBNETMASK

23
#if defined(__arm__) || defined(__aarch64__)
24 25
#define CONFIG_BOOTP_PXE_CLIENTARCH     0x100
#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
26
#if !defined(CONFIG_BOOTP_VCI_STRING)
27
#define CONFIG_BOOTP_VCI_STRING         "U-Boot.armv7"
28
#endif
29
#elif defined(__aarch64__)
30
#if !defined(CONFIG_BOOTP_VCI_STRING)
31
#define CONFIG_BOOTP_VCI_STRING         "U-Boot.armv8"
32
#endif
33
#else
34
#if !defined(CONFIG_BOOTP_VCI_STRING)
35
#define CONFIG_BOOTP_VCI_STRING         "U-Boot.arm"
36
#endif
37
#endif
38 39 40 41
#elif defined(__i386__)
#define CONFIG_BOOTP_PXE_CLIENTARCH     0x0
#elif defined(__x86_64__)
#define CONFIG_BOOTP_PXE_CLIENTARCH     0x9
42 43 44 45
#endif

#define CONFIG_OF_LIBFDT

46 47 48
#ifdef CONFIG_ARM64
#define CONFIG_CMD_BOOTI
#else
49
#define CONFIG_CMD_BOOTZ
50
#endif
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
#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_SUPPORT_RAW_INITRD
#define CONFIG_SYS_HUSH_PARSER

#endif	/* _CONFIG_CMD_DISTRO_DEFAULTS_H */