You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/04/12 00:33:49 UTC

[3/3] incubator-mynewt-core git commit: boot/bootutil; also move call to fs_mkdir() to boot/main.c:main().

boot/bootutil; also move call to fs_mkdir() to boot/main.c:main().


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/6b24447d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/6b24447d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/6b24447d

Branch: refs/heads/develop
Commit: 6b24447dcb4c176cff995c331d2d10191283a4dc
Parents: 88045b4
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Apr 11 15:32:29 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Apr 11 15:32:29 2016 -0700

----------------------------------------------------------------------
 apps/boot/src/boot.c       | 4 ++++
 libs/bootutil/src/loader.c | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/6b24447d/apps/boot/src/boot.c
----------------------------------------------------------------------
diff --git a/apps/boot/src/boot.c b/apps/boot/src/boot.c
index 3059f7d..5157364 100755
--- a/apps/boot/src/boot.c
+++ b/apps/boot/src/boot.c
@@ -109,6 +109,10 @@ main(void)
          */
         nffs_detect(nffs_descs);
     }
+
+    /* Create the boot directory if it doesn't already exist. */
+    fs_mkdir("/boot");
+
     log_init();
 
     rc = boot_go(&req, &rsp);

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/6b24447d/libs/bootutil/src/loader.c
----------------------------------------------------------------------
diff --git a/libs/bootutil/src/loader.c b/libs/bootutil/src/loader.c
index 6949d39..32a7189 100644
--- a/libs/bootutil/src/loader.c
+++ b/libs/bootutil/src/loader.c
@@ -610,9 +610,6 @@ boot_go(const struct boot_req *req, struct boot_rsp *rsp)
      */
     boot_req = req;
 
-    /* Create the boot directory if it doesn't already exist. */
-    fs_mkdir("/boot");
-
     /* Read the boot status to determine if an image copy operation was
      * interrupted (i.e., the system was reset before the boot loader could
      * finish its task last time).