<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/tools/env, branch v2016.09-rc1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>tools/env: reuse fw_getenv in fw_printenv function</title>
<updated>2016-07-22T18:46:22+00:00</updated>
<author>
<name>Andreas Fenkart</name>
<email>andreas.fenkart@digitalstrom.com</email>
</author>
<published>2016-07-16T15:06:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c5c41c45b1025aa951c794bb8add9c7c806496ee'/>
<id>c5c41c45b1025aa951c794bb8add9c7c806496ee</id>
<content type='text'>
Try to avoid adhoc iteration of the environment. Reuse fw_getenv
to find the variables that should be printed. Only use open-coded
iteration when printing all variables.
For backwards compatibility, keep emitting a newline when
printing with value_only.

Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Try to avoid adhoc iteration of the environment. Reuse fw_getenv
to find the variables that should be printed. Only use open-coded
iteration when printing all variables.
For backwards compatibility, keep emitting a newline when
printing with value_only.

Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: move envmatch further up in file to avoid forward declarations</title>
<updated>2016-07-22T18:46:22+00:00</updated>
<author>
<name>Andreas Fenkart</name>
<email>andreas.fenkart@digitalstrom.com</email>
</author>
<published>2016-07-16T15:06:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1b7427cd2ab6aae150559ee2edc8965fda113fdf'/>
<id>1b7427cd2ab6aae150559ee2edc8965fda113fdf</id>
<content type='text'>
forward declaration not needed when re-ordered

Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
forward declaration not needed when re-ordered

Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: kernel-doc for fw_printenv, fw_getenv and fw_parse_script</title>
<updated>2016-07-22T18:46:21+00:00</updated>
<author>
<name>Andreas Fenkart</name>
<email>andreas.fenkart@digitalstrom.com</email>
</author>
<published>2016-07-16T15:06:13+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fd4e3280e50983aa4d646f2c8fc93b38cc1dddf9'/>
<id>fd4e3280e50983aa4d646f2c8fc93b38cc1dddf9</id>
<content type='text'>
there are two groups of functions:
- application ready tools: fw_setenv/fw_getenv/fw_parse_script
these are used, when creating a single binary containing multiple
tools (busybox like)
- file access like: open/read/write/close
above functions are implemented on top of these. applications
can use those to modify several variables without creating a
temporary batch script file
tested with "./scripts/kernel-doc -html -v tools/env/fw_env.h"

Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
there are two groups of functions:
- application ready tools: fw_setenv/fw_getenv/fw_parse_script
these are used, when creating a single binary containing multiple
tools (busybox like)
- file access like: open/read/write/close
above functions are implemented on top of these. applications
can use those to modify several variables without creating a
temporary batch script file
tested with "./scripts/kernel-doc -html -v tools/env/fw_env.h"

Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: allow negative offsets</title>
<updated>2016-07-22T18:46:20+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2016-07-14T00:14:38+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f4742ca0fb94e531b8dcddd1ac0799ee4c9c2605'/>
<id>f4742ca0fb94e531b8dcddd1ac0799ee4c9c2605</id>
<content type='text'>
A negative value for the offset is treated as a backwards offset for
from the end of the device/partition for block devices. This aligns
the behavior of the config file with the syntax of CONFIG_ENV_OFFSET
where the functionality has been introduced with
commit 5c088ee841f9 ("env_mmc: allow negative CONFIG_ENV_OFFSET").

Signed-off-by: Stefan Agner &lt;stefan.agner@toradex.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A negative value for the offset is treated as a backwards offset for
from the end of the device/partition for block devices. This aligns
the behavior of the config file with the syntax of CONFIG_ENV_OFFSET
where the functionality has been introduced with
commit 5c088ee841f9 ("env_mmc: allow negative CONFIG_ENV_OFFSET").

Signed-off-by: Stefan Agner &lt;stefan.agner@toradex.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: complete environment device config early</title>
<updated>2016-07-22T18:46:20+00:00</updated>
<author>
<name>Stefan Agner</name>
<email>stefan.agner@toradex.com</email>
</author>
<published>2016-07-14T00:14:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=14fb5b252ac21c81e24fa734c3f66e9d6c3a0932'/>
<id>14fb5b252ac21c81e24fa734c3f66e9d6c3a0932</id>
<content type='text'>
Currently flash_read completes a crucial part of the environment
device configuration, the device type (mtd_type). This is rather
confusing as flash_io calls flash_read conditionally, and one might
think flash_write, which also makes use of mtd_type, gets called
before flash_read. But since flash_io is always called with O_RDONLY
first, this is not actually the case in reality.

However, it is much cleaner to complete and verify the config early
in parse_config. This also prepares the code for further extension.

