Support DESTDIR for install and add build-system test#10631
Support DESTDIR for install and add build-system test#10631yiwu0b11 wants to merge 13 commits intoMbed-TLS:developmentfrom
Conversation
Signed-off-by: Yi Wu <yi.wu2@arm.com>
|
Also |
Not respect DESTDIR during create symlinks libmbedcrypto.so*. Upstream issue: Mbed-TLS/mbedtls#10627 - Add fix for installing libmbedcrypto.so from upstream pool request: Mbed-TLS/mbedtls#10631 - Add strip for libmbedcrypto.so. - Sort pkg-plist. PR: 293653 Approved by: Paavo-Einari Kaipila <pkaipila@gmail.com> (maintainer)
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
gilles-peskine-arm
left a comment
There was a problem hiding this comment.
LGTM for the fix. The non-regression test is fine but the code is a bit too complicated.
|
Note that we should side-port the test, and presumably the fix, to TF-PSA-Crypto. |
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
gilles-peskine-arm
left a comment
There was a problem hiding this comment.
LGTM for what this is attempting to do. The CI is complaining and I haven't found the mistake that it found.
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
gilles-peskine-arm
left a comment
There was a problem hiding this comment.
LGTM except the if structure
|
|
||
| install_lib_path="$OUT_OF_SOURCE_DIR/stage/usr/${install_lib_subdir}" | ||
|
|
||
| if [[ "$OSTYPE" != darwin* ]]; then |
There was a problem hiding this comment.
Now the else branch is unreachable. Also, please avoid stacking negations, as they make the code harder to understand. In general, avoid if not x then A else B: write if x then B else A. (Keep if not x then A when there's no else clause.) So here:
if [[ "$OSTYPE" == "darwin" ]]; then …
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Signed-off-by: Yi Wu <yi.wu2@arm.com>
gilles-peskine-arm
left a comment
There was a problem hiding this comment.
LGTM but we could simplify the validation of the link a bit
Signed-off-by: Yi Wu <yi.wu2@arm.com>
Description
Add support for
DESTDIRenv for build install.Tests are added
Issue: #10627
PR checklist