summaryrefslogtreecommitdiff
path: root/board/amcc/kilauea
diff options
context:
space:
mode:
authorBrian McFarland <mcfarlandjb@gmail.com>2015-03-12 11:52:49 -0400
committerTom Rini <trini@konsulko.com>2015-03-28 12:07:47 -0400
commit80ee0196a63d5f1bc013b0dddc830cda464c075f (patch)
tree640c1e2fea9ce9926116a7a1851f3873c718dc63 /board/amcc/kilauea
parent944ab340b6d98faf5f1e30d223d52d6d24c2f858 (diff)
downloadu-boot-imx-80ee0196a63d5f1bc013b0dddc830cda464c075f.zip
u-boot-imx-80ee0196a63d5f1bc013b0dddc830cda464c075f.tar.gz
u-boot-imx-80ee0196a63d5f1bc013b0dddc830cda464c075f.tar.bz2
Patch to mkenvimage to handle text files with length that exceed env size
The current head revision of mkenvimage (e72be8947e129f5ab274c0a9f235d2cc0014b2ea) will prevent you from creating an env image from a text file that is larger than the env length specified by the '-s' option. That doesn't make sense given that the tool now allows comments and blank lines. This patch removes that limitation and allows longer text files to be used. I don't have time / desire at the moment to figure out "patman" and could really care less if this is adopted up stream. Just figured I would share in case anybody else finds it useful enough to take time to do a proper patch. >From 39ff30190c2bf687861f4b4b33230f1944fb64f9 Mon Sep 17 00:00:00 2001 From: Brian McFarland <bmcfarland@rldrake.com> Date: Thu, 12 Mar 2015 11:37:19 -0400 Subject: [PATCH] In mkenvimage, removed the check that prevented using a source text file larger than the output environment image. Instead, the main parsing loop checks to see if the environment buffer is full, and quits if it is. After the main parse loop, a second loop swallows comments and whitespace until either the EOF is reached or more env vars are found, in which case an error will be thrown.
Diffstat (limited to 'board/amcc/kilauea')
0 files changed, 0 insertions, 0 deletions