Thanks Chris, this is super helpful. Is there a definitive list somewhere of 
all the possible settings/values for the syscfg.yml file that are accepted? 
Since I'm documenting everything I come across, this seems like a good thing to 
document. :-) 

dg

> On Oct 27, 2016, at 6:50 PM, Christopher Collins <[email protected]> wrote:
> 
> Hi David,
> 
> On Thu, Oct 27, 2016 at 06:03:22PM -0400, David G. Simmons wrote:
>> There must be more to it than this ... 
>> 
>> # Package: apps/bletiny
>> 
>> syscfg.vals:
>>    SHELL_TASK: 1
>>    STATS_NAMES: 1
>> 
>> I can confirm that changing SHELL_TASK to 0 does indeed disable the
>> shell, but STATS_NAME does not seem to enable stats. 
> 
> That syscfg.yml file looks good to me.  However, I think you may need to
> enable some additional settings.  The STATS_NAMES setting causes name
> strings to be included in the build, but the stats won't necessarily be
> accessible.  
> 
> A good way to see the available settings is to use the "newt target
> configure <target-name>" command.  When I use this command on a target
> of mine, I see the following settings defined by the sys/stats package:
> 
>    [ccollins@pseudoephedrine:~/repos/mynewt/core]$ newt target config 
> bleprph-nrf52dk
>        # [...]
> 
>        * PACKAGE: sys/stats
>          * Setting: STATS_CLI
>            * Description: Expose the "stat" shell command.
>            * Value: 0
>          * Setting: STATS_NAMES
>            * Description: Include and report the textual name of each 
> statistic.
>            * Value: 0
>          * Setting: STATS_NEWTMGR
>            * Description: Expose the "stat" newtmgr command.
>            * Value: 0
> 
> (Before someone calls me out, yes, the descriptions were all "TBD" until
> about five seconds ago! :)
> 
> I think you probably want one or both of STATS_CLI / STATS_NEWTMGR.
> 
> Sorry for the confusion.  The default behavior of some packages has
> changed, and we haven't done a very good job of explaining it on the dev
> list.
> 
> Chris

--
David G. Simmons
(919) 534-5099
Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin 
<http://linkedin.com/in/davidgsimmons> • Twitter 
<http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs>
/** Message digitally signed for security and authenticity.  
* If you cannot read the PGP.sig attachment, please go to 
 * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!!
 * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/>
**/
♺ This email uses 100% recycled electrons. Don't blow it by printing!

There are only 2 hard things in computer science: Cache invalidation, naming 
things, and off-by-one errors.


Reply via email to