Skip to content
Commit fbaf7dfd authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Carles Cufí
Browse files

kernel: banner: use BUILD_VERSION only if not empty



The `BUILD_VERSION` can be defined but empty when built
without git, causing version to be missing from the banner:

```
*** Booting Zephyr OS build  ***
Hello World! qemu_riscv64
```

Let's check if it is empty before using it, so that
`KERNEL_VERSION_STRING`, which is generated independently
with cmake can be used as a fallback:

```
*** Booting Zephyr OS build 3.5.0 ***
Hello World! qemu_riscv64
```

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent 20b7b6e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment