u-boot/tools/binman/test/u_boot_binman_embed.c
Simon Glass 0427bed63b binman: Support updating the dtb in an ELF file
WIth EFI we must embed the devicetree in an ELF image so that it is loaded
as part of the executable file. We want it to include the binman
definition in there also, which in some cases cannot be created until the
ELF (u-boot) is built. Add an option to binman to support writing the
updated dtb to the ELF file u-boot.out

This is useful with the EFI app, which is always packaged as an ELF file.

Signed-off-by: Simon Glass <sjg@chromium.org>
2021-11-13 08:16:39 -07:00

13 lines
234 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2021 Google LLC
*
* Simple program to embed a devicetree. This is used by binman tests.
*/
int __attribute__((section(".mydtb"))) dtb_data[4096];
int main(void)
{
return 0;
}