You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/09/22 23:29:25 UTC
[1/3] incubator-mynewt-core git commit: Console - init early in case
of startup crash.
Repository: incubator-mynewt-core
Updated Branches:
refs/heads/develop 94737dee6 -> 2454b8c18
Console - init early in case of startup crash.
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/2454b8c1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/2454b8c1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/2454b8c1
Branch: refs/heads/develop
Commit: 2454b8c1866c9caf04ca5e4cfb070c75a5f619dd
Parents: 742b7c4
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Sep 22 16:28:40 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Sep 22 16:29:16 2016 -0700
----------------------------------------------------------------------
libs/console/full/pkg.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/2454b8c1/libs/console/full/pkg.yml
----------------------------------------------------------------------
diff --git a/libs/console/full/pkg.yml b/libs/console/full/pkg.yml
index 69e3ddb..cf0e2d2 100644
--- a/libs/console/full/pkg.yml
+++ b/libs/console/full/pkg.yml
@@ -30,4 +30,4 @@ pkg.deps:
pkg.apis: console
pkg.init_function: console_pkg_init
-pkg.init_stage: 5
+pkg.init_stage: 0
[2/3] incubator-mynewt-core git commit: boot[util] - Remove
config/fs/nffs vestiges.
Posted by cc...@apache.org.
boot[util] - Remove config/fs/nffs vestiges.
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/742b7c48
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/742b7c48
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/742b7c48
Branch: refs/heads/develop
Commit: 742b7c48e4955642086cad57c128d6891e3f5fbb
Parents: a783368
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Sep 22 16:21:51 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Sep 22 16:29:16 2016 -0700
----------------------------------------------------------------------
apps/boot/pkg.yml | 13 -------------
apps/boot/src/boot.c | 2 --
libs/bootutil/pkg.yml | 7 -------
libs/bootutil/src/bootutil_misc.c | 1 -
4 files changed, 23 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/742b7c48/apps/boot/pkg.yml
----------------------------------------------------------------------
diff --git a/apps/boot/pkg.yml b/apps/boot/pkg.yml
index 22566b6..b8f8062 100644
--- a/apps/boot/pkg.yml
+++ b/apps/boot/pkg.yml
@@ -26,18 +26,11 @@ pkg.keywords:
- loader
pkg.deps:
- - sys/config
- libs/bootutil
- libs/os
- libs/util
- libs/console/stub
-pkg.deps.BOOT_NFFS:
- - fs/nffs
-
-pkg.deps.BOOT_FCB:
- - sys/fcb
-
pkg.deps.BOOT_SERIAL.OVERWRITE:
- libs/console/full
- libs/boot_serial
@@ -46,12 +39,6 @@ pkg.syscfg_defs:
BOOT_LOADER:
description: 'TBD'
value: 1
- BOOT_NFFS:
- description: 'TBD'
- value: 1
- BOOT_FCB:
- description: 'TBD'
- value: 0
BOOT_SERIAL:
description: 'TBD'
value: 0
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/742b7c48/apps/boot/src/boot.c
----------------------------------------------------------------------
diff --git a/apps/boot/src/boot.c b/apps/boot/src/boot.c
index fa0ba84..1a98a5b 100755
--- a/apps/boot/src/boot.c
+++ b/apps/boot/src/boot.c
@@ -27,8 +27,6 @@
#include <hal/hal_bsp.h>
#include <hal/hal_system.h>
#include <hal/hal_flash.h>
-#include <config/config.h>
-#include <config/config_file.h>
#if MYNEWT_VAL(BOOT_SERIAL)
#include <hal/hal_gpio.h>
#include <boot_serial/boot_serial.h>
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/742b7c48/libs/bootutil/pkg.yml
----------------------------------------------------------------------
diff --git a/libs/bootutil/pkg.yml b/libs/bootutil/pkg.yml
index 1293ea8..77599f8 100644
--- a/libs/bootutil/pkg.yml
+++ b/libs/bootutil/pkg.yml
@@ -29,15 +29,8 @@ pkg.deps:
- hw/hal
- libs/mbedtls
- libs/os
- - sys/config
-
-pkg.deps.BOOTUTIL_NFFS:
- - fs/nffs
pkg.syscfg_defs:
- BOOTUTIL_NFFS:
- description: 'TBD'
- value: 'MYNEWT_PKG_FS_NFFS'
BOOTUTIL_SIGN_RSA:
description: 'TBD'
value: '0'
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/742b7c48/libs/bootutil/src/bootutil_misc.c
----------------------------------------------------------------------
diff --git a/libs/bootutil/src/bootutil_misc.c b/libs/bootutil/src/bootutil_misc.c
index b6a1c31..f64d2a4 100644
--- a/libs/bootutil/src/bootutil_misc.c
+++ b/libs/bootutil/src/bootutil_misc.c
@@ -25,7 +25,6 @@
#include "hal/hal_bsp.h"
#include "hal/hal_flash.h"
#include "hal/flash_map.h"
-#include "config/config.h"
#include "os/os.h"
#include "bootutil/image.h"
#include "bootutil/loader.h"
[3/3] incubator-mynewt-core git commit: console - Don't attempt write
if uninitialized.
Posted by cc...@apache.org.
console - Don't attempt write if uninitialized.
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/a7833689
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/a7833689
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/a7833689
Branch: refs/heads/develop
Commit: a7833689ea50889dee3471f02056db8557f9ad12
Parents: 94737de
Author: Christopher Collins <cc...@apache.org>
Authored: Thu Sep 22 16:20:53 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Thu Sep 22 16:29:16 2016 -0700
----------------------------------------------------------------------
libs/console/full/src/cons_fmt.c | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/a7833689/libs/console/full/src/cons_fmt.c
----------------------------------------------------------------------
diff --git a/libs/console/full/src/cons_fmt.c b/libs/console/full/src/cons_fmt.c
index 2b64c01..9995322 100644
--- a/libs/console/full/src/cons_fmt.c
+++ b/libs/console/full/src/cons_fmt.c
@@ -41,6 +41,10 @@ console_printf(const char *fmt, ...)
{
va_list args;
+ if (!console_is_init()) {
+ return;
+ }
+
/* Prefix each line with a timestamp. */
if (!console_is_midline) {
fprintf((FILE *)&console_file, "%lu:", (unsigned long)os_time_get());
@@ -60,6 +64,10 @@ console_printf(const char *fmt, ...)
char buf[CONS_OUTPUT_MAX_LINE];
int len;
+ if (!console_is_init()) {
+ return;
+ }
+
/* Prefix each line with a timestamp. */
if (!console_is_midline) {
len = snprintf(buf, sizeof(buf), "%lu:", (unsigned long)os_time_get());