From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QW5kcmVhcyBCaWXDn21hbm4=?= Date: Mon, 20 Feb 2012 17:37:34 +0100 Subject: [U-Boot] [PATCH v4] tools/env: add posibility to inject configuration In-Reply-To: <1327396229-17892-1-git-send-email-andreas.devel@googlemail.com> References: <1318925015-6784-1-git-send-email-biessmann@corscience.de> <1327396229-17892-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <4F4276CE.5060909@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24.01.2012 10:10, Andreas Bie?mann wrote: > From: Andreas Bie?mann > > If one want to use fw_printenv/fw_setenv in special variants (eg compiled in > MTD parameters without configuration file) he need to change the sources. > This patch add the posibillity to change the behaviour of fw_printenv by > defining a specific configuration header at compile time. > Therefore no need to patch the sources for special environment which fits > better into automated build environments. > > Signed-off-by: Andreas Bie?mann > --- > total: 0 errors, 0 warnings, 164 lines checked > > NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX MULTISTATEMENT_MACRO_USE_DO_WHILE > > 0001-tools-env-add-posibility-to-inject-configuration.patch has no obvious style problems and is ready for submission. > > changes since v1: > - use ?= style in Makefile as suggested by Mike > - remove c++ style comments in header > > changes since v2: > - place copied/generated fw_env_config.h in include/generated > - adopt tools/env/Makefile to new placement of fw_env_config.h > > changes since v3: > - add (C) header > - generate empty config.h for unconfigured U-Boot tree > - rebase > > tools/env/Makefile | 29 +++++++++++++++--- > tools/env/fw_env.h | 32 +++----------------- > tools/env/fw_env_config.h.in | 66 ++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 95 insertions(+), 32 deletions(-) > create mode 100644 tools/env/fw_env_config.h.in ping?