Skip to content
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

Add DRC to xclbinutil for Linux file command utility compliance #8337

Merged
merged 6 commits into from
Aug 9, 2024

Conversation

xvijaysri
Copy link
Contributor

Need to add a DRC to xclbinutil so the generated xclbin remains compliant with the expectations of the file utility (CR-1148239).

Specifically the following fields should always be populated for the file command to work:

struct axlf, m_header.m_length
struct axlf, m_header.m_timeStamp
struct axlf, m_header.m_platformVBNV
struct axlf, m_header.uuid
struct axlf, m_header.m_numSections

All these fields would be populated only when the xclbin contains atleast one section and platformVBNV information.

This feature is considered low risk as the DRC check happens only when the user specifies --file-check option in command line along with xclbin file.

Unit test has been added that verifies if the DRC check passes for valid xclbin file i.e., it contains the platformVBNV information and atleast one section.

@xvijaysri xvijaysri requested a review from stsoe August 6, 2024 22:39
@xvijaysri xvijaysri requested a review from rozumx as a code owner August 6, 2024 22:39
@gbuildx
Copy link
Collaborator

gbuildx commented Aug 6, 2024

Can one of the admins verify this patch?

@xvijaysri xvijaysri marked this pull request as draft August 6, 2024 22:46
@xvijaysri xvijaysri marked this pull request as ready for review August 7, 2024 14:19
@xvijaysri xvijaysri removed the request for review from rozumx August 8, 2024 14:28
@xvijaysri xvijaysri requested a review from xfreid August 8, 2024 18:54
@xvijaysri xvijaysri requested a review from xfreid August 9, 2024 17:55
Copy link
Collaborator

@xfreid xfreid left a comment

Choose a reason for hiding this comment

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

looks good
just a couple of very minor comments

Signed-off-by: xvijaysri <[email protected]>
Signed-off-by: xvijaysri <[email protected]>
@xvijaysri xvijaysri requested a review from stsoe August 9, 2024 21:22
Copy link
Collaborator

@stsoe stsoe left a comment

Choose a reason for hiding this comment

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

spelling, else good.

@stsoe stsoe merged commit 1522bce into Xilinx:master Aug 9, 2024
17 checks passed
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.

4 participants