summaryrefslogtreecommitdiff
path: root/test/build.mk
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2016-11-28 11:38:20 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-21 19:42:37 -0800
commit971e758ddec1b04b4a5479d716ec5a53ea48950f (patch)
tree489332a65ce2c781efb1692c53e81cb6fe994a20 /test/build.mk
parent0a97a6cf4bbc052e715080a9634078396645b733 (diff)
downloadchrome-ec-971e758ddec1b04b4a5479d716ec5a53ea48950f.tar.gz
Add nvmem-backed key=value variable storage
The CONFIG_FLASH_NVMEM option implements persistent, reliable storage regions in flash. This adds CONFIG_FLASH_NVMEM_VARS, which uses one of those storage regions for free-form variables. Refer to the comments in include/nvmem_vars.h and common/nvmem_vars.c for usage and implementation details. BUG=chrome-os-partner:61107 BRANCH=none TEST=make runtests This CL includes a number of new tests, specifically for this feature. No target boards use this feature yet so there's nothing to test on actual hardware, but the test/nvmem_vars executable includes console commands ("get", "set", "print") to try it out. Change-Id: I8597415dc3b00a1462f5b164eeb5073129030525 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/414194 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'test/build.mk')
-rw-r--r--test/build.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/build.mk b/test/build.mk
index cc2c369c9f..54873cecf9 100644
--- a/test/build.mk
+++ b/test/build.mk
@@ -42,7 +42,7 @@ test-list-host+=bklight_lid bklight_passthru interrupt timer_dos button
test-list-host+=math_util motion_lid sbs_charging_v2 battery_get_params_smart
test-list-host+=lightbar inductive_charging usb_pd fan charge_manager
test-list-host+=charge_manager_drp_charging charge_ramp
-test-list-host+=rsa rsa3
+test-list-host+=nvmem_vars rsa rsa3
endif
battery_get_params_smart-y=battery_get_params_smart.o
@@ -68,6 +68,7 @@ math_util-y=math_util.o
motion_lid-y=motion_lid.o
mutex-y=mutex.o
nvmem-y=nvmem.o
+nvmem_vars-y=nvmem_vars.o
pingpong-y=pingpong.o
power_button-y=power_button.o
powerdemo-y=powerdemo.o