diff mbox series

gitlab: add pycrypto for arm64

Message ID 20200628102052.2233-1-kever.yang@rock-chips.com
State New
Headers show
Series gitlab: add pycrypto for arm64 | expand

Commit Message

Kever Yang June 28, 2020, 10:20 a.m. UTC
pycrypto is needed for script to generate correct its.

Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
---

 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Tom Rini June 29, 2020, 4 p.m. UTC | #1
On Sun, Jun 28, 2020 at 06:20:52PM +0800, Kever Yang wrote:

> pycrypto is needed for script to generate correct its.
> 
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
> 
>  .gitlab-ci.yml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index f2e491c117..4841e7afbe 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -67,7 +67,7 @@ build all 64bit ARM platforms:
>    script:
>      - virtualenv -p /usr/bin/python3 /tmp/venv
>      - . /tmp/venv/bin/activate
> -    - pip install pyelftools
> +    - pip install pyelftools pycrypto
>      - ret=0;
>        ./tools/buildman/buildman -o /tmp -P -E -W aarch64 || ret=$?;
>        if [[ $ret -ne 0 ]]; then
> @@ -159,7 +159,7 @@ Run binman, buildman, dtoc, Kconfig and patman testsuites:
>        export USER=gitlab;
>        virtualenv -p /usr/bin/python3 /tmp/venv;
>        . /tmp/venv/bin/activate;
> -      pip install pyelftools pytest;
> +      pip install pyelftools pytest pycrypto;
>        export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl;
>        export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
>        export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";

We need to update all of the CI config files to install the needed
modules.  I also assume we haven't pushed changes in yet that require
pycrypto, so which tool is going to need it?  I want to make sure we
document it and perhaps we need to start thinking about a
requirement.txt for our python tools if it's binman that needs it (as
that's what also needs pyelftools).  Thanks!
Kever Yang June 30, 2020, 9:17 a.m. UTC | #2
Hi Tom,

On 2020/6/30 ??12:00, Tom Rini wrote:
> On Sun, Jun 28, 2020 at 06:20:52PM +0800, Kever Yang wrote:
>
>> pycrypto is needed for script to generate correct its.
>>
>> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
>> ---
>>
>>   .gitlab-ci.yml | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
>> index f2e491c117..4841e7afbe 100644
>> --- a/.gitlab-ci.yml
>> +++ b/.gitlab-ci.yml
>> @@ -67,7 +67,7 @@ build all 64bit ARM platforms:
>>     script:
>>       - virtualenv -p /usr/bin/python3 /tmp/venv
>>       - . /tmp/venv/bin/activate
>> -    - pip install pyelftools
>> +    - pip install pyelftools pycrypto
>>       - ret=0;
>>         ./tools/buildman/buildman -o /tmp -P -E -W aarch64 || ret=$?;
>>         if [[ $ret -ne 0 ]]; then
>> @@ -159,7 +159,7 @@ Run binman, buildman, dtoc, Kconfig and patman testsuites:
>>         export USER=gitlab;
>>         virtualenv -p /usr/bin/python3 /tmp/venv;
>>         . /tmp/venv/bin/activate;
>> -      pip install pyelftools pytest;
>> +      pip install pyelftools pytest pycrypto;
>>         export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl;
>>         export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
>>         export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
> We need to update all of the CI config files to install the needed
> modules.  I also assume we haven't pushed changes in yet that require
> pycrypto, so which tool is going to need it?  I want to make sure we
> document it and perhaps we need to start thinking about a
> requirement.txt for our python tools if it's binman that needs it (as
> that's what also needs pyelftools).  Thanks!

This is need by below patches

http://patchwork.ozlabs.org/project/uboot/cover/20200619104550.1972307-1-heiko at sntech.de/


Thanks,

- Kever
Tom Rini June 30, 2020, 12:33 p.m. UTC | #3
On Tue, Jun 30, 2020 at 05:17:54PM +0800, Kever Yang wrote:
> Hi Tom,
> 
> On 2020/6/30 ??12:00, Tom Rini wrote:
> > On Sun, Jun 28, 2020 at 06:20:52PM +0800, Kever Yang wrote:
> > 
> > > pycrypto is needed for script to generate correct its.
> > > 
> > > Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> > > ---
> > > 
> > >   .gitlab-ci.yml | 4 ++--
> > >   1 file changed, 2 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> > > index f2e491c117..4841e7afbe 100644
> > > --- a/.gitlab-ci.yml
> > > +++ b/.gitlab-ci.yml
> > > @@ -67,7 +67,7 @@ build all 64bit ARM platforms:
> > >     script:
> > >       - virtualenv -p /usr/bin/python3 /tmp/venv
> > >       - . /tmp/venv/bin/activate
> > > -    - pip install pyelftools
> > > +    - pip install pyelftools pycrypto
> > >       - ret=0;
> > >         ./tools/buildman/buildman -o /tmp -P -E -W aarch64 || ret=$?;
> > >         if [[ $ret -ne 0 ]]; then
> > > @@ -159,7 +159,7 @@ Run binman, buildman, dtoc, Kconfig and patman testsuites:
> > >         export USER=gitlab;
> > >         virtualenv -p /usr/bin/python3 /tmp/venv;
> > >         . /tmp/venv/bin/activate;
> > > -      pip install pyelftools pytest;
> > > +      pip install pyelftools pytest pycrypto;
> > >         export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl;
> > >         export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
> > >         export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
> > We need to update all of the CI config files to install the needed
> > modules.  I also assume we haven't pushed changes in yet that require
> > pycrypto, so which tool is going to need it?  I want to make sure we
> > document it and perhaps we need to start thinking about a
> > requirement.txt for our python tools if it's binman that needs it (as
> > that's what also needs pyelftools).  Thanks!
> 
> This is need by below patches
> 
> http://patchwork.ozlabs.org/project/uboot/cover/20200619104550.1972307-1-heiko at sntech.de/

OK, so the patch here needs to update all CI, so I'm marking this as
Changes Requested in patchwork.  I have some other comments for that
series (thanks) and I'll follow up there.
diff mbox series

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f2e491c117..4841e7afbe 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,7 +67,7 @@  build all 64bit ARM platforms:
   script:
     - virtualenv -p /usr/bin/python3 /tmp/venv
     - . /tmp/venv/bin/activate
-    - pip install pyelftools
+    - pip install pyelftools pycrypto
     - ret=0;
       ./tools/buildman/buildman -o /tmp -P -E -W aarch64 || ret=$?;
       if [[ $ret -ne 0 ]]; then
@@ -159,7 +159,7 @@  Run binman, buildman, dtoc, Kconfig and patman testsuites:
       export USER=gitlab;
       virtualenv -p /usr/bin/python3 /tmp/venv;
       . /tmp/venv/bin/activate;
-      pip install pyelftools pytest;
+      pip install pyelftools pytest pycrypto;
       export UBOOT_TRAVIS_BUILD_DIR=/tmp/sandbox_spl;
       export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
       export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";