]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fdt: update 'fdtsize' env variable when resizing FDT
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 25 Oct 2013 08:29:35 +0000 (10:29 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 25 Oct 2013 08:29:35 +0000 (10:29 +0200)
common/fdt_support.c

index 18af0fa312339026cc0d3dedb3e80166a002d3b7..ce7527a931563f49fa585964451b60c1415a2816 100644 (file)
@@ -515,7 +515,8 @@ int fdt_resize(void *blob)
        ret = fdt_add_mem_rsv(blob, (uintptr_t)blob, actualsize);
        if (ret < 0)
                return ret;
-
+       if (getenv("fdtsize"))
+               setenv_hex("fdtsize", actualsize);
        return actualsize;
 }