]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/config_distro_defaults.h
sparse: Simplify multiple logic
[people/ms/u-boot.git] / include / config_distro_defaults.h
CommitLineData
13a49c3a
DG
1/*
2 * Copyright 2013-2014 Red Hat, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef _CONFIG_CMD_DISTRO_DEFAULTS_H
8#define _CONFIG_CMD_DISTRO_DEFAULTS_H
9
10/*
e141652b
TR
11 * List of all commands and options that when defined enables support for
12 * features required by distros to support boards in a standardised and
3bd6f7e7 13 * consistent manner.
13a49c3a
DG
14 */
15
16#define CONFIG_BOOTP_BOOTPATH
17#define CONFIG_BOOTP_DNS
18#define CONFIG_BOOTP_GATEWAY
19#define CONFIG_BOOTP_HOSTNAME
20#define CONFIG_BOOTP_PXE
21#define CONFIG_BOOTP_SUBNETMASK
22
1344bd7e 23#if defined(__arm__) || defined(__aarch64__)
13a49c3a
DG
24#define CONFIG_BOOTP_PXE_CLIENTARCH 0x100
25#if defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__)
2100f22f 26#if !defined(CONFIG_BOOTP_VCI_STRING)
13a49c3a 27#define CONFIG_BOOTP_VCI_STRING "U-boot.armv7"
2100f22f 28#endif
1344bd7e 29#elif defined(__aarch64__)
2100f22f 30#if !defined(CONFIG_BOOTP_VCI_STRING)
1344bd7e 31#define CONFIG_BOOTP_VCI_STRING "U-boot.armv8"
2100f22f 32#endif
13a49c3a 33#else
2100f22f 34#if !defined(CONFIG_BOOTP_VCI_STRING)
13a49c3a
DG
35#define CONFIG_BOOTP_VCI_STRING "U-boot.arm"
36#endif
2100f22f 37#endif
f96d0b81
SS
38#elif defined(__i386__)
39#define CONFIG_BOOTP_PXE_CLIENTARCH 0x0
40#elif defined(__x86_64__)
41#define CONFIG_BOOTP_PXE_CLIENTARCH 0x9
13a49c3a
DG
42#endif
43
44#define CONFIG_OF_LIBFDT
45
e2a5d556
TR
46#ifdef CONFIG_ARM64
47#define CONFIG_CMD_BOOTI
48#else
13a49c3a 49#define CONFIG_CMD_BOOTZ
e2a5d556 50#endif
13a49c3a 51#define CONFIG_CMD_DHCP
13a49c3a
DG
52#define CONFIG_CMD_EXT2
53#define CONFIG_CMD_EXT4
54#define CONFIG_CMD_FAT
55#define CONFIG_CMD_FS_GENERIC
56#define CONFIG_CMD_MII
13a49c3a
DG
57#define CONFIG_CMD_PING
58#define CONFIG_CMD_PXE
59
60#define CONFIG_CMDLINE_EDITING
61#define CONFIG_AUTO_COMPLETE
62#define CONFIG_BOOTDELAY 2
63#define CONFIG_SYS_LONGHELP
64#define CONFIG_MENU
65#define CONFIG_DOS_PARTITION
66#define CONFIG_EFI_PARTITION
67#define CONFIG_SUPPORT_RAW_INITRD
68#define CONFIG_SYS_HUSH_PARSER
69
70#endif /* _CONFIG_CMD_DISTRO_DEFAULTS_H */