From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 14 Sep 2016 15:33:36 +0200 Subject: [U-Boot] recommended place to add some custom settings to u-boot environment? In-Reply-To: References: <20160914091718.73124100BD9@atlas.denx.de> <20160914125839.C998A100BA3@atlas.denx.de> Message-ID: <20160914133336.4660A100BD9@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Robert, In message you wrote: > > it needs to be done programatically, and i *believe* himport_r() can > handle it, as the string is space-separated and null-terminated, so > i'm about to test that. It will not realy work. "space-separated" is not good enough as a space character is a legal part of the value of an environment variable. You would need to tweak the import code. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Status quo. Latin for "the mess we're in."