Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D60EC433EF for ; Thu, 16 Jun 2022 17:04:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C557A84335; Thu, 16 Jun 2022 19:04:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="plYB87vo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6E3AF84337; Thu, 16 Jun 2022 19:04:32 +0200 (CEST) Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 19D1984286 for ; Thu, 16 Jun 2022 19:04:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf29.google.com with SMTP id ea7so2941675qvb.12 for ; Thu, 16 Jun 2022 10:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3VyOpw1XAqOv3sqgdurATY49cl/w86O7kmHSUqvSJgk=; b=plYB87vob+tWva7OG03skm/k4Uo063aiEwaORmLOEb1G+URTolyt6MtL1BP+yZCdnQ hNIFk8bQOtT90VBmtfgtV/v0FLA6Bmd363I8LMfxp5JYhyd6Noafl8qf05ZMNx1JEjqt kG0YaGjPB9x+yUgM22YOkv8wqDfnmKdZiuS1A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3VyOpw1XAqOv3sqgdurATY49cl/w86O7kmHSUqvSJgk=; b=6j37bVsG/J1QpuuDQpSrHEzAqF7EebkLzzezi+3TS1FKdgqfZ4oZH1ylqbHjaOgtdP 56p+uveYJeAFQsLaDSKv7IPtMNsWfkKO9ZHqGzSb2KOmqwkQsthQV5cstnFOZtrAXiCv 427fMQ2RaNQhZK11Vw9GP2SkFmXychN8vHmz2/8iPqFqK0hQn1dfhsaeOf/7GhgBsF7F nn/ZyBjvhXGVhndbv+/iqFdNmupgD8SblREzfE7mQeZGsz/xpux7DrUShX70TenSu8o3 hM11+FO/K2CayRdYOeUSdgSCFjXc3Aj7xtJd/SibrfIVXeOYql55HKbOSKeGuxqsyKJG Jb6Q== X-Gm-Message-State: AJIora8lXgQ2idw6miH0UsnLUl14FcQfFl0Zr8DCt6LUEn/X++Do+MbY 5E/qW4q/BBCvTrrxu1SPso0E+Q== X-Google-Smtp-Source: AGRyM1vu7ZV2BouF+X+P2EiKKAgmWu+YuQvqJNjSKcip1ETGkjdtzhtLget9DvtRzo4V/ebKaNz9kw== X-Received: by 2002:ac8:7dc2:0:b0:306:6881:2693 with SMTP id c2-20020ac87dc2000000b0030668812693mr4923096qte.16.1655399066568; Thu, 16 Jun 2022 10:04:26 -0700 (PDT) Received: from bill-the-cat (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id 74-20020a37044d000000b006a6539862f8sm2180350qke.40.2022.06.16.10.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 10:04:25 -0700 (PDT) Date: Thu, 16 Jun 2022 13:04:23 -0400 From: Tom Rini To: Tim Harvey Cc: u-boot Subject: Re: [PATCH 8/8] gw_ventana: Migrate to using CONFIG_EXTRA_ENV_TEXT Message-ID: <20220616170423.GY2484912@bill-the-cat> References: <20220614025737.3708141-1-trini@konsulko.com> <20220614025737.3708141-8-trini@konsulko.com> <20220614161838.GA2484912@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4N42/ivucor2EeDs" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean --4N42/ivucor2EeDs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 16, 2022 at 09:51:13AM -0700, Tim Harvey wrote: > On Tue, Jun 14, 2022 at 9:58 AM Tim Harvey wrote: > > > > On Tue, Jun 14, 2022 at 9:18 AM Tom Rini wrote: > > > > > > On Tue, Jun 14, 2022 at 09:14:03AM -0700, Tim Harvey wrote: > > > > On Mon, Jun 13, 2022 at 7:57 PM Tom Rini wrote: > > > > > > > > > > Move the environment text over from being set via > > > > > CONFIG_EXTRA_ENV_SETTINGS in include/configs/gw_ventana.h and over > > > > > to plain text in board/gateworks/gw_ventana/gw_ventana.env. This= lets > > > > > us drop CONFIG_EXTRA_ENV_SETTINGS_COMMON as everything resides in= a > > > > > single environment file now. > > > > > > > > > > Cc: Tim Harvey > > > > > Signed-off-by: Tom Rini > > > > > --- > > > > > board/gateworks/gw_ventana/gw_ventana.env | 145 ++++++++++++++++= +++++ > > > > > include/configs/gw_ventana.h | 148 ----------------= ------ > > > > > 2 files changed, 145 insertions(+), 148 deletions(-) > > > > > create mode 100644 board/gateworks/gw_ventana/gw_ventana.env > > > > > > > > > > diff --git a/board/gateworks/gw_ventana/gw_ventana.env b/board/ga= teworks/gw_ventana/gw_ventana.env > > > > > new file mode 100644 > > > > > index 000000000000..9a316c74f215 > > > > > --- /dev/null > > > > > +++ b/board/gateworks/gw_ventana/gw_ventana.env > > > > > @@ -0,0 +1,145 @@ > > > > > +/* SPDX-License-Identifier: GPL-2.0+ */ > > > > > +/* > > > > > + * Copyright (C) 2013 Gateworks Corporation > > > > > + */ > > > > > + > > > > > +splashpos=3Dm,m > > > > > +splashimage=3DCONFIG_SYS_LOAD_ADDR > > > > > +usb_pgood_delay=3D2000 > > > > > +console=3Dttymxc1 > > > > > +bootdevs=3Dusb mmc sata flash > > > > > +hwconfig=3D_UNKNOWN_ > > > > > + > > > > > +disk=3D0 > > > > > +part=3D1 > > > > > + > > > > > +fdt_high=3D0xffffffff > > > > > +fdt_addr=3D0x18000000 > > > > > +initrd_high=3D0xffffffff > > > > > +fixfdt=3Dfdt addr ${fdt_addr} > > > > > +bootdir=3Dboot > > > > > +loadfdt=3D > > > > > + if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then > > > > > + echo Loaded DTB from ${bootdir}/${fdt_file}; > > > > > + run fixfdt; > > > > > + elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then > > > > > + echo Loaded DTB from ${bootdir}/${fdt_file1}; > > > > > + run fixfdt; > > > > > + elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then > > > > > + echo Loaded DTB from ${bootdir}/${fdt_file2}; > > > > > + run fixfdt; > > > > > + fi > > > > > + > > > > > +fs=3Dext4 > > > > > +script=3D6x_bootscript-ventana > > > > > +loadscript=3D > > > > > + if ${fsload} ${loadaddr} ${bootdir}/${script}; then > > > > > + source ${loadaddr}; > > > > > + fi > > > > > + > > > > > +uimage=3DuImage > > > > > +mmc_root=3Dmmcblk0p1 > > > > > +mmc_boot=3D > > > > > + setenv fsload "${fs}load mmc ${disk}:${part}"; > > > > > + mmc dev ${disk} && mmc rescan && > > > > > + setenv dtype mmc; run loadscript; > > > > > + if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then > > > > > + setenv bootargs console=3D${console},${baudrate} > > > > > + root=3D/dev/${mmc_root} rootfstype=3D${fs} > > > > > + rootwait rw ${video} ${extra}; > > > > > + if run loadfdt; then > > > > > + bootm ${loadaddr} - ${fdt_addr}; > > > > > + else > > > > > + bootm; > > > > > + fi; > > > > > + fi > > > > > + > > > > > +sata_boot=3D > > > > > + setenv fsload "${fs}load sata ${disk}:${part}"; > > > > > + sata init && > > > > > + setenv dtype sata; run loadscript; > > > > > + if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then > > > > > + setenv bootargs console=3D${console},${baudrate} > > > > > + root=3D/dev/sda1 rootfstype=3D${fs} > > > > > + rootwait rw ${video} ${extra}; > > > > > + if run loadfdt; then > > > > > + bootm ${loadaddr} - ${fdt_addr}; > > > > > + else > > > > > + bootm; > > > > > + fi; > > > > > + fi > > > > > + > > > > > +usb_boot=3D > > > > > + setenv fsload "${fs}load usb ${disk}:${part}"; > > > > > + usb start && usb dev ${disk} && > > > > > + setenv dtype usb; run loadscript; > > > > > + if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then > > > > > + setenv bootargs console=3D${console},${baudrate} > > > > > + root=3D/dev/sda1 rootfstype=3D${fs} > > > > > + rootwait rw ${video} ${extra}; > > > > > + if run loadfdt; then > > > > > + bootm ${loadaddr} - ${fdt_addr}; > > > > > + else > > > > > + bootm; > > > > > + fi; > > > > > + fi > > > > > + > > > > > +#ifdef CONFIG_SPI_FLASH > > > > > +image_os=3Dventana/openwrt-imx6-imx6q-gw5400-a-squashfs.bin > > > > > +image_uboot=3Dventana/u-boot_spi.imx > > > > > + > > > > > +spi_koffset=3D0x90000 > > > > > +spi_klen=3D0x200000 > > > > > + > > > > > +spi_updateuboot=3Decho Updating uboot from > > > > > + ${serverip}:${image_uboot}...; > > > > > + tftpboot ${loadaddr} ${image_uboot} && > > > > > + sf probe && sf erase 0 80000 && > > > > > + sf write ${loadaddr} 400 ${filesize} > > > > > +spi_update=3Decho Updating OS from ${serverip}:${image_os} > > > > > + to ${spi_koffset} ...; > > > > > + tftp ${loadaddr} ${image_os} && > > > > > + sf probe && > > > > > + sf update ${loadaddr} ${spi_koffset} ${filesize} > > > > > + > > > > > +flash_boot=3D > > > > > + if sf probe && > > > > > + sf read ${loadaddr} ${spi_koffset} ${spi_klen}; then > > > > > + setenv bootargs console=3D${console},${baudrate} > > > > > + root=3D/dev/mtdblock3 > > > > > + rootfstype=3Dsquashfs,jffs2 > > > > > + ${video} ${extra}; > > > > > + bootm; > > > > > + fi > > > > > +#else > > > > > +image_rootfs=3Dopenwrt-imx6-ventana-rootfs.ubi > > > > > +nand_update=3Decho Updating NAND from ${serverip}:${image_rootfs= }...; > > > > > + tftp ${loadaddr} ${image_rootfs} && > > > > > + nand erase.part rootfs && > > > > > + nand write ${loadaddr} rootfs ${filesize} > > > > > + > > > > > +flash_boot=3D > > > > > + setenv fsload 'ubifsload'; > > > > > + ubi part rootfs; > > > > > + if ubi check boot; then > > > > > + ubifsmount ubi0:boot; > > > > > + setenv root ubi0:rootfs ubi.mtd=3D2 > > > > > + rootfstype=3Dsquashfs,ubifs; > > > > > + setenv bootdir; > > > > > + elif ubi check rootfs; then > > > > > + ubifsmount ubi0:rootfs; > > > > > + setenv root ubi0:rootfs ubi.mtd=3D2 > > > > > + rootfstype=3Dubifs; > > > > > + fi; > > > > > + setenv dtype nand; run loadscript; > > > > > + if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then > > > > > + setenv bootargs console=3D${console},${baudrate} > > > > > + root=3D${root} ${video} ${extra}; > > > > > + if run loadfdt; then > > > > > + ubifsumount; > > > > > + bootm ${loadaddr} - ${fdt_addr}; > > > > > + else > > > > > + ubifsumount; bootm; > > > > > + fi; > > > > > + fi > > > > > +#endif > > > > > diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ve= ntana.h > > > > > index 77f41502220a..47a72fc8fce5 100644 > > > > > --- a/include/configs/gw_ventana.h > > > > > +++ b/include/configs/gw_ventana.h > > > > > @@ -76,152 +76,4 @@ > > > > > #define CONFIG_IPADDR 192.168.1.1 > > > > > #define CONFIG_SERVERIP 192.168.1.146 > > > > > > > > > > -#define CONFIG_EXTRA_ENV_SETTINGS_COMMON \ > > > > > - "splashpos=3Dm,m\0" \ > > > > > - "splashimage=3D" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ > > > > > - "usb_pgood_delay=3D2000\0" \ > > > > > - "console=3Dttymxc1\0" \ > > > > > - "bootdevs=3Dusb mmc sata flash\0" \ > > > > > - "hwconfig=3D_UNKNOWN_\0" \ > > > > > - "video=3D\0" \ > > > > > - \ > > > > > - "disk=3D0\0" \ > > > > > - "part=3D1\0" \ > > > > > - \ > > > > > - "fdt_high=3D0xffffffff\0" \ > > > > > - "fdt_addr=3D0x18000000\0" \ > > > > > - "initrd_high=3D0xffffffff\0" \ > > > > > - "fixfdt=3D" \ > > > > > - "fdt addr ${fdt_addr}\0" \ > > > > > - "bootdir=3Dboot\0" \ > > > > > - "loadfdt=3D" \ > > > > > - "if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file};= then " \ > > > > > - "echo Loaded DTB from ${bootdir}/${fdt_fi= le}; " \ > > > > > - "run fixfdt; " \ > > > > > - "elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file= 1}; then " \ > > > > > - "echo Loaded DTB from ${bootdir}/${fdt_fi= le1}; " \ > > > > > - "run fixfdt; " \ > > > > > - "elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file= 2}; then " \ > > > > > - "echo Loaded DTB from ${bootdir}/${fdt_fi= le2}; " \ > > > > > - "run fixfdt; " \ > > > > > - "fi\0" \ > > > > > - \ > > > > > - "fs=3Dext4\0" \ > > > > > - "script=3D6x_bootscript-ventana\0" \ > > > > > - "loadscript=3D" \ > > > > > - "if ${fsload} ${loadaddr} ${bootdir}/${script}; t= hen " \ > > > > > - "source ${loadaddr}; " \ > > > > > - "fi\0" \ > > > > > - \ > > > > > - "uimage=3DuImage\0" \ > > > > > - "mmc_root=3Dmmcblk0p1\0" \ > > > > > - "mmc_boot=3D" \ > > > > > - "setenv fsload \"${fs}load mmc ${disk}:${part}\";= " \ > > > > > - "mmc dev ${disk} && mmc rescan && " \ > > > > > - "setenv dtype mmc; run loadscript; " \ > > > > > - "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; t= hen " \ > > > > > - "setenv bootargs console=3D${console},${b= audrate} " \ > > > > > - "root=3D/dev/${mmc_root} rootfsty= pe=3D${fs} " \ > > > > > - "rootwait rw ${video} ${extra}; "= \ > > > > > - "if run loadfdt; then " \ > > > > > - "bootm ${loadaddr} - ${fdt_addr};= " \ > > > > > - "else " \ > > > > > - "bootm; " \ > > > > > - "fi; " \ > > > > > - "fi\0" \ > > > > > - \ > > > > > - "sata_boot=3D" \ > > > > > - "setenv fsload \"${fs}load sata ${disk}:${part}\"= ; " \ > > > > > - "sata init && " \ > > > > > - "setenv dtype sata; run loadscript; " \ > > > > > - "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; t= hen " \ > > > > > - "setenv bootargs console=3D${console},${b= audrate} " \ > > > > > - "root=3D/dev/sda1 rootfstype=3D${= fs} " \ > > > > > - "rootwait rw ${video} ${extra}; "= \ > > > > > - "if run loadfdt; then " \ > > > > > - "bootm ${loadaddr} - ${fdt_addr};= " \ > > > > > - "else " \ > > > > > - "bootm; " \ > > > > > - "fi; " \ > > > > > - "fi\0" \ > > > > > - "usb_boot=3D" \ > > > > > - "setenv fsload \"${fs}load usb ${disk}:${part}\";= " \ > > > > > - "usb start && usb dev ${disk} && " \ > > > > > - "setenv dtype usb; run loadscript; " \ > > > > > - "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; t= hen " \ > > > > > - "setenv bootargs console=3D${console},${b= audrate} " \ > > > > > - "root=3D/dev/sda1 rootfstype=3D${= fs} " \ > > > > > - "rootwait rw ${video} ${extra}; "= \ > > > > > - "if run loadfdt; then " \ > > > > > - "bootm ${loadaddr} - ${fdt_addr};= " \ > > > > > - "else " \ > > > > > - "bootm; " \ > > > > > - "fi; " \ > > > > > - "fi\0" > > > > > - > > > > > -#ifdef CONFIG_SPI_FLASH > > > > > - #define CONFIG_EXTRA_ENV_SETTINGS \ > > > > > - CONFIG_EXTRA_ENV_SETTINGS_COMMON \ > > > > > - "image_os=3Dventana/openwrt-imx6-imx6q-gw5400-a-squashfs.= bin\0" \ > > > > > - "image_uboot=3Dventana/u-boot_spi.imx\0" \ > > > > > - \ > > > > > - "spi_koffset=3D0x90000\0" \ > > > > > - "spi_klen=3D0x200000\0" \ > > > > > - \ > > > > > - "spi_updateuboot=3Decho Updating uboot from " \ > > > > > - "${serverip}:${image_uboot}...; " \ > > > > > - "tftpboot ${loadaddr} ${image_uboot} && " \ > > > > > - "sf probe && sf erase 0 80000 && " \ > > > > > - "sf write ${loadaddr} 400 ${filesize}\0" \ > > > > > - "spi_update=3Decho Updating OS from ${serverip}:${image_o= s} " \ > > > > > - "to ${spi_koffset} ...; " \ > > > > > - "tftp ${loadaddr} ${image_os} && " \ > > > > > - "sf probe && " \ > > > > > - "sf update ${loadaddr} ${spi_koffset} ${filesize}= \0" \ > > > > > - \ > > > > > - "flash_boot=3D" \ > > > > > - "if sf probe && " \ > > > > > - "sf read ${loadaddr} ${spi_koffset} ${spi_klen}; = then " \ > > > > > - "setenv bootargs console=3D${console},${b= audrate} " \ > > > > > - "root=3D/dev/mtdblock3 " \ > > > > > - "rootfstype=3Dsquashfs,jffs2 " \ > > > > > - "${video} ${extra}; " \ > > > > > - "bootm; " \ > > > > > - "fi\0" > > > > > -#else > > > > > - #define CONFIG_EXTRA_ENV_SETTINGS \ > > > > > - CONFIG_EXTRA_ENV_SETTINGS_COMMON \ > > > > > - \ > > > > > - "image_rootfs=3Dopenwrt-imx6-ventana-rootfs.ubi\0" \ > > > > > - "nand_update=3Decho Updating NAND from ${serverip}:${imag= e_rootfs}...; " \ > > > > > - "tftp ${loadaddr} ${image_rootfs} && " \ > > > > > - "nand erase.part rootfs && " \ > > > > > - "nand write ${loadaddr} rootfs ${filesize}\0" \ > > > > > - \ > > > > > - "flash_boot=3D" \ > > > > > - "setenv fsload 'ubifsload'; " \ > > > > > - "ubi part rootfs; " \ > > > > > - "if ubi check boot; then " \ > > > > > - "ubifsmount ubi0:boot; " \ > > > > > - "setenv root ubi0:rootfs ubi.mtd=3D2 " \ > > > > > - "rootfstype=3Dsquashfs,ubifs; " \ > > > > > - "setenv bootdir; " \ > > > > > - "elif ubi check rootfs; then " \ > > > > > - "ubifsmount ubi0:rootfs; " \ > > > > > - "setenv root ubi0:rootfs ubi.mtd=3D2 " \ > > > > > - "rootfstype=3Dubifs; " \ > > > > > - "fi; " \ > > > > > - "setenv dtype nand; run loadscript; " \ > > > > > - "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; t= hen " \ > > > > > - "setenv bootargs console=3D${console},${b= audrate} " \ > > > > > - "root=3D${root} ${video} ${extra}= ; " \ > > > > > - "if run loadfdt; then " \ > > > > > - "ubifsumount; " \ > > > > > - "bootm ${loadaddr} - ${fdt_addr};= " \ > > > > > - "else " \ > > > > > - "ubifsumount; bootm; " \ > > > > > - "fi; " \ > > > > > - "fi\0" > > > > > -#endif > > > > > - > > > > > #endif /* __CONFIG_H */ > > > > > -- > > > > > 2.25.1 > > > > > > > > > > > > > Tom, > > > > > > > > Thanks, I've been looking forward to seeing how env is going to get > > > > migrated out of headers. Can you explain the process used to create > > > > this patch? It seems you may have something automated. > > > > > > > > Acked-by: Tim Harvey > > > > > > So, I do not have anything automated, unfortunately. In cases like t= his > > > where we don't use distro_bootcmd and also don't use defined blocks of > > > commands, it's a matter of applying a few regexs to remove quotes, > > > spaces and trailing \, then giving it a quick read to make sure it's > > > still right. This last part is some of why it can't be automated as = we > > > have cases of: > > > "some_bootargs=3Da=3D1 b=3D2" \ > > > "c=3D3\0" > > > and since there's no indent on c=3D3, it would become "c=3D3" in the > > > environment rather than "some_bootargs" being set to "a=3D1 b=3D2 c= =3D3". > > > > > > > Tom, > > > > I see - Its good to see this as an example and thanks for the cleanup! >=20 > Tom, >=20 > What is the plan or challenges to move env from headers when generic > distro config is used? It's a good question I don't have an answer to just yet. One potential answer is to say stop using include/config_distro_bootcmd.h and use "bootmeth" to achieve the same results, but in a way that doesn't make heavy use of macros and environment being constructed of null-terminated tokens. Or something new and clever is needed to let the macro work done in include/config_distro_bootcmd.h work with a script that requires new variables to begin a new line with no leading whitespace. --=20 Tom --4N42/ivucor2EeDs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmKrYpcACgkQFHw5/5Y0 tyyRfQwAr0gXMKckD3iFIq3Btit36n8h30Z+P3nqPyBt02Nfthm9QdLExZtJxRby gBWKo+eMYik6msGE/UuZv+ckT2R943DWh49Usqptm05y7IBtSvOgdaVp+aNsAKic GWZ/A7kklgX3PhLYk+fZ4TunWZzAXEg2UlwdZjFgzmU25oK2bne34LVOrj2UX1JF oFtwPW322VWGqtmiTJGjjGvUPMlHoSM4PSiMqt0wJUbSB87//tpLuMAT8ZHMH1fr yhgEhfzX8AiJYb/wb+X3MDiH7EhHi/MZxQVCS6PNOtnN+Df8Q0cfR9O1A2tbdMj+ U6XZ9ZvHwnTqzn6DfWr5NgYkxR3NWibeH+/btgRBSBIw+w1kgpkhLsR6nZ07oco3 qV9aq6jSIWVpH0KZ32TWAN9FTaQEMBrLo8WSZKGI0iWg+AZ9f4ZZgjgM5zWguq2a cmuwVIJLakqZ/DQ2Y6V7EpGueNNxWv6cuITj+A79S/FJqarcHChwENGIHLdxHm/8 0iqknNS+ =CiDR -----END PGP SIGNATURE----- --4N42/ivucor2EeDs--