Skip to content

Clean CFLAGS-family and DEB_* environment before building the AMC firmware#79

Merged
quetric merged 2 commits intoXilinx:devfrom
amd-vserbu:fix/dont-propagate-flags-to-fw
May 7, 2026
Merged

Clean CFLAGS-family and DEB_* environment before building the AMC firmware#79
quetric merged 2 commits intoXilinx:devfrom
amd-vserbu:fix/dont-propagate-flags-to-fw

Conversation

@amd-vserbu
Copy link
Copy Markdown

The debian package builder sets CFLAGS with x86-specific hardening options. For normal applications (such as the daemon or libvrt), this is normal and expected.

For the AMC firmware, this either causes the build to fail entirely, or, for the AMC firmware to stack overflow.

Fundamentally, the firmware compilation should be treated as separate, and the package builders should not inject any flags into the firmware build.

This PR unsets the environment variables before running the AMC build script.

Signed-off-by: Vlad Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
@amd-vserbu
Copy link
Copy Markdown
Author

This should fix issue #66

Signed-off-by: Vlad Gabriel Serbu <Vlad-Gabriel.Serbu@amd.com>
@hpc-aulmamei hpc-aulmamei self-requested a review May 7, 2026 14:54
@hpc-aulmamei
Copy link
Copy Markdown
Collaborator

lgtm

@quetric quetric merged commit dfbb957 into Xilinx:dev May 7, 2026
3 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.

3 participants