CI: install python-cryptography for world build
PATCH 1/1 CI: install python-cryptography for world build
The mkmbn Python tool used for some Qualcomm platforms needs the cryptography module, make sure it's installed so the world build can succeed.
--- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
.azure-pipelines.yml +1 -1
@@ -733,9 +733,9 @@ stages: python3 -m venv /tmp/venv . /tmp/venv/bin/activate pip install -r tools/binman/requirements.txt \ -r tools/buildman/requirements.txt \ - setuptools + setuptools cryptography if [[ "${BUILDMAN}" != "" ]]; then ret=0; tools/buildman/buildman -o /tmp -PEWM ${BUILDMAN} ${OVERRIDE} || ret=$?; if [[ $ret -ne 0 ]]; then
.gitlab-ci.yml +1 -1
@@ -153,9 +153,9 @@ build all platforms in a single job: - python3 -m venv /tmp/venv; . /tmp/venv/bin/activate; pip install -r tools/binman/requirements.txt -r tools/buildman/requirements.txt - setuptools + setuptools cryptography - ret=0; git config --global --add safe.directory "${CI_PROJECT_DIR}"; ./tools/buildman/buildman -o /tmp -PEWM -x xtensa || ret=$?; if [[ $ret -ne 0 ]]; then
Signature · 1 line
2.55.0
Quoted 30 lines · Casey Connolly
The mkmbn Python tool used for some Qualcomm platforms needs the cryptography module, make sure it's installed so the world build can succeed.
Signed-off-by Casey Connolly <[email protected]>--- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-).azure-pipelines.yml +1
-1@@ -733,9 +733,9 @@ stages: python3 -m venv /tmp/venv . /tmp/venv/bin/activate pip install -r tools/binman/requirements.txt \ -r tools/buildman/requirements.txt \ - setuptools + setuptools cryptography if [[ "${BUILDMAN}" != "" ]]; then ret=0; tools/buildman/buildman -o /tmp -PEWM ${BUILDMAN} ${OVERRIDE} || ret=$?; if [[ $ret -ne 0 ]]; then.gitlab-ci.yml +0
-0
.gitlab-ci.yml build all platforms in a single job: · line 161
Quoted 10 lines
.gitlab-ci.yml +1
-1@@ -153,9 +153,9 @@ build all platforms in a single job: - python3 -m venv /tmp/venv; . /tmp/venv/bin/activate; pip install -r tools/binman/requirements.txt -r tools/buildman/requirements.txt - setuptools + setuptools cryptography - ret=0; git config --global --add safe.directory "${CI_PROJECT_DIR}"; ./tools/buildman/buildman -o /tmp -PEWM -x xtensa || ret=$?; if [[ $ret -ne 0 ]]; then
Ugh. This shows (a) the CI pipelines had another place that should have been installing scripts/dtc/pylibfdt/requirements.txt and (b) I don't know if we should make either boards/qualcomm/requirements.txt or try again with a top-level requirements.txt file. I believe before Heinrich disliked that I was including other requirements.txt files in it. I thought I had said something in reply, but it was a while ago.
Signature · 1 line
Tom
Quoted 41 lines · Tom Rini
Quoted 39 lines · Casey Connolly
The mkmbn Python tool used for some Qualcomm platforms needs the cryptography module, make sure it's installed so the world build can succeed.
Signed-off-by Casey Connolly <[email protected]>--- .azure-pipelines.yml | 2 +- .gitlab-ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-).azure-pipelines.yml +1
-1@@ -733,9 +733,9 @@ stages: python3 -m venv /tmp/venv . /tmp/venv/bin/activate pip install -r tools/binman/requirements.txt \ -r tools/buildman/requirements.txt \ - setuptools + setuptools cryptography if [[ "${BUILDMAN}" != "" ]]; then ret=0; tools/buildman/buildman -o /tmp -PEWM ${BUILDMAN} ${OVERRIDE} || ret=$?; if [[ $ret -ne 0 ]]; then.gitlab-ci.yml +1
-1@@ -153,9 +153,9 @@ build all platforms in a single job: - python3 -m venv /tmp/venv; . /tmp/venv/bin/activate; pip install -r tools/binman/requirements.txt -r tools/buildman/requirements.txt - setuptools + setuptools cryptography - ret=0; git config --global --add safe.directory "${CI_PROJECT_DIR}"; ./tools/buildman/buildman -o /tmp -PEWM -x xtensa || ret=$?;
Quoted 8 lines
.gitlab-ci.yml build all platforms in a single job: · line 161
Quoted 1 line
.gitlab-ci.yml +0
-0if [[ $ret -ne 0 ]]; thenUgh. This shows (a) the CI pipelines had another place that should have been installing
scripts/dtc/pylibfdt/requirements.txtand (b) I don't know if we should make eitherboards/qualcomm/requirements.txtor try again with a top-level requirements.txt file. I believe before Heinrich disliked that I was including other requirements.txt files in it. I thought I had said something in reply, but it was a while ago.
I guess I'll add a qcom requirements.txt for now so we can get this merged, we can also change things around later.
Quoted 1 line
Signature · 1 line
// Casey (she/her)
Hi Casey,
Quoted 4 lines · Casey Connolly
The mkmbn Python tool used for some Qualcomm platforms needs the cryptography module, make sure it's installed so the world build can succeed.
I would suggest to have a requirements.txt somewhere in tools/qcom/mkmbn/ (or the parent) that reflects all external dependencies of mkmbn. This will make it easier for integrators to know which dependencies are required for building which part(s) of U-Boot.
Then we can add it to the list of requirements.txt we install in the CI.
Cheers,
Quentin