mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
0427bed63b
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>
13 lines
232 B
C
13 lines
232 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[16];
|
|
|
|
int main(void)
|
|
{
|
|
return 0;
|
|
}
|