Signed-off-by: Stefan Agner &lt;stefan.agner@toradex.com&gt;
Reviewed-by: Andreas Fenkart
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently flash_read completes a crucial part of the environment
device configuration, the device type (mtd_type). This is rather
confusing as flash_io calls flash_read conditionally, and one might
think flash_write, which also makes use of mtd_type, gets called
before flash_read. But since flash_io is always called with O_RDONLY
first, this is not actually the case in reality.

However, it is much cleaner to complete and verify the config early
in parse_config. This also prepares the code for further extension.

Signed-off-by: Stefan Agner &lt;stefan.agner@toradex.com&gt;
Reviewed-by: Andreas Fenkart
</pre>
</div>
</content>
</entry>
<entry>
<title>Various, unrelated tree-wide typo fixes.</title>
<updated>2016-07-16T13:43:12+00:00</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2016-07-15T17:44:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=62a3b7dd086ef8ceba91e99cceb19704efc1b482'/>
<id>62a3b7dd086ef8ceba91e99cceb19704efc1b482</id>
<content type='text'>
    Fix a number of typos, including:

     * "compatble" -&gt; "compatible"
     * "eanbeld" -&gt; "enabled"
     * "envrionment" -&gt; "environment"
     * "FTD" -&gt; "FDT" (for "flattened device tree")
     * "ommitted" -&gt; "omitted"
     * "overriden" -&gt; "overridden"
     * "partiton" -&gt; "partition"
     * "propogate" -&gt; "propagate"
     * "resourse" -&gt; "resource"
     * "rest in piece" -&gt; "rest in peace"
     * "suport" -&gt; "support"
     * "varible" -&gt; "variable"

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    Fix a number of typos, including:

     * "compatble" -&gt; "compatible"
     * "eanbeld" -&gt; "enabled"
     * "envrionment" -&gt; "environment"
     * "FTD" -&gt; "FDT" (for "flattened device tree")
     * "ommitted" -&gt; "omitted"
     * "overriden" -&gt; "overridden"
     * "partiton" -&gt; "partition"
     * "propogate" -&gt; "propagate"
     * "resourse" -&gt; "resource"
     * "rest in piece" -&gt; "rest in peace"
     * "suport" -&gt; "support"
     * "varible" -&gt; "variable"

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: allow to pass NULL for environment options</title>
<updated>2016-05-31T14:23:10+00:00</updated>
<author>
<name>Andreas Fenkart</name>
<email>andreas.fenkart@digitalstrom.com</email>
</author>
<published>2016-05-31T07:21:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=14070e69ad6d01abf65c06150dc9302bca1b7973'/>
<id>14070e69ad6d01abf65c06150dc9302bca1b7973</id>
<content type='text'>
If users of the library are happy with the default, e.g. config file
name. They can pass NULL as the opts pointer. This simplifies the
transition of existing library users.
FIXES a compile error. since common_args has been removed by
a previous patch

Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If users of the library are happy with the default, e.g. config file
name. They can pass NULL as the opts pointer. This simplifies the
transition of existing library users.
FIXES a compile error. since common_args has been removed by
a previous patch

Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: no global variable sharing between application and library</title>
<updated>2016-05-27T19:39:56+00:00</updated>
<author>
<name>Andreas Fenkart</name>
<email>andreas.fenkart@digitalstrom.com</email>
</author>
<published>2016-04-05T21:13:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=81974f4479d19c441c4a089aedd238c251626b3e'/>
<id>81974f4479d19c441c4a089aedd238c251626b3e</id>
<content type='text'>
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: compute size of usable area only once</title>
<updated>2016-05-27T13:56:19+00:00</updated>
<author>
<name>Andreas Fenkart</name>
<email>andreas.fenkart@digitalstrom.com</email>
</author>
<published>2016-04-19T20:43:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f71cee4bfc9a8f9be40a49ec2da84f4344e398fc'/>
<id>f71cee4bfc9a8f9be40a49ec2da84f4344e398fc</id>
<content type='text'>
for double buffering to work, redundant buffers must have equal size

Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
for double buffering to work, redundant buffers must have equal size

Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/env: fw_printenv pass value_only as argument</title>
<updated>2016-05-27T13:56:19+00:00</updated>
<author>
<name>Andreas Fenkart</name>
<email>andreas.fenkart@digitalstrom.com</email>
</author>
<published>2016-04-19T20:43:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cedb341e7f44f4686c8c0afb149a9f7940be110a'/>
<id>cedb341e7f44f4686c8c0afb149a9f7940be110a</id>
<content type='text'>
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andreas Fenkart &lt;andreas.fenkart@digitalstrom.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
