U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] Move NXP i.MX board environments to .env files
@ 2026-06-10 13:24 Aristo Chen
  2026-06-10 13:24 ` [PATCH v1 1/3] mx7ulp_evk: Move environment variables to .env file Aristo Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Aristo Chen @ 2026-06-10 13:24 UTC (permalink / raw)
  To: u-boot; +Cc: Aristo Chen

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-06-11  4:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10 13:24 [PATCH v1 0/3] Move NXP i.MX board environments to .env files Aristo Chen
2026-06-10 13:24 ` [PATCH v1 1/3] mx7ulp_evk: Move environment variables to .env file Aristo Chen
2026-06-11  4:14   ` Peng Fan
2026-06-10 13:24 ` [PATCH v1 2/3] mx6ullevk: " Aristo Chen
2026-06-11  4:15   ` Peng Fan
2026-06-10 13:24 ` [PATCH v1 3/3] mx6sabre: Move environment variables to .env files Aristo Chen
2026-06-11  4:15   ` Peng Fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox