grub-lakitu: REDHAT: MASTER-SB: Rework linux16 command

We want a single buffer that contains the entire kernel image in order to
perform a TPM measurement. Allocate one and copy the entire kernel int it
before pulling out the individual blocks later on.

(cherry picked from commit 050368d2a8623532cad8c05a6238a73923e24d70)
(from master-sb branch of https://github.com/rhboot/grub2)

BUG=b:69569602
TEST=TBD

Change-Id: I897cc57765516ddde689cd2cb7bc2b9a39870c69
Reviewed-on: https://chromium-review.googlesource.com/945896
Reviewed-by: Edward Jee <edjee@google.com>
Commit-Queue: Edward Jee <edjee@google.com>
Tested-by: Edward Jee <edjee@google.com>
Trybot-Ready: Edward Jee <edjee@google.com>
1 file changed
tree: c6688dc4725904f94dae3274d2b35d35b83b95e0
  1. COMMIT-QUEUE.ini
  2. README
  3. grub-lakitu/