You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/11/05 20:39:26 UTC

[mynewt-core] 01/02: sys/reboot: Move LOG_SOFT_RESET to mcumgr

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 1ac69beccd09dff5bd0fbcc2a31a20868b5cdbee
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri Nov 5 09:49:30 2021 +0100

    sys/reboot: Move LOG_SOFT_RESET to mcumgr
    
    sys/reboot defined value LOG_SOFT_RESET that it never used.
    mgmt/smp and mgmt/smp/smp_os used this value to include sys/reboot
    which did not do anything due to catch 22.
    
    This change removes LOG_SOFT_RESET from mynewt-core it will be added
    to package in mcumgr that uses it.
---
 mgmt/smp/pkg.yml        | 3 ---
 mgmt/smp/smp_os/pkg.yml | 3 ---
 sys/reboot/syscfg.yml   | 5 -----
 3 files changed, 11 deletions(-)

diff --git a/mgmt/smp/pkg.yml b/mgmt/smp/pkg.yml
index b816ffb..616c641 100644
--- a/mgmt/smp/pkg.yml
+++ b/mgmt/smp/pkg.yml
@@ -31,9 +31,6 @@ pkg.deps:
     - "@apache-mynewt-mcumgr/smp"
     - "@apache-mynewt-mcumgr/cmd/os_mgmt"
 
-pkg.deps.LOG_SOFT_RESET:
-    - "@apache-mynewt-core/sys/reboot"
-
 pkg.deps.TIMEPERSIST:
     - "@apache-mynewt-core/time/timepersist"
 
diff --git a/mgmt/smp/smp_os/pkg.yml b/mgmt/smp/smp_os/pkg.yml
index c6da594..e4e7e13 100644
--- a/mgmt/smp/smp_os/pkg.yml
+++ b/mgmt/smp/smp_os/pkg.yml
@@ -32,9 +32,6 @@ pkg.deps:
     - "@apache-mynewt-core/encoding/tinycbor"
     - "@apache-mynewt-mcumgr/cborattr"
 
-pkg.deps.LOG_SOFT_RESET:
-    - "@apache-mynewt-core/sys/reboot"
-
 pkg.deps.TIMEPERSIST:
     - "@apache-mynewt-core/time/timepersist"
 
diff --git a/sys/reboot/syscfg.yml b/sys/reboot/syscfg.yml
index bde712d..70dcdb3 100644
--- a/sys/reboot/syscfg.yml
+++ b/sys/reboot/syscfg.yml
@@ -59,8 +59,3 @@ syscfg.defs:
     REBOOT_LOG_MOD:
         description: 'Numeric module ID to use for reboot log messages.'
         value: 6
-
-    LOG_SOFT_RESET:
-        description: >
-            Log soft resets.
-        value: 1