]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootm: Pass image buffer to boot_get_fdt()
authorSimon Glass <sjg@chromium.org>
Sat, 18 Nov 2023 21:05:09 +0000 (14:05 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 16:51:24 +0000 (11:51 -0500)
commitba5e3f7f7825169d95a17cc4929143f522e82868
treec57552b53a29e0b31a727d14bff46c3f28bedb16
parent972d524893e4635ff1ac4286a870cda2dd3fc301
bootm: Pass image buffer to boot_get_fdt()

Rather than having boot_get_fdt() calculate this, move the calculation
into the caller. This removes the access to argv[0] in this function,
so we can later refactor it to just accept argv[2] instead of the whole
argv[].

Move the function comment to the header file and fix the u8 argument,
while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/bootm.c
boot/image-fdt.c
include/image.h