summaryrefslogtreecommitdiff
path: root/chip/mec1322
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-01-31 22:13:13 -0800
committerVadim Bendebury <vbendeb@chromium.org>2017-02-01 06:36:18 +0000
commit11704ae6e9c35889ed1ec97bdaa9d42652397867 (patch)
tree12f7d873426f43c5c3d8ed84e7b7b7f1d20b199d /chip/mec1322
parent9fc399a0aaa4a12591907b498d4826a35fe4a806 (diff)
downloadchrome-ec-11704ae6e9c35889ed1ec97bdaa9d42652397867.tar.gz
Revert "version: Store image size data in version struct"
This is a dependency of the uderlyaing patch which breaks header composition of g chip based boards. This reverts commit 7cbb815732d7434f5985d3b50a869aa71ba5c507. Change-Id: I4d94647cf5cb09fd338e5a581c956df6b5d83081 Reviewed-on: https://chromium-review.googlesource.com/435551 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip/mec1322')
-rw-r--r--chip/mec1322/lfw/ec_lfw.c2
-rw-r--r--chip/mec1322/lfw/ec_lfw.ld2
2 files changed, 1 insertions, 3 deletions
diff --git a/chip/mec1322/lfw/ec_lfw.c b/chip/mec1322/lfw/ec_lfw.c
index b99d33d011..6824d10686 100644
--- a/chip/mec1322/lfw/ec_lfw.c
+++ b/chip/mec1322/lfw/ec_lfw.c
@@ -256,7 +256,7 @@ void lfw_main()
spi_enable(CONFIG_SPI_FLASH_PORT, 1);
uart_puts("littlefw ");
- uart_puts(current_image_data.version);
+ uart_puts(version_data.version);
uart_puts("\n");
switch (system_get_image_copy()) {
diff --git a/chip/mec1322/lfw/ec_lfw.ld b/chip/mec1322/lfw/ec_lfw.ld
index adb8b30bba..55b5fda390 100644
--- a/chip/mec1322/lfw/ec_lfw.ld
+++ b/chip/mec1322/lfw/ec_lfw.ld
@@ -53,6 +53,4 @@ SECTIONS
. = ORIGIN(SRAM) + LENGTH(SRAM) - 1;
BYTE(0xFF); /* emit at least a byte to make linker happy */
}
-
- __image_size = LOADADDR(.text) + SIZEOF(.text) - ORIGIN(VECTOR);
}