From: Wolfgang Denk Date: Sun, 12 Aug 2012 23:06:44 +0200 Subject: [U-Boot] [PATCH 5/5] Add env var giving the board revision In-Reply-To: <1323086777.2324156.1344780597072.JavaMail.root@advansee.com> References: <1323086777.2324156.1344780597072.JavaMail.root@advansee.com> Message-ID: <20120812210644.7B554202C07@gemini.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 =?utf-8?Q?Beno=C3=AEt_Th=C3=A9baudeau?=, In message <1323086777.2324156.1344780597072.JavaMail.root@advansee.com> you wrote: > > Anyway, when you will have implemented read-only and volatile flags for env > vars, this patch will no longer be needed. But with the current code, there is > no way board-specific code can create a board revision env var and make it > read-only, except with this patch. Correct, so far we don't support custom read-only variables. But if we add these, then in a generic way, and definitely not for a single, specific variable. This is a lesson we learned form experience. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel 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 The number you have dialed is imaginary. Please divide by 0 and try again.