zephyr/kernel
Yong Cong Sin fbaf7dfdc1 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: Yong Cong Sin <ycsin@meta.com>
2024-04-04 23:47:33 +02:00
..
include kernel: thread: move thread states to header 2024-04-01 18:47:36 -04:00
paging
CMakeLists.txt kernel: split timeslicing/ipi code out of sched.c 2024-04-01 18:47:36 -04:00
Kconfig sched: Remove multi-level queue priority limit 2024-03-12 19:37:40 -04:00
Kconfig.device kernel: reorg Kconfigs and split them 2024-03-06 19:27:28 -05:00
Kconfig.obj_core kernel: reorg Kconfigs and split them 2024-03-06 19:27:28 -05:00
Kconfig.smp kernel: reorg Kconfigs and split them 2024-03-06 19:27:28 -05:00
Kconfig.vm
atomic_c.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
banner.c kernel: banner: use BUILD_VERSION only if not empty 2024-04-04 23:47:33 +02:00
busy_wait.c
compiler_stack_protect.c
condvar.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
cpu_mask.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
device.c
dynamic.c kernel: align kernel stack size declaration 2024-03-27 19:27:10 -04:00
dynamic_disabled.c
errno.c
events.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
fatal.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
float.c kernel: move float operations out of thread.c 2024-03-06 19:27:28 -05:00
futex.c
idle.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
init.c kernel: rename Z_KERNEL_STACK_BUFFER to K_KERNEL_STACK_BUFFER 2024-03-27 19:27:10 -04:00
ipi.c kernel: rename sliceable -> thread_is_sliceable 2024-04-01 18:47:36 -04:00
irq_offload.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
kheap.c kernel: rename h -> heap 2024-03-06 19:27:28 -05:00
mailbox.c kernel: move thread related helper function kthread.h 2024-04-01 18:47:36 -04:00
main_weak.c
mem_domain.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mem_slab.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mempool.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mmu.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
msg_q.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
mutex.c kernel: move thread related helper function kthread.h 2024-04-01 18:47:36 -04:00
obj_core.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
pipes.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
poll.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
priority_queues.c sched: Remove multi-level queue priority limit 2024-03-12 19:37:40 -04:00
queue.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
sched.c kernel: thread: move k_thread_priority_get 2024-04-01 18:47:36 -04:00
sem.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
smp.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
spinlock_validate.c kernel: move spinlock validation to own file 2024-03-06 19:27:28 -05:00
stack.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
system_work_q.c
thread.c kernel: thread: move thread states to header 2024-04-01 18:47:36 -04:00
thread_monitor.c kernel: split thread monitor 2024-03-06 19:27:28 -05:00
timeout.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
timer.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
timeslicing.c kernel: thread: rename is_preempt 2024-04-01 18:47:36 -04:00
usage.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
userspace.c kernel: align thread stack size declaration 2024-03-27 19:27:10 -04:00
userspace_handler.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
version.c
work.c kernel: add closing comments to config endifs 2024-03-25 18:03:31 -04:00
xip.c