Skip to content

lopper:assists:baremetal_getsupported_comp_xlnx: Add support to inclu… #552

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sathishkumar-amd
Copy link
Contributor

…de the examples in the lib_list.yaml

In the current implementation the examples are not included in the lib_list yaml file, Add support to include the examples in the lib_list.yaml to show the available examles for the library in the GUI. To enhance functionality, add support for reading examples from custom configurations in YAML files. If a YAML file contains a condition within the examples section in the form of a Python code block, read and execute this code to update the examples based on the specified conditions. This approach allows dynamic configuration adjustments based on predefined logic, improving flexibility and customization in managing examples

@sathishkumar-amd
Copy link
Contributor Author

Hi @onkarharsh and @kedareswararao
Please review this

@@ -46,7 +75,7 @@ def xlnx_baremetal_getsupported_comp(tgt_node, sdt, options):

matched_node = get_cpu_node(sdt, options)
proc_ip_name = matched_node['xlnx,ip-name'].value[0]

family = sdt.tree.dct['family'][0]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to use propval() if possible, that takes care of exceptions as well..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used propval() as suggested

…de the examples in the lib_list.yaml

In the current implementation the examples are not included in the lib_list yaml file,
Add support to include the examples in the lib_list.yaml to show the available examles for the library in the GUI.
To enhance functionality, add support for reading examples from custom configurations in YAML files.
If a YAML file contains a condition within the examples section in the form of a Python code block,
read and execute this code to update the examples based on the specified conditions.
This approach allows dynamic configuration adjustments based on predefined logic,
improving flexibility and customization in managing examples

Signed-off-by: Sathish Kumar Kamishettigari <sathishkumar.kamishettigari@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants