Signed-off-by: Bence Cs <csokas.be...@prolan.hu> --- include/version.h | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/include/version.h b/include/version.h index 5955b21e89..a8753deadf 100644 --- a/include/version.h +++ b/include/version.h @@ -11,4 +11,7 @@ #include "generated/version_autogenerated.h" #endif +#define U_BOOT_VERSION_CODE(num, patch) (((num) << 8) | ((patch) & 0xFF)) +#define U_BOOT_CURRENT_VERSION_CODE U_BOOT_VERSION_CODE(U_BOOT_VERSION_NUM, U_BOOT_VERSION_NUM_PATCH) + #endif /* __VERSION_H__ */ -- 2.25.1