Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use syscfg settings for sysinit stage numbers #168

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/img_mgmt/port/mynewt/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ pkg.deps:
- '@apache-mynewt-core/sys/log/modlog'

pkg.init:
img_mgmt_module_init: 501
img_mgmt_module_init: 'MYNEWT_VAL(IMG_MGMT_SYSINIT_STAGE)'
3 changes: 3 additions & 0 deletions cmd/img_mgmt/port/mynewt/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ syscfg.defs:
IMG_MGMT_LOG_LVL:
description: 'Minimum level for the image management structured log.'
value: 15 # Log disabled by default.
IMG_MGMT_SYSINIT_STAGE:
description: System initalization stage for IMG_MGMT package
value: 501

syscfg.logs:
IMG_MGMT_LOG:
Expand Down
2 changes: 1 addition & 1 deletion cmd/log_mgmt/port/mynewt/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ pkg.deps:
- '@apache-mynewt-mcumgr/mgmt'

pkg.init:
log_mgmt_module_init: 501
log_mgmt_module_init: 'MYNEWT_VAL(LOG_MGMT_SYSINIT_STAGE)'
5 changes: 5 additions & 0 deletions cmd/log_mgmt/port/mynewt/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ syscfg.defs:
management commands.
value: 64

LOG_MGMT_SYSINIT_STAGE:
description: >
System Initalization stage for LOG MGMT package
value: 501

# For backwards compatibility with log nmgr
syscfg.vals.LOG_NMGR_MAX_RSP_LEN:
LOG_MGMT_MAX_RSP_SIZE: MYNEWT_VAL(LOG_NMGR_MAX_RSP_LEN)
2 changes: 1 addition & 1 deletion cmd/os_mgmt/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ pkg.ign_files:
- "stubs.c"

pkg.init:
os_mgmt_module_init: 501
os_mgmt_module_init: 'MYNEWT_VAL(OS_MGMT_SYSINIT_STAGE)'
5 changes: 5 additions & 0 deletions cmd/os_mgmt/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ syscfg.defs:
description: >
Enable support for echo command.
value: 1

OS_MGMT_SYSINIT_STAGE:
description: >
System Initialization stage for OS_MGMT package
value: 501
2 changes: 1 addition & 1 deletion cmd/stat_mgmt/port/mynewt/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ pkg.deps:
- '@apache-mynewt-mcumgr/mgmt'

pkg.init:
stat_mgmt_module_init: 501
stat_mgmt_module_init: 'MYNEWT_VAL(STAT_MGMT_SYSINIT_STAGE)'
24 changes: 24 additions & 0 deletions cmd/stat_mgmt/port/mynewt/syscfg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

syscfg.defs:
STAT_MGMT_SYSINIT_STAGE:
description: >
System Initialization stage for STAT_MGMT package
value: 501