diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2017-09-05 04:19:37 +0300 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-09-19 00:53:56 +0300 |
commit | 5e44489bc19dad344e0019f4a6926aa5f29b4456 (patch) | |
tree | 1cc096ca1990277c716b0285a4717683e695be31 /cmd/bootefi.c | |
parent | d6507e6fd9e0a6f1a8dd28c18cd320c1f861269e (diff) | |
download | u-boot-5e44489bc19dad344e0019f4a6926aa5f29b4456.tar.xz |
efi_loader: rename __efi_hello_world_*
In scripts/Makefile.lib we build section including helloworld.efi.
This allows to load the EFI binary with command 'bootefi hello'.
scripts/Makefile.lib contains explicit references to strings
containing helloworld and hello_world. This makes it impossible
to generalize the coding to accomodate additional built in
EFI binaries.
Let us rename the variables __efi_hello_world_* to
__efi_helloworld_*.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd/bootefi.c')
-rw-r--r-- | cmd/bootefi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index c65c619d63..ffd50ba159 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -297,14 +297,14 @@ static int do_bootefi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) return CMD_RET_USAGE; #ifdef CONFIG_CMD_BOOTEFI_HELLO if (!strcmp(argv[1], "hello")) { - ulong size = __efi_hello_world_end - __efi_hello_world_begin; + ulong size = __efi_helloworld_end - __efi_helloworld_begin; saddr = env_get("loadaddr"); if (saddr) addr = simple_strtoul(saddr, NULL, 16); else addr = CONFIG_SYS_LOAD_ADDR; - memcpy((char *)addr, __efi_hello_world_begin, size); + memcpy((char *)addr, __efi_helloworld_begin, size); } else #endif { |