blob: b06660add4fad8ffa538a43bebf849ee341353aa [file] [log] [blame]
Mark Kettenis003b6572021-10-23 16:58:03 +02001#ifndef __CONFIG_H
2#define __CONFIG_H
3
4#include <linux/sizes.h>
5
Mark Kettenis003b6572021-10-23 16:58:03 +02006/* Environment */
7#define ENV_DEVICE_SETTINGS \
Mark Kettenisd42f1072022-01-23 16:48:13 +01008 "stdin=serial,usbkbd,spikbd\0" \
Mark Kettenis003b6572021-10-23 16:58:03 +02009 "stdout=serial,vidconsole\0" \
10 "stderr=serial,vidconsole\0"
11
Mark Kettenisdbb273a2022-01-22 20:38:19 +010012#if CONFIG_IS_ENABLED(CMD_NVME)
13 #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0)
14#else
15 #define BOOT_TARGET_NVME(func)
16#endif
17
Mark Kettenis003b6572021-10-23 16:58:03 +020018#if CONFIG_IS_ENABLED(CMD_USB)
19 #define BOOT_TARGET_USB(func) func(USB, usb, 0)
20#else
21 #define BOOT_TARGET_USB(func)
22#endif
23
24#define BOOT_TARGET_DEVICES(func) \
Mark Kettenisdbb273a2022-01-22 20:38:19 +010025 BOOT_TARGET_NVME(func) \
Mark Kettenis003b6572021-10-23 16:58:03 +020026 BOOT_TARGET_USB(func)
27
28#include <config_distro_bootcmd.h>
29
30#define CONFIG_EXTRA_ENV_SETTINGS \
31 ENV_DEVICE_SETTINGS \
Mark Kettenis003b6572021-10-23 16:58:03 +020032 BOOTENV
33
34#endif