This function requires access to env.h but it is a lot to include just
for the env_get() function. It eventually pulls in linux/byteorder which
causes a conflict with exfat which has its own byteorder functions.
Move the function to a C file instead.
Add includes to some other files to keep the build working.
Series-to: u-boot
Series-cc: trini
Series-cc: Jerome Forissier <jerome.forissier@linaro.org>
Series-version: 2
Cover-changes: 2
- Add patches for other files exposed by this change
Cover-letter:
Deal with exfat versus byteorder
Since exfat has its own byteorder functions we need to be careful about
including the normal U-Boot byteorder headers in code included by exfat.
One chain for include/linux/byteorder/little_endian.h is like this:
In file included from arch/sandbox/include/asm/byteorder.h:19,
from arch/sandbox/include/asm/byteorder.h:19,
from include/compiler.h:132,
from include/env.h:12,
from include/command.h:13,
from include/net-common.h:7,
from include/net.h:6,
from include/efi.h:23,
from include/blk.h:12,
from include/part.h:9,
from include/fs_internal.h:11,
from fs/exfat/io.c:52:
This series tidies things up so that efi.h can include net.h as
required.
END
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
If there is no network support it doesn't make sense to try to read
these variables. Add a condition to handle this.
This is needed so that env_get_ip() is not called when it is no-longer
a static inline, but included in net/ code.
Signed-off-by: Simon Glass <sjg@chromium.org>
This file reads from the environment but does not include the correct
header. Update it.
Drop the unnecessary config.h while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
We don't need to include command.h just for this declaration. It
eventually pulls in linux/byteorder which causes a conflict with exfat
which has its own byteorder functions.
Use a forward declaration instead.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
The bootz method is special in that it uses its own implementation of
several of the bootm states.
The existing do_bootz() function calls bootz_run() but first does a few
other things. These are missing in the direct call to bootz_run(). I
probably missed this because bootz_start() sets up its own
struct bootm_info so I assumed it was independent. While the struct
itself is independent, changes to the images member (which is a pointer)
persist.
Move the required code into bootz_run()
This change was manually tested on an rpi2 with postmarketOS added,
using standard boot and also the 'bootz' command.
Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 47eda7e80e ("boot: pxe: Use bootm_...() functions where possible")
Reported-by: Svyatoslav Ryhel <clamor95@gmail.com>
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895
2025-04-18 05:02:56 -06:00
25 changed files with 91 additions and 91 deletions
* Copyright 2019 Ramon Fried <rfried.dev@gmail.com>
*/
#include<env.h>
#include<net.h>
#include<net/pcap.h>
#include<time.h>
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.