summaryrefslogtreecommitdiff
path: root/include/version.h
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2021-01-05 23:20:50 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-07 19:22:12 +0000
commitd541e580f5db52b737a2d7a48046afdd9419d7d6 (patch)
treeb06bd54f937773364d14b10c14e637bf185ea5e0 /include/version.h
parentc3981e9ec46b0bb839b06a898bb0e99b760b3058 (diff)
downloadchrome-ec-d541e580f5db52b737a2d7a48046afdd9419d7d6.tar.gz
version: Rename version.h to cros_version.h
This change simply moves the include/version.h file over to avoid a naming collision with zephyr's version.h. BRANCH=none BUG=b:167392037 TEST=make buildall -j Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Ib41b3c21817d5f81e713d3b550bc46a0d1c55cf8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2612772 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'include/version.h')
-rw-r--r--include/version.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/include/version.h b/include/version.h
deleted file mode 100644
index 0d3e777dc5..0000000000
--- a/include/version.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* Copyright 2012 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* Version number for Chrome EC */
-
-#ifndef __CROS_EC_VERSION_H
-#define __CROS_EC_VERSION_H
-
-#include "common.h"
-#include "system.h"
-
-#define CROS_EC_IMAGE_DATA_COOKIE1 0xce778899
-#define CROS_EC_IMAGE_DATA_COOKIE2 0xceaabbdd
-
-struct image_data {
- uint32_t cookie1;
- char version[32];
- uint32_t size;
- int32_t rollback_version;
- uint32_t cookie2;
-} __packed;
-
-extern const struct image_data current_image_data;
-extern const char build_info[];
-extern const char __image_data_offset[];
-extern const void *__image_size;
-
-/**
- * Get the number of commits of an image
- *
- * @return Number of commits in integer or 0 on error
- */
-int ver_get_num_commits(enum ec_image copy);
-#endif /* __CROS_EC_VERSION_H */