]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: Rename environment.h to env_internal.h
authorSimon Glass <sjg@chromium.org>
Fri, 2 Aug 2019 15:44:25 +0000 (09:44 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 11 Aug 2019 23:27:31 +0000 (19:27 -0400)
This file contains lots of internal details about the environment. Most
code can include env.h instead, calling the functions there as needed.

Rename this file and add a comment at the top to indicate its internal
nature.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
[trini: Fixup apalis-tk1.c]
Signed-off-by: Tom Rini <trini@konsulko.com>
75 files changed:
api/api.c
arch/arm/cpu/armv8/fsl-layerscape/cpu.c
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/x86/cpu/qemu/e820.c
board/Arcturus/ucp1020/spl.c
board/amlogic/w400/w400.c
board/birdland/bav335x/board.c
board/bosch/guardian/board.c
board/bosch/shc/board.c
board/buffalo/lsxl/lsxl.c
board/freescale/b4860qds/spl.c
board/freescale/c29xpcie/spl.c
board/freescale/ls1012afrdm/ls1012afrdm.c
board/freescale/ls1012aqds/ls1012aqds.c
board/freescale/ls1012ardb/ls1012ardb.c
board/freescale/ls1028a/ls1028a.c
board/freescale/ls1088a/ls1088a.c
board/freescale/ls2080a/ls2080a.c
board/freescale/ls2080aqds/ls2080aqds.c
board/freescale/ls2080ardb/ls2080ardb.c
board/freescale/lx2160a/lx2160a.c
board/freescale/p1010rdb/spl.c
board/freescale/p1022ds/spl.c
board/freescale/p1_p2_rdb_pc/spl.c
board/freescale/t102xqds/spl.c
board/freescale/t102xrdb/spl.c
board/freescale/t104xrdb/spl.c
board/freescale/t208xqds/spl.c
board/freescale/t208xrdb/spl.c
board/freescale/t4qds/spl.c
board/freescale/t4rdb/spl.c
board/gardena/smart-gateway-mt7688/board.c
board/phytec/phycore_rk3288/phycore-rk3288.c
board/renesas/alt/alt.c
board/renesas/gose/gose.c
board/renesas/koelsch/koelsch.c
board/renesas/lager/lager.c
board/renesas/porter/porter.c
board/renesas/silk/silk.c
board/renesas/stout/stout.c
board/st/stm32mp1/stm32mp1.c
board/sunxi/board.c
board/tcl/sl50/board.c
board/ti/am335x/board.c
board/toradex/apalis-tk1/apalis-tk1.c
cmd/nvedit.c
common/board_f.c
common/board_r.c
common/console.c
drivers/mtd/cfi_flash.c
drivers/serial/serial-uclass.c
drivers/serial/serial.c
env/callback.c
env/common.c
env/eeprom.c
env/embedded.c
env/env.c
env/ext4.c
env/fat.c
env/flags.c
env/flash.c
env/mmc.c
env/nand.c
env/nowhere.c
env/nvram.c
env/onenand.c
env/remote.c
env/sata.c
env/sf.c
env/ubi.c
include/common.h
include/env_internal.h [moved from include/environment.h with 93% similarity]
lib/efi_loader/efi_variable.c
net/net.c
tools/envcrc.c

index cd7487fde26aafa22cd81b8a0c37cce5d08d7d12..bc9454eb4b631e81f78f9fd033c24b019e77fb7f 100644 (file)
--- a/api/api.c
+++ b/api/api.c
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <env.h>
 #include <malloc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/types.h>
 #include <api_public.h>
 
index 9577ada11344e098047e3eeb7e38d46d43fdb66c..26f4fdacdb829019e6a5832228becc8bcca5027f 100644 (file)
@@ -33,7 +33,7 @@
 #include <fsl_qbman.h>
 
 #ifdef CONFIG_TFABOOT
-#include <environment.h>
+#include <env_internal.h>
 #ifdef CONFIG_CHAIN_OF_TRUST
 #include <fsl_validate.h>
 #endif
index 00c705f74eb2f397903f0443fb650b85705cc35d..ca8005992ae701044c39b0b2a1e51a72e9683ce9 100644 (file)
@@ -27,7 +27,7 @@
 #endif
 #include <fsl_immap.h>
 #ifdef CONFIG_TFABOOT
-#include <environment.h>
+#include <env_internal.h>
 DECLARE_GLOBAL_DATA_PTR;
 #endif
 
index 7b3bc7db5e4a87276d0c40dca73b21ba99fa7100..e682486547146ae905ec291189ba2477ea07360a 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include <common.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/e820.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index f3b7d99878c66478b9e83a6fc35f425d875f7656..9314fabdf2d97744cf90fe24e2fd0d9293806fb9 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
index 4737865367e761324c728bbb6fb8d11e2fa2d4e2..e60dc3a622e361ff68c14a73b821bf31e557a554 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/io.h>
 #include <asm/arch/eth.h>
 
index 9e64cbbc827b760d7f9790540fd328f4690415a8..8811583ac628507cc8e1851ad6aeb75237ffb07f 100644 (file)
@@ -28,7 +28,7 @@
 #include <cpsw.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "board.h"
 
index bc3c6d229c2abcaba839c7545e7171ac7f14ae29..ec0c4a17f635b0306a8f2c45efe014bc4b311cd0 100644 (file)
@@ -11,7 +11,7 @@
 #include <common.h>
 #include <cpsw.h>
 #include <dm.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <i2c.h>
 #include <miiphy.h>
index 358118f75774e77902e6140b7515b1fe88c56a71..a96fdef992d2370660dc1f51001c480f4a241d0b 100644 (file)
@@ -31,7 +31,7 @@
 #include <miiphy.h>
 #include <cpsw.h>
 #include <power/tps65217.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "mmc.h"
 #include "board.h"
index b2ccb83c8a86db1c51c5701519a5e9fb53e7294b..95d3a5e1f579dded27c9c59f400eca7e3724d61b 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <net.h>
 #include <malloc.h>
 #include <netdev.h>
index d9aa57f41c3950c194ece878788d5686ff8492a0..6dfc0c73eca9ecdd80ed8e245389004dd4d002e7 100644 (file)
@@ -5,7 +5,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/spl.h>
 #include <malloc.h>
 #include <ns16550.h>
index 5db60d8ed976b4d97d9693adda51550bb4bee161..29040962cf1b890b75bc4aea7b17c2920007e067 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
index b4c611e19f4304ffd3bc3480f70a2df598b556a9..31e41ce169679c3b6023f0939a11b4ec1c1bd215 100644 (file)
@@ -15,7 +15,7 @@
 #include <asm/arch/soc.h>
 #include <fsl_esdhc.h>
 #include <hwconfig.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fsl_mmdc.h>
 #include <netdev.h>
 #include <fsl_sec.h>
index a862fe6a93d18664b5f37d078409e1d6c77c09eb..86c72ee357ebeca405c9aca5138ea319014efa61 100644 (file)
@@ -18,7 +18,7 @@
 #include <ahci.h>
 #include <hwconfig.h>
 #include <mmc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <scsi.h>
 #include <fm_eth.h>
 #include <fsl_esdhc.h>
index f648a9040b6d5e8d43725eb74d30e7e353a6ec32..e4527c19b88af522e9af950977bd1bf3bc4b63bb 100644 (file)
@@ -18,7 +18,7 @@
 #include <mmc.h>
 #include <scsi.h>
 #include <fsl_esdhc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fsl_mmdc.h>
 #include <netdev.h>
 #include <fsl_sec.h>
index e5de4eb70c4b6cd705f899529ce0fa1f00f6ded7..4aa7cec9ce989f27bc2f29b42eeff91ab852a23c 100644 (file)
@@ -11,7 +11,7 @@
 #include <hwconfig.h>
 #include <fdt_support.h>
 #include <linux/libfdt.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/arch-fsl-layerscape/soc.h>
 #include <i2c.h>
 #include <asm/arch/soc.h>
index a1c9eb3f468b9935cae10bdd90c18b50ca5699cd..f0bea7327db3a817c53e8048fe83c57d1b44eccb 100644 (file)
@@ -15,7 +15,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/arch-fsl-layerscape/soc.h>
 #include <asm/arch/ppa.h>
 #include <hwconfig.h>
index cc1822d0f5ce4c3001bee792d952417a5d3e09b4..413a698511bda34d77f30e26f1f95eed00da3c38 100644 (file)
@@ -12,7 +12,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/arch/soc.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index e9e0999a1867e24fc5403c567e622be7febd60bf..e9c055745f6c47e387dbf17f2bfdf02398aaa1ca 100644 (file)
@@ -13,7 +13,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <i2c.h>
 #include <rtc.h>
 #include <asm/arch/soc.h>
index a278e2fc117fdb7233c4a5331385b706bd974f72..2b2dbbb0ce5486027794246f4bae26d15520036b 100644 (file)
@@ -15,7 +15,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <efi_loader.h>
 #include <i2c.h>
 #include <asm/arch/mmu.h>
index 3b4cb86692dfaf740ee21052834a9c34bc3ff611..f3885fa8b7f84ebe76920f87db6af7d4b06da853 100644 (file)
@@ -16,7 +16,7 @@
 #include <fdt_support.h>
 #include <linux/libfdt.h>
 #include <fsl-mc/fsl_mc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <efi_loader.h>
 #include <asm/arch/mmu.h>
 #include <hwconfig.h>
index 95f8b5837ddecf38889fc56b65374b80167f0a6b..8f050b3947d18ae457a2ddc4560cb1ca25a85d4e 100644 (file)
@@ -5,7 +5,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
index 92fd199876b93fca903ffbc4997a53e413b5ce22..06273f1d20e6d919abf302eabaa4059a2072ef20 100644 (file)
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
index 9d7b5eff6f105e7ffa31d630d7062e2b1ab52ecf..dbf9f739b28f6a0597f09be351e4bd553f92e81f 100644 (file)
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <ns16550.h>
 #include <malloc.h>
 #include <mmc.h>
index 1b58174ed1733d9c3f42eb3472dd47016f3b20d9..3008f0919f1759db548505fc5a0e159482cf55bc 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
index a226d4b5b536f20945d0eacd4be5d9c837711a5c..029e3d212ca6366ad7b8d4b15d9580a4479d6bf2 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
index 58a7376e7fbbc6f0d6ebd2c9580ccf3f9741102a..7b0eb8edf51dace12e758ce3827e26f429e15679 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
index 27f3c4c84f001990b35cbf4cb75b3a3f917eb0e1..9695dfc2e2ed5fcca8c7b9a53d7f840e2f19bfb6 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
index ecb1e0d73cfbae51e6edfdb88bd71be6197dd19b..ca7d6a28e052a02747c09b0b2ab5870a081b4de0 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <ns16550.h>
 #include <nand.h>
index 16cc29eaa629b424e136e5d919a32a096af21bc4..7666fe7556dcc2c720c23060903ae803ae2ca7a1 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/spl.h>
 #include <malloc.h>
 #include <ns16550.h>
index cc2b2f9ffb089f2e8d90bc8706c577411112006d..a19558bd6be1e113c40aff794debf728bd6432fa 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <common.h>
 #include <console.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/spl.h>
 #include <malloc.h>
 #include <ns16550.h>
index baa3e5726c37231d9c8809592235bf1f3a278b09..bd494c84fc80ed0a3ffa0ac34edfc991f1d25260 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <led.h>
 #include <net.h>
 #include <spi.h>
index 7b9178e3a69c469d8c511c1ee59ea58388880311..5fcbf65b7c9767d1b16f00f7015055634d89c18e 100644 (file)
@@ -8,7 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <i2c.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
index 77979704be2bf7b2c55435c27dd817c848b24a57..10ef7f931b1f19034a965ca73d6f14376b601734 100644 (file)
@@ -10,7 +10,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
index bffa85c232519e10d96494ff2149dc3928234395..f86c9f1a63501b747a36433e8a9e6c7df5b53e6e 100644 (file)
@@ -10,7 +10,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
index 1bb3b492e293d77b5e26b19206741fe06e3cb2f4..841d337f4d3cad395ae61236b7c3fb2d31788d6f 100644 (file)
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
index bda3295badb348d8914930bdd4ba42cdeb44ac63..3cb1a56142a900f1271f3bb287189c46734c6165 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
index d3afc2a40049e5217af02039d978ac13f06c2480..86f79da7fdb4f76b4d6019b6cf3d92caee203c6f 100644 (file)
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
index bda6a414e65aaeee21605fbd39e950061f1ffbe1..25221e3c55ccedf8b8f1d8102a88f2e45a9d909f 100644 (file)
@@ -11,7 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
index 95b5711fdb838d83ae1b5e3e72403fe449fb623c..0a0ff5ff76d29a4af51bb5dc3ca2c9af25fddad1 100644 (file)
@@ -14,7 +14,7 @@
 #include <netdev.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
index 1f9251d7a0d085fa3fdf86e1f7c2e411b178d05e..279c7b77979987006010f518541fbdc242b9d86e 100644 (file)
@@ -9,7 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <g_dnl.h>
 #include <generic-phy.h>
 #include <i2c.h>
index bb425cbf66da3ed1c9029ba5f5e2bbfc1823d0f1..e3b2d13892c89ad0c6292ac6b20185c0c4fcadd7 100644 (file)
@@ -30,7 +30,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <u-boot/crc.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/libfdt.h>
 #include <nand.h>
 #include <net.h>
index a9c9d377b4fc937cc9d352a5abaae53bbe0edd9c..c7eed319461a20c9b626257484dc8e2735ac635f 100644 (file)
@@ -28,7 +28,7 @@
 #include <cpsw.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "board.h"
 
index 54adcd510de49a5d68c505b0b74d650a552123b2..7eaa6cd96d6017d8f765c57fb64b5531942204cc 100644 (file)
@@ -34,7 +34,7 @@
 #include <cpsw.h>
 #include <power/tps65217.h>
 #include <power/tps65910.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 #include "../common/board_detect.h"
 #include "board.h"
index beb7e10dfedfa64b19d0a12fcc24d34b7570d7f4..bc98858ae023caeb738d422cd2d3cbe6b05f20cc 100644 (file)
@@ -10,7 +10,7 @@
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/pinmux.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <pci_tegra.h>
 #include <power/as3722.h>
 #include <power/pmic.h>
index 8e8572235cb70250b52b1235679420f93bb86b39..1cb0bc1460b951c146078d007cd8a4d62db30e53 100644 (file)
@@ -28,7 +28,7 @@
 #include <command.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <search.h>
 #include <errno.h>
 #include <malloc.h>
index 18937bf6f5d9b9e4474540b34992c3f23358d16a..31181a9dc4510c2b23bfc498e901479f71fb432b 100644 (file)
@@ -15,7 +15,7 @@
 #include <cpu.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fdtdec.h>
 #include <fs.h>
 #include <i2c.h>
index f4193cdbecc2eb485ad37d0448bce52a3d8a3599..1dabf5a11c2a23b64b94d56a92f8a94663e51e97 100644 (file)
@@ -19,7 +19,7 @@
 #include <console.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fdtdec.h>
 #include <ide.h>
 #include <initcall.h>
index 0f7e0916cd2f5416a5921da85e2c8db4c39e9d82..89b1e9590cad7b9695b1a0322d3b81574a45c26c 100644 (file)
@@ -17,7 +17,7 @@
 #include <serial.h>
 #include <stdio_dev.h>
 #include <exports.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <watchdog.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 6c22f074b0b79fb962ad10305b74fbaab16aa868..c59254c76e3e19c2ec8bfd5ecfc05d57751e33b3 100644 (file)
@@ -26,7 +26,7 @@
 #include <asm/io.h>
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <mtd/cfi_flash.h>
 #include <watchdog.h>
 
index d4488a2cc288a55c977825a4c92d575388e9a41f..dcdaedefe72e96a0de41b6b6de63b980554a5f6a 100644 (file)
@@ -5,7 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <os.h>
 #include <serial.h>
index 09365ba6a1efaf7ce535d27629f77363060ca205..b907508dbe5d75c0d29f79871b911ee5402221a0 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #include <common.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <serial.h>
 #include <stdio_dev.h>
 #include <post.h>
index d5469ce3c271e224a7fe9cdf03943dc1ff33659d..f0904cfdc5352249376d2fcc0a0eb2c83bb5b633 100644 (file)
@@ -6,7 +6,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
 DECLARE_GLOBAL_DATA_PTR;
index 474ea2280b980cd3edbe70dda42606281df7bd44..3fb60509dd8514c311b7a781b35463c2cf21264f 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <search.h>
 #include <errno.h>
index 91ee3f35ebf3573b73f69abd83fe2406e3d54a39..cb04d2ac8843903beec91f85e92c9ee840bc8b3a 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #if defined(CONFIG_I2C_ENV_EEPROM_BUS)
 #include <i2c.h>
index b1090e90e598c482527d6ac543001ebd0e2f3fc9..a38e169fe0b466c99d0596b3fdfd32e8ec81da81 100644 (file)
@@ -12,7 +12,7 @@
 #define        __ASM_STUB_PROCESSOR_H__        /* don't include asm/processor. */
 #include <config.h>
 #undef __ASSEMBLY__
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stringify.h>
 
 /* Handle HOSTS that have prepended crap on symbol names, not TARGETS. */
index 9d421e81256ba50c101d06c8e3660052bc02af55..9237bb9c742a5242940cd6248751bc5d4eef86fa 100644 (file)
--- a/env/env.c
+++ b/env/env.c
@@ -6,7 +6,7 @@
 
 #include <common.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 6aa36867b678138bd1702088181be9a51ac9681e..1f6b1b5bd818ba674b8f828aa7c8af92e4b432c3 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
index d23753c6ff30d98cdd5f07e99006231113341734..1836556f361d012e0bcd5ba54323475fe181e8a3 100644 (file)
--- a/env/fat.c
+++ b/env/fat.c
@@ -10,7 +10,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
index 93d337a1aa0ce187d571be66a6533971b15dd83e..418d6cc7425a5689164b0d99fa250e3d4d2c9fa2 100644 (file)
@@ -19,7 +19,7 @@
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 #else
 #include <common.h>
-#include <environment.h>
+#include <env_internal.h>
 #endif
 
 #ifdef CONFIG_CMD_NET
index bdba09e306291c4f52f01c4cdd2b54884a956614..231a5fdf24d0038248759b420ea2747ceabb1593 100644 (file)
@@ -12,7 +12,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <search.h>
index 4ca7c2b9ff15a86689ea2614dd351102b79f641f..9f1878def13a63d29cf9ba7e11dfd6f1686fe5ff 100644 (file)
--- a/env/mmc.c
+++ b/env/mmc.c
@@ -9,7 +9,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <fdtdec.h>
 #include <linux/stddef.h>
 #include <malloc.h>
index 3e2235f5f342088488c461eb781e1090c629d202..9f3dc635cf1f0804d93f5ce0ec8748e00af92340 100644 (file)
@@ -16,7 +16,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <memalign.h>
index 7db4eec84560e7db6e7156d77abaf45a3b2fe360..f5b0a17652c5928fa0282b6b7623eb5b45284add 100644 (file)
@@ -10,7 +10,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index a5b1873aaffe05e31cca88ebec702160bd08bfba..79201bd788be1ec83e41de807af570567e52dc23 100644 (file)
@@ -26,7 +26,7 @@
 #include <common.h>
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <search.h>
 #include <errno.h>
index d371bd757cb5c24036ace1a0b789d130034d9354..dfd4e939f8f89d816b1e9410080f811f9b0139d9 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <malloc.h>
 #include <search.h>
index b1a7d1a4c12e3d38e870b2f34a4ab36586355525..02531f427ba82910f8ae65bc788379435b03ea31 100644 (file)
@@ -7,7 +7,7 @@
 
 #include <common.h>
 #include <command.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 
 #ifdef ENV_IS_EMBEDDED
index a5364dda5d8c87e27f1053d8b9be65573a46a363..93697100815d080ae6c1e0bd81669dfa666314e0 100644 (file)
@@ -9,7 +9,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <linux/stddef.h>
 #include <errno.h>
 #include <memalign.h>
index 09646e1eed1ffa191740dee7d13a7a269aad991b..590d0cedd852999eec5ea485a92b265d0066401f 100644 (file)
--- a/env/sf.c
+++ b/env/sf.c
@@ -11,7 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
index a69db14afd58c123827b9149524f45ec705984b4..08aac47df2b6a7c5e7c04f1d9232f6db62e43bac 100644 (file)
--- a/env/ubi.c
+++ b/env/ubi.c
@@ -8,7 +8,7 @@
 
 #include <command.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <malloc.h>
 #include <memalign.h>
index 34ae5148058b2abe2333d310da5a7f66f6138f42..f8afbc0d70517ce87cc3427d684a0a30a7ba10d0 100644 (file)
@@ -394,7 +394,7 @@ int cpu_release(u32 nr, int argc, char * const argv[]);
 
 /* Pull in stuff for the build system */
 #ifdef DO_DEPS_ONLY
-# include <environment.h>
+# include <env_internal.h>
 #endif
 
 #endif /* __COMMON_H_ */
similarity index 93%
rename from include/environment.h
rename to include/env_internal.h
index cc8c0546c29854b262ffc6864a619d7dbfc7e3e7..b1ddcb5adfd3b2f4216be90d40d33c85a81cea7b 100644 (file)
@@ -1,11 +1,19 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
+ * Internal environment header file. This includes direct access to environment
+ * information such as its size and offset, direct access to the default
+ * environment and embedded environment (if used). It also provides environment
+ * drivers with various declarations.
+ *
+ * It should not be included by board files, drivers and code other than that
+ * related to the environment implementation.
+ *
  * (C) Copyright 2002
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  */
 
-#ifndef _ENVIRONMENT_H_
-#define _ENVIRONMENT_H_
+#ifndef _ENV_INTERNAL_H_
+#define _ENV_INTERNAL_H_
 
 #include <linux/kconfig.h>
 
@@ -267,4 +275,4 @@ extern struct hsearch_data env_htab;
 
 #endif /* DO_DEPS_ONLY */
 
-#endif /* _ENVIRONMENT_H_ */
+#endif /* _ENV_INTERNAL_H_ */
index 8a0e0db13e7f39c931d87e03a750a41792ec09ee..6687b69a400d724b50372653575ace95c20fa551 100644 (file)
@@ -10,7 +10,7 @@
 #include <charset.h>
 #include <efi_loader.h>
 #include <hexdump.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <search.h>
 #include <uuid.h>
 
index f0a3996cd610e933c6017b924b507dda84014c03..40511db645dff85b255d735fccc737c007c93470 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -91,7 +91,7 @@
 #include <command.h>
 #include <console.h>
 #include <env.h>
-#include <environment.h>
+#include <env_internal.h>
 #include <errno.h>
 #include <net.h>
 #include <net/fastboot.h>
index 7eb7246d45dc40f23c966f5c20c5b379cfa90df7..672ef4d675e79353160c75f38ba93d3bd2945ed6 100644 (file)
@@ -59,7 +59,7 @@
 
 
 #ifdef CONFIG_BUILD_ENVCRC
-# include <environment.h>
+# include <env_internal.h>
 extern unsigned int env_size;
 extern env_t embedded_environment;
 #endif /* CONFIG_BUILD_ENVCRC */