1# Copyright (c) 2023 Yonatan Schachter
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig BINDESC_DEFINE_VERSION
5	bool "Version binary descriptors"
6	help
7	  Add the version binary descriptors
8
9if BINDESC_DEFINE_VERSION
10
11config BINDESC_KERNEL_VERSION_STRING
12	bool "Kernel version string"
13	help
14	  The kernel version string, such as "3.4.0"
15
16config BINDESC_KERNEL_VERSION_MAJOR
17	bool "Kernel version major"
18	help
19	  The major version number, such as 3 in 3.4.0
20
21config BINDESC_KERNEL_VERSION_MINOR
22	bool "Kernel version minor"
23	help
24	  The minor version number, such as 4 in 3.4.0
25
26config BINDESC_KERNEL_VERSION_PATCHLEVEL
27	bool "Kernel version patchlevel"
28	help
29	  The patchlevel version number, such as 0 in 3.4.0
30
31config BINDESC_KERNEL_VERSION_NUMBER
32	bool "Kernel version number"
33	help
34	  The kernel version as binary coded decimal, computed as
35	  (major << 16 | minor << 8 | patchlevel). For example,
36	  3.4.0 would be represented as 0x30400
37
38config BINDESC_APP_VERSION_STRING
39	bool "App version string"
40	help
41	  The app version string, such as "1.0.0"
42
43config BINDESC_APP_VERSION_MAJOR
44	bool "App version major"
45	help
46	  The app major version number, such as 1 in 1.0.0
47
48config BINDESC_APP_VERSION_MINOR
49	bool "App version minor"
50	help
51	  The app minor version number, such as 0 in 1.0.0
52
53config BINDESC_APP_VERSION_PATCHLEVEL
54	bool "App version patchlevel"
55	help
56	  The app patchlevel version number, such as 0 in 1.0.0
57
58config BINDESC_APP_VERSION_NUMBER
59	bool "App version number"
60	help
61	  The app version as binary coded decimal, computed as
62	  (major << 16 | minor << 8 | patchlevel). For example,
63	  1.0.0 would be represented as 0x10000
64
65endif # BINDESC_DEFINE_VERSION
66