diff options
| author | David Lechner <[email protected]> | 2026-06-11 16:59:13 -0500 |
|---|---|---|
| committer | David Lechner <[email protected]> | 2026-08-05 15:05:27 -0500 |
| commit | b889cdc2675563d1c80da8e0234137452f389adf (patch) | |
| tree | fdcce48f356ae6bdac1e40d5de88381dea0de0b9 | |
| parent | bf75f80082a194a95eb2aef039a746c5765ba8d1 (diff) | |
cmd: ufetch: fix compiling with no CONFIG_SYS_CONFIG_NAME
Add some preprocessor guards to avoid a compile error when
CONFIG_SYS_CONFIG_NAME is not defined.
Reviewed-by: Casey Connolly <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: David Lechner <[email protected]>
| -rw-r--r-- | cmd/ufetch.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/ufetch.c b/cmd/ufetch.c index 763ab42c48a..d4b54f77b7b 100644 --- a/cmd/ufetch.c +++ b/cmd/ufetch.c @@ -60,7 +60,9 @@ enum output_lines { FIRST, SECOND, KERNEL, +#ifdef CONFIG_SYS_CONFIG_NAME SYSINFO, +#endif HOST, UPTIME, IP, @@ -125,9 +127,11 @@ static int do_ufetch(struct cmd_tbl *cmdtp, int flag, int argc, case KERNEL: printf("Kernel:" RESET " %s\n", U_BOOT_VERSION); break; +#ifdef CONFIG_SYS_CONFIG_NAME case SYSINFO: printf("Config:" RESET " %s_defconfig\n", CONFIG_SYS_CONFIG_NAME); break; +#endif case HOST: model = ofnode_read_string(ofnode_root(), "model"); if (model) |
