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

CMakeLists: Add and support a RISCV_NONE toolchain #2428

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

alistair23
Copy link
Contributor

Add a RISCV_NONE toolchain to target an embedded RISC-V environment.

This allows building libspdm libraries with mbedtls in an embedded environment. We can then use newlibc to create final binaries with libspdm

Tested with:

cmake -DARCH=riscv32 -DTOOLCHAIN=RISCV_NONE -DTARGET=Debug -DCRYPTO=mbedtls -DDISABLE_TESTS=1 ..

@steven-bellock steven-bellock added the enhancement New feature or request label Nov 7, 2023
Copy link
Contributor

@steven-bellock steven-bellock left a comment

Choose a reason for hiding this comment

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

@alistair23
Copy link
Contributor Author

Done!

doc/build.md Show resolved Hide resolved
doc/build.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@alistair23 alistair23 force-pushed the alistair/embedded branch 2 times, most recently from eee5354 to 0829897 Compare November 10, 2023 00:26
doc/build.md Show resolved Hide resolved
doc/build.md Outdated Show resolved Hide resolved
doc/build.md Outdated Show resolved Hide resolved
doc/build.md Outdated Show resolved Hide resolved
doc/build.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Similar to OPENSSL_FLAGS add a MBEDTLS_FLAGS CMake variable.

Signed-off-by: Alistair Francis <[email protected]>
Add a RISCV_NONE toolchain to target an embedded environment. This
allows building libspdm libraries with mbedtls.

Signed-off-by: Alistair Francis <[email protected]>
@jyao1 jyao1 merged commit 874e4a9 into DMTF:main Nov 29, 2023
90 checks passed
@alistair23 alistair23 deleted the alistair/embedded branch November 29, 2023 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants