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 configurable target support to build scripts #25

Merged
merged 3 commits into from
Feb 18, 2024

Conversation

taprinz
Copy link
Contributor

@taprinz taprinz commented Feb 6, 2024

Initial step to formalize some of the work I've done to get this working on riscv64 as per #10.

This change doesn't do much specifically for riscv64 support but allows the user to select the target for an SPDM-RS build. I've left the default as x86_64-unknown-none, since that's the only formally supported architecture at the moment.

The changes to pre_build.sh are because specific architectures might require specific patches. I had experimented with a riscv64 specific patch and expect one will be needed (as will specifics for other architectures if we ever want to support them). This also would allow an integrator to utilize the build scripts for any custom platforms they may want to add.

@@ -203,16 +204,22 @@ run() {
CHECK_OPTION=false
BUILD_OPTION=false
RUN_OPTION=false
TARGET_OPTION=x86_64-unknown-none
Copy link
Contributor Author

@taprinz taprinz Feb 6, 2024

Choose a reason for hiding this comment

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

Unsure if it's bad practice in shell scripts to define the variable later than a function may refer to it, like the build function above

@jyao1 jyao1 merged commit 3c67890 into ccc-spdm-tools:main Feb 18, 2024
47 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.

2 participants