-
Notifications
You must be signed in to change notification settings - Fork 653
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
Ocp wo json #2503
base: master
Are you sure you want to change the base?
Ocp wo json #2503
Conversation
I was wondering if we should move the json code into a separate files and only include them when the json library is available, like we have with |
Okay will try to do it. Thank you. |
cbe3ac5
to
a0c0cdf
Compare
At first only hwcomp print code moved. Signed-off-by: Tokunori Ikegami <[email protected]>
a0c0cdf
to
b76ae83
Compare
plugins/ocp/meson.build
Outdated
@@ -6,5 +6,9 @@ sources += [ | |||
'plugins/ocp/ocp-fw-activation-history.c', | |||
'plugins/ocp/ocp-telemetry-decode.c', | |||
'plugins/ocp/ocp-hardware-component-log.c', | |||
'plugins/ocp/ocp-print.c', | |||
'plugins/ocp/ocp-print-stdout.c', | |||
'plugins/ocp/ocp-print-json.c', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The json file should only be added when the json library is available. And then you could update the plugins/meson.build
file to always build the ocp plugin.
The rest looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the meson.build files by the additional commit. Thank you.
Note: Still some exisitng ocp commands files needed to split json code.
Still ocp-nvme.c and some other ocp commands files depended on json. Signed-off-by: Tokunori Ikegami <[email protected]>
Moved into print stdout and json files. Signed-off-by: Tokunori Ikegami <[email protected]>
No description provided.