1 /* 2 * Copyright (c) 2023 Yonatan Schachter 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/kernel.h> 8 #include <zephyr/bindesc.h> 9 10 /* Include generated header */ 11 #include <bindesc_build_time.h> 12 13 #if defined(CONFIG_BINDESC_BUILD_TIME_YEAR) 14 BINDESC_UINT_DEFINE(build_time_year, BINDESC_ID_BUILD_TIME_YEAR, BUILD_TIME_YEAR); 15 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_YEAR) */ 16 17 #if defined(CONFIG_BINDESC_BUILD_TIME_MONTH) 18 BINDESC_UINT_DEFINE(build_time_month, BINDESC_ID_BUILD_TIME_MONTH, BUILD_TIME_MONTH); 19 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_MONTH) */ 20 21 #if defined(CONFIG_BINDESC_BUILD_TIME_DAY) 22 BINDESC_UINT_DEFINE(build_time_day, BINDESC_ID_BUILD_TIME_DAY, BUILD_TIME_DAY); 23 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_DAY) */ 24 25 #if defined(CONFIG_BINDESC_BUILD_TIME_HOUR) 26 BINDESC_UINT_DEFINE(build_time_hour, BINDESC_ID_BUILD_TIME_HOUR, BUILD_TIME_HOUR); 27 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_HOUR) */ 28 29 #if defined(CONFIG_BINDESC_BUILD_TIME_MINUTE) 30 BINDESC_UINT_DEFINE(build_time_minute, BINDESC_ID_BUILD_TIME_MINUTE, BUILD_TIME_MINUTE); 31 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_MINUTE) */ 32 33 #if defined(CONFIG_BINDESC_BUILD_TIME_SECOND) 34 BINDESC_UINT_DEFINE(build_time_second, BINDESC_ID_BUILD_TIME_SECOND, BUILD_TIME_SECOND); 35 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_SECOND) */ 36 37 #if defined(CONFIG_BINDESC_BUILD_TIME_UNIX) 38 BINDESC_UINT_DEFINE(build_time_unix, BINDESC_ID_BUILD_TIME_UNIX, BUILD_TIME_UNIX); 39 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_UNIX) */ 40 41 #if defined(CONFIG_BINDESC_BUILD_DATE_TIME_STRING) 42 BINDESC_STR_DEFINE(build_date_time_string, BINDESC_ID_BUILD_DATE_TIME_STRING, 43 BUILD_DATE_TIME_STRING); 44 #endif /* defined(CONFIG_BINDESC_BUILD_DATE_TIME_STRING) */ 45 46 #if defined(CONFIG_BINDESC_BUILD_DATE_STRING) 47 BINDESC_STR_DEFINE(build_date_string, BINDESC_ID_BUILD_DATE_STRING, BUILD_DATE_STRING); 48 #endif /* defined(CONFIG_BINDESC_BUILD_DATE_STRING) */ 49 50 #if defined(CONFIG_BINDESC_BUILD_TIME_STRING) 51 BINDESC_STR_DEFINE(build_time_string, BINDESC_ID_BUILD_TIME_STRING, BUILD_TIME_STRING); 52 #endif /* defined(CONFIG_BINDESC_BUILD_TIME_STRING) */ 53