From 6eaaafa2c32029bd9dc5fb4196fe2b22cb5b4d9b Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Fri, 21 Feb 2014 16:21:00 +0800 Subject: vendorcode: Add ChromeOS VPD parser. Copied (and unmodified) the minimal bits from ChromeOS libVPD: https://chromium.googlesource.com/chromiumos/platform/vpd Old-Change-Id: Id75d1bfd16263ac1b94c22979f9892cf7908d5e6 Signed-off-by: Hung-Te Lin Reviewed-on: https://chromium-review.googlesource.com/187411 Reviewed-by: Yung-chieh Lo (cherry picked from commit a10ca23686299f3fd5b639631242cadaa2ca9e8a) vendorcode: Update ChromeOS VPD Parser. Merge recent changes in ChromeOS VPD that allows non-memory-mapped firmware to load VPD easier and faster (ref: https://chromium-review.googlesource.com/188134 ). Old-Change-Id: I3ee0b89c703f476f3d77cdde52cc7588724f7686 Reviewed-on: https://chromium-review.googlesource.com/188743 Tested-by: Hung-Te Lin Reviewed-by: Yung-chieh Lo Reviewed-by: David Hendricks Commit-Queue: Hung-Te Lin (cherry picked from commit 03f4d521a7fa711b963b0e1822e92eac16a691b1) vendorcode: Access to ChromeOS VPD on default CBFS media. The new function "cros_vpd_gets(key, buf, size)" provides an easy and quick way to retrieve values in ChromeOS VPD section. Old-Change-Id: I38e50615e515707ffaecdc4c4fae65043541b687 Signed-off-by: Hung-Te Lin Reviewed-on: https://chromium-review.googlesource.com/187430 Reviewed-by: Yung-chieh Lo (cherry picked from commit bcd3832c06e8ed357c50f19396da21a218dc4b39) Squashed 3 related commits for a ChromeOS VPD parser. Change-Id: I4ba8fce16ea123c78d7b543c8353ab9bc1e2aa9f Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6959 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- src/vendorcode/google/chromeos/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vendorcode/google/chromeos/Makefile.inc') diff --git a/src/vendorcode/google/chromeos/Makefile.inc b/src/vendorcode/google/chromeos/Makefile.inc index b9e42da92c..d02c09ff5e 100644 --- a/src/vendorcode/google/chromeos/Makefile.inc +++ b/src/vendorcode/google/chromeos/Makefile.inc @@ -28,6 +28,8 @@ romstage-y += fmap.c ramstage-y += fmap.c ramstage-$(CONFIG_CHROMEOS_RAMOOPS) += ramoops.c smm-y += fmap.c +romstage-y += vpd_decode.c cros_vpd.c +ramstage-y += vpd_decode.c cros_vpd.c ifeq ($(MOCK_TPM),1) CFLAGS_common += -DMOCK_TPM=1 -- cgit v1.2.3