Skip to contentSkip to conversation

CI: install python-cryptography for world build

PATCH In review Casey Connolly 3 participants 4 messages Jul 20 – Aug 6

lore
Share & tools
lore
#0 lore raw

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
index 4417ef4e5a50..562c5747c9d3 100644
@@ -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
index 245e422d72fa..eb13fde82b86 100644
@@ -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
#1 lore raw
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.

---
 .azure-pipelines.yml | 2 +-
 .gitlab-ci.yml       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
.azure-pipelines.yml +1 -1
index 4417ef4e5a50..562c5747c9d3 100644
@@ -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
index 245e422d72fa..eb13fde82b86 100644

.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
#2 lore raw
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.

---
 .azure-pipelines.yml | 2 +-
 .gitlab-ci.yml       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
.azure-pipelines.yml +1 -1
index 4417ef4e5a50..562c5747c9d3 100644
@@ -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
index 245e422d72fa..eb13fde82b86 100644
@@ -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 -0
       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.

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)
#3 lore raw
In reply to Casey Connolly

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