From: Wolfgang Denk Date: Mon, 12 Aug 2013 15:29:20 +0200 Subject: [U-Boot] [RFC PATCH] env: add default env size for CONFIG_ENV_IS_NOWHERE In-Reply-To: <5208DE04.1000405@gmail.com> References: <1376230503-25331-1-git-send-email-voice.shen@gmail.com> <20130811145016.677F7380E10@gemini.denx.de> <5208DE04.1000405@gmail.com> Message-ID: <20130812132920.DDAAD380DFA@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 Bo Shen, In message <5208DE04.1000405@gmail.com> you wrote: > > At first glance of CONFIG_ENV_IS_NOWHERE, I think no need to define the > CONFIG_ENV_SIZE, actually, it needs to define the CONFIG_ENV_SIZE. So, I > think add a default value will be better (Maybe another choice to add a > description in README file to specify how to use CONFIG_ENV_IS_NOWHERE). I cannot see in which way the required environment size in this case is different from all other cases. To me, a default size makes little sense - it is just a chance to miss setting a suitable value, so it bites you later (at run time) instead of earlyin development. > > In any cse, the needed environment seize if a pretty board specific > > thing, and I think it makes sense to let the user define it. > > Yes, the environment size is a pretty board specific thing. So, in this > patch, there is an option for user to define it. I think the user should always set this to a useful (for him) value. For example, you think 1 KiB is a useful size, I would think it is too small. Ask two other people, and you will hear three other different numbers. 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 Motto of the Electrical Engineer: Working computer hardware is a lot like an erect penis: it stays up as long as you don't fuck with it.