aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDan Ehrenberg <dehrenberg@chromium.org>2014-10-07 14:55:37 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-15 00:09:34 +0000
commit5dc75d16b6d5cb0ebc677e6572a2559c6157b8e4 (patch)
tree1e4aa368d0b787ef3ec535cc541b97c856031efb /Makefile
parentaaa325727a19366f40c84d45bfdbfd2e4fa92de0 (diff)
downloadvboot_reference-5dc75d16b6d5cb0ebc677e6572a2559c6157b8e4.tar.gz
vboot: new streaming APIs
This patch adds three functions called from vboot into depthcharge to support NAND. NAND needs to stream rather than be accessed randomly in order to skip bad blocks. The intended flow from vboot1 is: - Read the GPT from a NAND disk handle, and depthcharge will silently fill it in with reads from from SPI - When a partition is selected, open a stream on the volume to access NAND - Sequentially read the NAND partition - Close the NAND stream This can be done multiple times when trying different partitions. The stream is associated with the GPT by reading/opening a stream from the same disk handle. This patch includes stub implementations by rspangler to translate the stream calls to block device calls. To reduce vboot code duplication, this flow will be done for all media types eventually, but a STREAMING flag is included to ease the transition. The draft depthcharge code can be found at https://chromium-review.googlesource.com/#/c/222312/ BUG=chromium:403432 TEST=stub implementations pass unit tests; together with upcoming depthcharge and vboot code, actually boots a kernel. This compiles by itself. BRANCH=none Change-Id: I660a89594390c72c2ef6ea2564367ce62bd90cf2 Reviewed-on: https://chromium-review.googlesource.com/221992 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Daniel Ehrenberg <dehrenberg@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2f7db8c0..a3592ab7 100644
--- a/Makefile
+++ b/Makefile
@@ -323,7 +323,8 @@ VBSF_SRCS += \
VBSLK_SRCS += \
firmware/stub/vboot_api_stub.c \
- firmware/stub/vboot_api_stub_disk.c
+ firmware/stub/vboot_api_stub_disk.c \
+ firmware/stub/vboot_api_stub_stream.c
FWLIB2_SRCS += \
firmware/2lib/2stub.c