mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 10:00:51 +00:00
Add build information (date/time/builder) which can be displayed at the EC console. Generate a version from the board name and the branch tag. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chromium-os:27013 TEST=on BDS, run version command on the console. inspect the built binary. Change-Id: Idb1f68898ba6b811d02919f17ab4536ed9f8934a
21 lines
547 B
C
21 lines
547 B
C
/* Copyright (c) 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.
|
|
*/
|
|
|
|
/* Embed firmware version number in the binary */
|
|
|
|
#include <stdint.h>
|
|
#include "ec_version.h"
|
|
#include "version.h"
|
|
|
|
const struct version_struct version_data
|
|
__attribute__((section(".rodata.ver"))) = {
|
|
CROS_EC_VERSION_COOKIE1,
|
|
CROS_EC_VERSION,
|
|
CROS_EC_VERSION_COOKIE2
|
|
};
|
|
|
|
const char build_info[] __attribute__((section(".rodata.buildinfo"))) =
|
|
CROS_EC_BUILD_INFO;
|