[
https://issues.apache.org/jira/browse/MYNEWT-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christopher Collins resolved MYNEWT-305.
----------------------------------------
Resolution: Fixed
I have removed the old (broken) means of listing valid values ("newt target set
<target-name> <setting-name>") and replaced it with the "newt vals" command:
{noformat}
vals - Displays valid values for the specified element type(s).
Element types:
api
app
bsp
build_profile
compiler
feature
lib
sdk
target
Usage:
newt vals <element-type> [element-types...] [flags]
{noformat}
Note: I did not add support for cflags or lflags. I don't think it is possible
to enumerate these, as they are can have any value the user wants.
> Newt does not display possible values for target attributes "features",
> "cflags", "lflags", and "build_profile"
> ----------------------------------------------------------------------------------------------------------------
>
> Key: MYNEWT-305
> URL: https://issues.apache.org/jira/browse/MYNEWT-305
> Project: Mynewt
> Issue Type: Improvement
> Components: Newt
> Affects Versions: v1_0_0_beta1
> Reporter: Aditi Hilbert
> Assignee: Christopher Collins
> Fix For: v1_0_0_beta1
>
>
> Newt is supposed to display all the existing values for a target variable
> (attribute) when the user hits return after that variable. For example, for
> my target named "primoble" it displays the following possible bsp's.
> $ newt target set primoble bsp
> Valid values for target variable "target.bsp":
> @apache-mynewt-core/hw/bsp/bmd300eval
> @apache-mynewt-core/hw/bsp/nrf51dk
> @apache-mynewt-core/hw/bsp/nrf52pdk
> @apache-mynewt-core/hw/bsp/olimex_stm32-e407_devboard
> @apache-mynewt-core/hw/bsp/nrf51-arduino_101
> @apache-mynewt-core/hw/bsp/native
> @apache-mynewt-core/hw/bsp/nrf51dk-16kbram
> @apache-mynewt-core/hw/bsp/arduino_primo_nrf52
> @apache-mynewt-core/hw/bsp/nrf52dk
> However, features available for the target are not displayed:
> $ newt target set primoble features
> Valid values for target variable "target.features":
> Error: Unknown target variable: "target.features"
> For "features", valid values for the defined bsp should be displayed. If the
> bsp is not defined for the target, all possible values (such as
> "openocd_debug", "arduino_zero_pro" etc.) should be displayed with a
> statement "Set the bsp for the target to see valid features for the bsp").
> The possible values should be displayed for cflags (-DSTATS_NAME_ENABLE,
> -DLOG_LEVEL, -DBLETEST, ...), lflags (don't know the values), and
> build_profile ('optimized', 'debug') as well instead of the following error.
> $ newt target set primoble cflags
> Valid values for target variable "target.cflags":
> Error: Unknown target variable: "target.cflags"
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)