You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Wanda Chiu (JIRA)" <ji...@apache.org> on 2017/02/25 15:42:44 UTC

[jira] [Commented] (MYNEWT-543) setting sys cfg values via newt erases old settings

    [ https://issues.apache.org/jira/browse/MYNEWT-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884285#comment-15884285 ] 

Wanda Chiu commented on MYNEWT-543:
-----------------------------------

Hi David,
The behavior that you report is expected behavior and consistent with how all the other target variables are set. That is, the set command overrides the previous variable values.  The set command is meant for  an user to quickly set up a target with some values.  We recognize that it would be useful for users to change some variable settings without overriding all values, and have a feature enhancement JIRA for this (MYNEWT-640). 

We will update the documentation (and help text) to indicate that the *newt target set * command will override the previous variable values. 

For now, the workaround is to use the "newt target set" command to create a target syscfg.yml file with some initial setting values for your target, and then edit the target syscfg.yml to change or add setting values. 

> setting sys cfg values via newt erases old settings
> ---------------------------------------------------
>
>                 Key: MYNEWT-543
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-543
>             Project: Mynewt
>          Issue Type: Bug
>          Components: Newt
>    Affects Versions: v1_0_0_beta1
>         Environment: Mac OS X
>            Reporter: David G. Simmons
>            Assignee: Wanda Chiu
>            Priority: Minor
>             Fix For: v1_0_0_rel
>
>
> DSimmons-Pro:myproj dsimmons$ cat targets/air_q/syscfg.yml
> \### Package: targets/air_q
> syscfg.vals:
>     OPENOCD_DEBUG: 1
>     \# Enable the shell task.
>     SHELL_TASK: 1
>     STATS_CLI: 1
>     CONSOLE_TICKS: 1
>     CONSOLE_PROMPT: 1
> DSimmons-Pro:myproj dsimmons$ newt target set air_q  syscfg=OPENOCD_DEBUG=0
> Target targets/air_q successfully set target.syscfg to OPENOCD_DEBUG=0
> DSimmons-Pro:myproj dsimmons$ cat targets/air_q/syscfg.yml
> \### Package: targets/air_q
> syscfg.vals:
>     OPENOCD_DEBUG: 0
> DSimmons-Pro:myproj dsimmons$



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)