build: set owner root for all files on ubifs creation
[openwrt.git] / package / boot / uboot-envtools / patches / 0001-fw_env-add-redundant-env-support-for-MTD_ABSENT.patch
1 From: Oliver Metz <oliver@freetz.org>
2 Subject: [PATCH v2 1/2] fw_env: add redundant env support for MTD_ABSENT
3
4 Signed-off-by: Oliver Metz <oliver@freetz.org>
5 Tested-by: Luka Perkov <luka@openwrt.org>
6 ---
7
8 v1 -> v2:
9  * correct spelling of redundant
10
11 http://lists.denx.de/pipermail/u-boot/2013-August/161694.html
12 http://patchwork.ozlabs.org/patch/270993/
13
14  tools/env/fw_env.c | 3 +++
15  1 file changed, 3 insertions(+)
16
17 --- a/tools/env/fw_env.c
18 +++ b/tools/env/fw_env.c
19 @@ -1152,6 +1152,9 @@ int fw_env_open(void)
20                 } else if (DEVTYPE(dev_current) == MTD_UBIVOLUME &&
21                            DEVTYPE(!dev_current) == MTD_UBIVOLUME) {
22                         environment.flag_scheme = FLAG_INCREMENTAL;
23 +               } else if (DEVTYPE(dev_current) == MTD_ABSENT &&
24 +                          DEVTYPE(!dev_current) == MTD_ABSENT) {
25 +                       environment.flag_scheme = FLAG_INCREMENTAL;
26                 } else {
27                         fprintf (stderr, "Incompatible flash types!\n");
28                         return -1;