binman: Add a function to create a sample ELF file
authorSimon Glass <sjg@chromium.org>
Mon, 8 Jul 2019 19:18:34 +0000 (13:18 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 24 Jul 2019 03:27:57 +0000 (20:27 -0700)
commitf58558a5ae785fdbdaadbe172a2bb86158f01d4f
tree81ba045929b780fe38ec141057a8d629986a49dd
parent45cb9d80ae274fe46ed64c76cc87a36fc994a182
binman: Add a function to create a sample ELF file

It is useful to create an ELF file for testing purposes, with just the
right attributes used by the test. Add a function to handle this, along
with a test that it works correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/elf.py
tools/binman/elf_test.py