fit: Add kaslr-seed to chosen devicetree

Call into the TPM's random number generator code to generate 8 bytes
worth of random data to pass as the kernel address space layout
randomization (KASLR) seed through DT.

CQ-DEPEND=CL:1327187
BRANCH=None
BUG=None
TEST=Boot cheza without kaslr support and hexdump
/sys/firmware/devicetree/base/chosen/kaslr-seed and see random bytes

Change-Id: Iafd6490cf3e9a52bd12b621a292ceb41c1ad97f0
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1328149
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Julius Werner <jwerner@chromium.org>
1 file changed