[coreboot-gerrit] New patch to review for coreboot: 22489d1 vboot: add vbnv_flash as template

Aaron Durbin (adurbin@google.com) gerrit at coreboot.org
Mon Mar 23 23:42:08 CET 2015


Aaron Durbin (adurbin at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8886

-gerrit

commit 22489d11179af1c01417f0339fa1d2f659f99b02
Author: Daisuke Nojiri <dnojiri at chromium.org>
Date:   Wed Oct 8 11:32:23 2014 -0700

    vboot: add vbnv_flash as template
    
    this adds a flash vbnv driver for vboot to store non-volatile data in a flash
    storage.
    
    BUG=chrome-os-partner:32774
    BRANCH=none
    TEST=Built samus, veyron pinky, and cosmos
    Signed-off-by: Daisuke Nojiri <dnojiri at chromium.org>
    
    Original-Change-Id: If5fc1b779722528134ad283fa030f150b3bab55f
    Original-Reviewed-on: https://chromium-review.googlesource.com/222258
    Original-Reviewed-by: Daisuke Nojiri <dnojiri at chromium.org>
    Original-Commit-Queue: Daisuke Nojiri <dnojiri at chromium.org>
    Original-Tested-by: Daisuke Nojiri <dnojiri at chromium.org>
    (cherry picked from commit 1916da67123680d379d8926380d797cf466b7994)
    
    Change-Id: If5ff3542cc14139ec0b02cf5661c42a1b02da23e
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/vendorcode/google/chromeos/Kconfig      |  5 +++++
 src/vendorcode/google/chromeos/Makefile.inc |  5 ++++-
 src/vendorcode/google/chromeos/vbnv_flash.c | 28 ++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/src/vendorcode/google/chromeos/Kconfig b/src/vendorcode/google/chromeos/Kconfig
index 3ee9243..668cbd0 100644
--- a/src/vendorcode/google/chromeos/Kconfig
+++ b/src/vendorcode/google/chromeos/Kconfig
@@ -62,6 +62,11 @@ config CHROMEOS_VBNV_EC
 	help
 	  VBNV is stored in EC
 
+config CHROMEOS_VBNV_FLASH
+	def_bool n
+	help
+	  VBNV is stored in flash storage
+
 config CHROMEOS_RAMOOPS
 	bool "Reserve space for Chrome OS ramoops"
 	default y
diff --git a/src/vendorcode/google/chromeos/Makefile.inc b/src/vendorcode/google/chromeos/Makefile.inc
index 7e98860..b263c9a 100644
--- a/src/vendorcode/google/chromeos/Makefile.inc
+++ b/src/vendorcode/google/chromeos/Makefile.inc
@@ -109,7 +109,10 @@ else
 verstage-y += verstub.c
 endif
 verstage-y += verstage.c fmap.c chromeos.c
-verstage-y += antirollback.c vbnv_ec.c
+verstage-y += antirollback.c
+verstage-$(CONFIG_CHROMEOS_VBNV_CMOS) += vbnv_cmos.c
+verstage-$(CONFIG_CHROMEOS_VBNV_EC) += vbnv_ec.c
+verstage-$(CONFIG_CHROMEOS_VBNV_FLASH) += vbnv_flash.c
 romstage-y += vboot_handoff.c
 
 VB_FIRMWARE_ARCH := $(ARCHDIR-$(ARCH-VERSTAGE-y))
diff --git a/src/vendorcode/google/chromeos/vbnv_flash.c b/src/vendorcode/google/chromeos/vbnv_flash.c
new file mode 100644
index 0000000..1271777
--- /dev/null
+++ b/src/vendorcode/google/chromeos/vbnv_flash.c
@@ -0,0 +1,28 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2014 The ChromiumOS Authors.  All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#include "chromeos.h"
+
+void read_vbnv(uint8_t *vbnv_copy)
+{
+}
+
+void save_vbnv(const uint8_t *vbnv_copy)
+{
+}



More information about the coreboot-gerrit mailing list