Mark Kettenis | 58d5127 | 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 | 58d5127 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 6 | /* Environment */ |
| 7 | #define ENV_DEVICE_SETTINGS \ |
Mark Kettenis | 5348dba | 2022-01-23 16:48:13 +0100 | [diff] [blame] | 8 | "stdin=serial,usbkbd,spikbd\0" \ |
Mark Kettenis | 58d5127 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 9 | "stdout=serial,vidconsole\0" \ |
| 10 | "stderr=serial,vidconsole\0" |
| 11 | |
Mark Kettenis | d7b0142 | 2022-01-22 20:38:19 +0100 | [diff] [blame] | 12 | #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 Kettenis | 58d5127 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 18 | #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 Kettenis | d7b0142 | 2022-01-22 20:38:19 +0100 | [diff] [blame] | 25 | BOOT_TARGET_NVME(func) \ |
Mark Kettenis | 58d5127 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 26 | BOOT_TARGET_USB(func) |
| 27 | |
| 28 | #include <config_distro_bootcmd.h> |
| 29 | |
Tom Rini | c9edebe | 2022-12-04 10:03:50 -0500 | [diff] [blame] | 30 | #define CFG_EXTRA_ENV_SETTINGS \ |
Mark Kettenis | 58d5127 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 31 | ENV_DEVICE_SETTINGS \ |
Mark Kettenis | 58d5127 | 2021-10-23 16:58:03 +0200 | [diff] [blame] | 32 | BOOTENV |
| 33 | |
| 34 | #endif |