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

Improve build of psa-crypto-sys crate #15

Merged
merged 1 commit into from
May 26, 2020

Conversation

ionut-arm
Copy link
Member

This commit improves on the build mechanism for the sys crate. It moves
all temporary build material into OUT_DIR, including the mbedtls
config.h file and the build products of the library.

Signed-off-by: Ionut Mihalcea ionut.mihalcea@arm.com

This commit improves on the build mechanism for the sys crate. It moves
all temporary build material into OUT_DIR, including the mbedtls
config.h file and the build products of the library.

Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
@ionut-arm ionut-arm added the enhancement New feature or request label May 26, 2020
@ionut-arm ionut-arm requested review from hug-dev and egrimley-arm May 26, 2020 12:48
@ionut-arm ionut-arm self-assigned this May 26, 2020
Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

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

Looks very good!

Comment on lines +46 to +47
.arg("--write")
.arg(&(out_dir.clone() + "/config.h"))
Copy link
Member

Choose a reason for hiding this comment

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

👏

"making mbedtls returned an error status",
));
}
let mbed_build_path = Config::new("vendor")
Copy link
Member

Choose a reason for hiding this comment

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

The cmake crate automatically builds in OUT_DIR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that's one of the main reasons why I went with the crate version :)

@ionut-arm ionut-arm merged commit a82a19d into parallaxsecond:master May 26, 2020
@ionut-arm ionut-arm deleted the build branch May 26, 2020 13:45
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.

2 participants