cd2c7874b9
The `BUILD_VERSION` can be defined but empty when built without git, causing version to be missing from the uname version string: ``` *** Booting Zephyr OS build 3.5.0 *** Printing everything in utsname... sysname[7]: Zephyr nodename[7]: zephyr release[13]: 3.5.0 version[61]: Apr 1 2024 23:48:30 machine[8]: riscv64 uart:~$ ``` 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 *** Printing everything in utsname... sysname[7]: Zephyr nodename[7]: zephyr release[13]: 3.5.0 version[61]: 3.5.0 Apr 1 2024 23:53:48 machine[8]: riscv64 uart:~$ ``` Signed-off-by: Yong Cong Sin <ycsin@meta.com> |
||
---|---|---|
.. | ||
getopt | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.barrier | ||
Kconfig.clock | ||
Kconfig.cond | ||
Kconfig.confstr | ||
Kconfig.env | ||
Kconfig.eventfd | ||
Kconfig.fdtable | ||
Kconfig.fnmatch | ||
Kconfig.fs | ||
Kconfig.getopt | ||
Kconfig.key | ||
Kconfig.mqueue | ||
Kconfig.mutex | ||
Kconfig.net | ||
Kconfig.pthread | ||
Kconfig.rwlock | ||
Kconfig.sched | ||
Kconfig.semaphore | ||
Kconfig.signal | ||
Kconfig.spinlock | ||
Kconfig.stropts | ||
Kconfig.sysconf | ||
Kconfig.syslog | ||
Kconfig.template.pooled_ipc_type | ||
Kconfig.template.pooled_type | ||
Kconfig.template.with_logging | ||
Kconfig.template.with_url | ||
Kconfig.timer | ||
Kconfig.uname | ||
_common.c | ||
barrier.c | ||
clock.c | ||
cond.c | ||
confstr.c | ||
env.c | ||
eventfd.c | ||
fnmatch.c | ||
fs.c | ||
key.c | ||
mqueue.c | ||
mutex.c | ||
nanosleep.c | ||
net.c | ||
perror.c | ||
posix_clock.h | ||
posix_internal.h | ||
pthread.c | ||
pthread_sched.h | ||
rwlock.c | ||
sched.c | ||
semaphore.c | ||
signal.c | ||
sleep.c | ||
spinlock.c | ||
stropts.c | ||
sysconf.c | ||
syslog.c | ||
timer.c | ||
uname.c |