From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 28 Oct 2013 13:59:14 -0600 Subject: [U-Boot] [PATCH v3 5/5] RFC: tegra: Convert to using environment files In-Reply-To: <1382763695-2849-6-git-send-email-sjg@chromium.org> References: <1382763695-2849-2-git-send-email-sjg@chromium.org> <1382763695-2849-6-git-send-email-sjg@chromium.org> Message-ID: <526EC212.4060307@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/25/2013 11:01 PM, Simon Glass wrote: > This seems more intuitive that the current #define way of doing things. > The resulting code is shorter, avoids the quoting and line continuation > pain, and also improves the clumsy way that stdio variables are created: > > #ifdef CONFIG_VIDEO_TEGRA > #define STDOUT_LCD ",lcd" > #else > #define STDOUT_LCD "" > #endif > > ... > #define TEGRA_DEVICE_SETTINGS \ > "stdout=serial" STDOUT_LCD "\0" \ > ... > > The MEM_LAYOUT_ENV_SETTINGS variable is left in the header files, since > it depends on the SOC type and we probably don't want to add .emv files > for each board at this stage. I guess I'm fine with this as long as e.g. board/compulab/env/trimslice.env can contain: #include "../../../board/nvidia/env/common.env" ... or perhaps the include path is set up to include board/nvidia/env already, so it could just contain: #include > diff --git a/board/nvidia/env/common.env b/board/nvidia/env/common.env > +bootcmd_mmc0=setenv devnum 0; run mmc_boot > +bootcmd_mmc1=setenv devnum 1; run mmc_booxt > +boot_targets+= mmc1 mmc0 I still don't see why = needs no space before/after, but += needs no space before, but a space after. That simply looks like a typo to me, and I'd be inclined to fix it were I editing this file. If a sed script can't handle more flexible white-space, perhaps use Python or perhaps Perl instead?