Mark Kettenis | 003b657 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 1 | #ifndef __CONFIG_H |
| 2 | #define __CONFIG_H |
| 3 | |
| 4 | #include <linux/sizes.h> |
| 5 | |
Mark Kettenis | 003b657 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 6 | /* Environment */ |
| 7 | #define ENV_DEVICE_SETTINGS \ |
Mark Kettenis | d42f107 | 2022-01-23 16:48:13 +0100 | [diff] [blame] | 8 | "stdin=serial,usbkbd,spikbd\0" \ |
Mark Kettenis | 003b657 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 9 | "stdout=serial,vidconsole\0" \ |
| 10 | "stderr=serial,vidconsole\0" |
| 11 | |
Simon Glass | 96dad85 | 2023-02-05 15:36:37 -0700 | [diff] [blame] | 12 | #if IS_ENABLED(CONFIG_CMD_NVME) |
Mark Kettenis | dbb273a | 2022-01-22 20:38:19 +0100 | [diff] [blame] | 13 | #define BOOT_TARGET_NVME(func) func(NVME, nvme, 0) |
| 14 | #else |
| 15 | #define BOOT_TARGET_NVME(func) |
| 16 | #endif |
| 17 | |
Simon Glass | 93bb62a | 2023-02-05 15:36:46 -0700 | [diff] [blame] | 18 | #if IS_ENABLED(CONFIG_CMD_USB) |
Mark Kettenis | 003b657 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 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 Kettenis | dbb273a | 2022-01-22 20:38:19 +0100 | [diff] [blame] | 25 | BOOT_TARGET_NVME(func) \ |
Mark Kettenis | 003b657 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 26 | BOOT_TARGET_USB(func) |
| 27 | |
| 28 | #include <config_distro_bootcmd.h> |
| 29 | |
Tom Rini | 0613c36 | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 30 | #define CFG_EXTRA_ENV_SETTINGS \ |
Mark Kettenis | 003b657 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 31 | ENV_DEVICE_SETTINGS \ |
Mark Kettenis | 003b657 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 32 | BOOTENV |
| 33 | |
| 34 | #endif |