zephyr: add check for zephyr version
BRANCH=none
TEST=(see next CL, added check to shim/src/gpio.c and tested the build)
#include "common.h"
#include "system.h"
+#ifdef CONFIG_ZEPHYR
+#include "version.h"
+
+#define IS_ZEPHYR_VERSION(major, minor) \
+ (KERNEL_VERSION_MAJOR == (major) && KERNEL_VERSION_MINOR == (minor))
+#else
+#define IS_ZEPHYR_VERSION(major, minor) false
+#endif /* CONFIG_ZEPHYR */
+
#define CROS_EC_IMAGE_DATA_COOKIE1 0xce778899
#define CROS_EC_IMAGE_DATA_COOKIE2 0xceaabbdd
