-
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. |
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.
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.
So do you want me to wait with merging this and wait until you finished the json code splitting?
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.
No need to wait for me. Still working on this but I am okay to do it by additional PRs. Thank you.
f498907
to
86d149f
Compare
At first only hwcomp print code moved. Signed-off-by: Tokunori Ikegami <[email protected]>
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]>
Move into ocp-print-stdout.c and ocp-print-json.c. Signed-off-by: Tokunori Ikegami <[email protected]>
Still the ocp-telemetry-decode used by print functions combined json code. Signed-off-by: Tokunori Ikegami <[email protected]>
Move into ocp-print-stdout.c and ocp-print-json.c. Signed-off-by: Tokunori Ikegami <[email protected]>
Move into ocp-print-stdout.c and ocp-print-json.c. Signed-off-by: Tokunori Ikegami <[email protected]>
All OCP |
eb93edc
to
906aed0
Compare
Move into ocp-print-stdout.c and ocp-print-json.c. Signed-off-by: Tokunori Ikegami <[email protected]>
Move into ocp-print-stdout.c and ocp-print-json.c. Signed-off-by: Tokunori Ikegami <[email protected]>
Move into ocp-print-stdout.c and ocp-print-json.c. Signed-off-by: Tokunori Ikegami <[email protected]>
Move into ocp-print-stdout.c and ocp-print-json.c. Signed-off-by: Tokunori Ikegami <[email protected]>
Still ocp-telemetry-decode.c includes json code so check CONFIG_JSON. Signed-off-by: Tokunori Ikegami <[email protected]>
b7d6053
to
5fa9f08
Compare
Also fix to use cpu_to_le64 to output __le64 values. Signed-off-by: Tokunori Ikegami <[email protected]>
Fix also some build warnings. Signed-off-by: Tokunori Ikegami <[email protected]>
No description provided.