This series converts several NXP i.MX boards from the ad-hoc CFG_EXTRA_ENV_SETTINGS macro in their config headers to the text based environment file mechanism described in doc/usage/environment.rst. Each board now keeps its default environment in a readable .env file instead of a backslash continued C string in include/configs.
The conversions are meant to be functionally transparent. For every board the generated default environment is byte for byte identical before and after the change. This was verified by comparing the output of scripts/get_default_envs.sh on each affected defconfig. mx7ulp_evk and mx6ullevk are single board conversions. mx6sabresd and mx6sabreauto share mx6sabre_common.h, so their common environment is placed in a shared fragment at include/env/nxp/mx6sabre_common.env that both board .env files include, with only the console setting kept per board. The eMMC firmware update variables stay guarded by CONFIG_SUPPORT_EMMC_BOOT inside the fragment. The series has been boot tested on i.MX7ULP EVK, i.MX6ULL 14x14 EVK and i.MX6Q SABRE-SD. mx6sabreauto has no hardware available here and was verified only through the default environment comparison described above. Note: checkpatch reports "fdt or initrd relocation disabled" for initrd_high=0xffffffff. This is pre-existing in each board's current environment and is kept unchanged to keep the conversion behaviour neutral; it is not introduced by this series. Aristo Chen (3): mx7ulp_evk: Move environment variables to .env file mx6ullevk: Move environment variables to .env file mx6sabre: Move environment variables to .env files board/nxp/mx6sabreauto/mx6sabreauto.env | 5 + board/nxp/mx6sabresd/mx6sabresd.env | 5 + board/nxp/mx6ullevk/mx6ullevk.env | 69 ++++++++++++++ board/nxp/mx7ulp_evk/mx7ulp_evk.env | 59 ++++++++++++ include/configs/mx6sabre_common.h | 122 ------------------------ include/configs/mx6sabreauto.h | 1 - include/configs/mx6sabresd.h | 1 - include/configs/mx6ullevk.h | 73 -------------- include/configs/mx7ulp_evk.h | 63 ------------ include/env/nxp/mx6sabre_common.env | 114 ++++++++++++++++++++++ 10 files changed, 252 insertions(+), 260 deletions(-) create mode 100644 board/nxp/mx6sabreauto/mx6sabreauto.env create mode 100644 board/nxp/mx6sabresd/mx6sabresd.env create mode 100644 board/nxp/mx6ullevk/mx6ullevk.env create mode 100644 board/nxp/mx7ulp_evk/mx7ulp_evk.env create mode 100644 include/env/nxp/mx6sabre_common.env -- 2.43.0

