[PATCH 1/2] fdtgrep: Correct alignment of struct section

Simon Glass sjg at chromium.org
Fri Dec 17 17:46:16 CET 2021


When outputting a devicetree we should not align the struct section to a
16-byte boundary. The normal position is fine, which is 8-byte aligned.

This avoids leaving adding 8 extra zero bytes in the output tree in the
case where the reserved section is empty (i.e has 16 zero bytes).

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/fdtgrep.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list