global: Avoid indirect inclusion of <env.h> from <command.h>
authorTom Rini <trini@konsulko.com>
Wed, 14 May 2025 22:46:03 +0000 (16:46 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 May 2025 14:29:16 +0000 (08:29 -0600)
commitdcb7d927d181b5798c6fd4a1b1650cd821e3b6ed
tree53a9d2469173205baee1767d212165cd187887e4
parentd0e1ee6590420ec13cfe3fa373679054ac08a184
global: Avoid indirect inclusion of <env.h> from <command.h>

The include file <command.h> does not need anything from <env.h>.
Furthermore, include/env.h itself includes other headers which can lead
to longer indirect inclusion paths. To prepare to remove <env.h> from
<command.h> fix all of the places which had relied on this indirect
inclusion to instead include <env.h> directly.

Reviewed-by: Mattijs Korpershoek <mkorpershoek@kernel.org> # android, bcb
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> # spawn
Signed-off-by: Tom Rini <trini@konsulko.com>
51 files changed:
arch/arm/cpu/armv8/fsl-layerscape/fdt.c
arch/arm/mach-apple/board.c
arch/arm/mach-k3/r5/common.c
arch/arm/mach-socfpga/board.c
arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c
board/liebherr/mccmon6/spl.c
board/siemens/common/board_am335x.c
board/socionext/developerbox/fwu_plat.c
boot/bootmeth_android.c
cmd/abootimg.c
cmd/adc.c
cmd/armflash.c
cmd/bcb.c
cmd/blkmap.c
cmd/bootflow.c
cmd/booti.c
cmd/bootmeth.c
cmd/broadcom/nitro_image_load.c
cmd/extension_board.c
cmd/hash.c
cmd/mbr.c
cmd/mem.c
cmd/mmc.c
cmd/sandbox/exception.c
cmd/seama.c
cmd/spawn.c
cmd/upl.c
cmd/x86/zboot.c
common/usb.c
drivers/power/axp221.c
drivers/video/nexell_display.c
lib/efi_loader/efi_firmware.c
test/boot/bootdev.c
test/boot/bootflow.c
test/boot/bootm.c
test/boot/bootmeth.c
test/boot/measurement.c
test/boot/upl.c
test/cmd/fdt.c
test/cmd/hash.c
test/cmd/mem_search.c
test/cmd/setexpr.c
test/common/test_autoboot.c
test/dm/blkmap.c
test/dm/button.c
test/dm/fastboot.c
test/dm/part.c
test/env/fdt.c
test/hush/dollar.c
test/hush/if.c
test/hush/loop.c