-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cypress signtool unable to locate imgtool during Post-Build #14022
Comments
Note: CYTFM_064B0S2_4343W is excluded until github.com/ARMmbed/mbed-os/issues/14022 is fixed.
Note: CYTFM_064B0S2_4343W is excluded until github.com/ARMmbed/mbed-os/issues/14022 is fixed.
Note: CYTFM_064B0S2_4343W is excluded until github.com/ARMmbed/mbed-os/issues/14022 is fixed.
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
cc @ARMmbed/team-cypress Please review |
I can reproduce the same issue on my MacBook but there are no failures in CI. See a recent PR |
@jainvikas8 and I can also reproduce this issue on Windows and Linux. Maybe the issue is specific to newer versions of Python or packages, but we are not sure. |
This problem is related to this issue: #14153 It seems imgtool is included in mbed-os/tools/psa/tfm/bin_utils. Any reason why it's included in this way? Possible we can delete this version and rely on pip install. |
@RaymondNgun As we are now porting post build hooks (cypress part almost ready to be merged to master) and TFM (soon), this should be fixed there. Would anyone be able to help ? |
@0xc0170, I don't quite follow. Do you expect this to be fixed in the post build integration stream? |
Fixes: ARMmbed#14022 The post binary hook that signs CYTFM_064B0S2_4343W requires either version 2.0.0 or 2.1.0 of cysecuretools.
Fix is here: https://github.com/ARMmbed/mbed-os/pull/14329/files |
@LDong-Arm, we will likely want to move to newer tools at some point. Correct? Fix it when we get there? |
@RaymondNgun I'll upload a fix soon. |
See this fix: LDong-Arm@e5901ec Note that we may not be able to merge that fix as of this week, because we're waiting for some other work to be merged first, to avoid code conflicts. |
@LDong-Arm - That looks great! Thanks! |
Previously, CYTFM_064B0S2_4343W's post-build script was unable to run due to ARMmbed/mbed-os#14022 so we did not include this target. The issue has since been fixed. Fixes ARMmbed#14
Description of defect
When compiling any application (e.g. mbed-os-example-blinky) for
CYTFM_064B0S2_4343W
, we get the following Python-dependency error:We have both
cysecuretools
andimgtool
installed throughpip
. @jainvikas8 and I tried the compilation on multiple host OSs (Windows, Linux, macOS) and Python versions (3.6, 3.7 and 3.8) and had the same issue in all cases.@ARMmbed/team-cypress
Target(s) affected by this defect ?
CYTFM_064B0S2_4343W
Toolchain(s) (name and version) displaying this defect ?
Not toolchain related.
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.5.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
I tried downgrading cysecuretools and imgtool but it didn't solve the problem.
How is this defect reproduced ?
Compile any Mbed application for CYTFM_064B0S2_4343W.
The text was updated successfully, but these errors were encountered: