mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 18:59:44 +00:00
b87064c249
It is useful to be able to access the size of an image in SPL, with something like: binman_sym_declare(unsigned long, u_boot_any, size); ... ulong u_boot_size = binman_sym(ulong, u_boot_any, size); Add support for this and update the tests. Signed-off-by: Simon Glass <sjg@chromium.org>
14 lines
435 B
C
14 lines
435 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 2017 Google, Inc
|
|
*
|
|
* Simple program to create some binman symbols. This is used by binman tests.
|
|
*/
|
|
|
|
#define CONFIG_BINMAN
|
|
#include <binman_sym.h>
|
|
|
|
binman_sym_declare(unsigned long, u_boot_spl, offset);
|
|
binman_sym_declare(unsigned long long, u_boot_spl2, offset);
|
|
binman_sym_declare(unsigned long, u_boot_any, image_pos);
|
|
binman_sym_declare(unsigned long, u_boot_any, size);
|