blob: fe7d11bcdb38d13fd207edfcbc5c8f1579a6722a [file] [log] [blame]
Mark Kettenis58d51272021-10-23 16:58:03 +02001#ifndef __CONFIG_H
2#define __CONFIG_H
3
4#include <linux/sizes.h>
5
Mark Kettenis58d51272021-10-23 16:58:03 +02006/* Environment */
7#define ENV_DEVICE_SETTINGS \
Mark Kettenis5348dba2022-01-23 16:48:13 +01008 "stdin=serial,usbkbd,spikbd\0" \
Mark Kettenis58d51272021-10-23 16:58:03 +02009 "stdout=serial,vidconsole\0" \
10 "stderr=serial,vidconsole\0"
11
Mark Kettenisd7b01422022-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 Kettenis58d51272021-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 Kettenisd7b01422022-01-22 20:38:19 +010025 BOOT_TARGET_NVME(func) \
Mark Kettenis58d51272021-10-23 16:58:03 +020026 BOOT_TARGET_USB(func)
27
28#include <config_distro_bootcmd.h>
29
Tom Rinic9edebe2022-12-04 10:03:50 -050030#define CFG_EXTRA_ENV_SETTINGS \
Mark Kettenis58d51272021-10-23 16:58:03 +020031 ENV_DEVICE_SETTINGS \
Mark Kettenis58d51272021-10-23 16:58:03 +020032 BOOTENV
33
34#endif