global: Avoid indirect inclusion of <env.h> from <command.h>
authorTom Rini <trini@konsulko.com>
Wed, 14 May 2025 19:34:36 +0000 (13:34 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 14 May 2025 19:34:36 +0000 (13:34 -0600)
commit7894816a98f7d1484fd2be36fc8020250512a6da
treee183c42443d9886ad95e5973c7a89e25111e38dc
parentf97cfef5d9711d567bc86a7bd23a51776568c8d2
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.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Jerome Forissier <jerome.forissier@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Mark Kettenis <kettenis@openbsd.org>
Cc: Masahisa Kojima <kojima.masahisa@socionext.com>
Cc: Mattijs Korpershoek <mkorpershoek@kernel.org>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Stefan Bosch <stefan_b@posteo.net>
Cc: Tien Fong Chee <tien.fong.chee@altera.com>
Cc: Tingting Meng <tingting.meng@altera.com>
Cc: Tobias Waldekranz <tobias@waldekranz.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