-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Description of defect
imgtool files included in mbed-os in mbed-os/tools/psa/tfm/bin_utils and particularly imgtool.py file interferes with imgtool package installed in system.
For particular case, Cypress secure tools set called cysecuretools requires imgtool package from pip to operate. When user tries to compile a test or an example for Cypress target CY8C064B0S2_4343W he gets an error (log is provided below).
Target(s) affected by this defect ?
CY8C064B0S2_4343W
https://os.mbed.com/platforms/CY8CKIT-064B0S2-4343W/
Toolchain(s) (name and version) displaying this defect ?
gcc, arm, iar
What version of Mbed-os are you using (tag or sha) ?
latest master (at the time of opening 2e905a0)
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
Name: mbed-cli
Version: 1.10.4
How is this defect reproduced ?
Compile an example project for CY8CKIT064B0S2_4343W with mbed compile -m CY8CKIT064B0S2_4343W -t GCC_ARM -v
Get error:
Traceback (most recent call last): File "/Users/rnok/repos/mbed-os/tools/test_api.py", line 2091, in build_test_worker bin_file, _ = build_project(*args, **kwargs) File "/Users/rnok/repos/mbed-os/tools/build_api.py", line 621, in build_project res = toolchain.link_program(resources, build_path, name) File "/Users/rnok/repos/mbed-os/tools/toolchains/mbed_toolchain.py", line 804, in link_program post_build_hook(self, r, elf, full_path) File "/Users/rnok/repos/mbed-os/tools/targets/__init__.py", line 681, in sign_image psoc6_sign_image(t_self, resources, elf, binf, m0hexf) File "/Users/rnok/repos/mbed-os/tools/targets/PSOC6.py", line 180, in sign_image import cysecuretools File "/Users/rnok/.pyenv/versions/3.7.8/lib/python3.7/site-packages/cysecuretools/__init__.py", line 16, in <module> from cysecuretools.main import CySecureTools File "/Users/rnok/.pyenv/versions/3.7.8/lib/python3.7/site-packages/cysecuretools/main.py", line 47, in <module> from cysecuretools.execute.signtool import SignTool File "/Users/rnok/.pyenv/versions/3.7.8/lib/python3.7/site-packages/cysecuretools/execute/signtool.py", line 18, in <module> import imgtool.main as imgtool ModuleNotFoundError: No module named 'imgtool.main'; 'imgtool' is not a package