From patchwork Wed May 6 08:55:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 245180 List-Id: U-Boot discussion From: heiko at sntech.de (Heiko =?ISO-8859-1?Q?St=FCbner?=) Date: Wed, 06 May 2020 10:55:57 +0200 Subject: [PATCH v2 7/7] rockchip: make_fit_atf: add signature handling In-Reply-To: <7fba924d-ad6b-8397-34ed-53609fb8892a@rock-chips.com> References: <20200421002333.111461-1-heiko@sntech.de> <20200421002333.111461-8-heiko@sntech.de> <7fba924d-ad6b-8397-34ed-53609fb8892a@rock-chips.com> Message-ID: <1796995.eNl2sZyQD1@diego> Hi Kever, Am Freitag, 1. Mai 2020, 12:32:23 CEST schrieb Kever Yang: > > On 2020/4/21 ??8:23, Heiko Stuebner wrote: > > From: Heiko Stuebner > > > > If the newly added fit-generator key-options are found, append needed > > signature nodes to all generated image blocks, so that they can get > > signed when mkimage later compiles the .itb from the generated .its. > > > > Signed-off-by: Heiko Stuebner > > --- > > arch/arm/mach-rockchip/make_fit_atf.py | 51 +++++++++++++++++++++++++- > > 1 file changed, 50 insertions(+), 1 deletion(-) > > > > diff --git a/arch/arm/mach-rockchip/make_fit_atf.py b/arch/arm/mach-rockchip/make_fit_atf.py > > index d15c32b303..5b353f9d0a 100755 > > --- a/arch/arm/mach-rockchip/make_fit_atf.py > > +++ b/arch/arm/mach-rockchip/make_fit_atf.py > > @@ -14,6 +14,8 @@ import sys > > import getopt > > import logging > > import struct > > +import Crypto > > +from Crypto.PublicKey import RSA > > > > +Traceback (most recent call last): > 1395 > + > File "arch/arm/mach-rockchip/make_fit_atf.py", line 17, in > 1396 > + > import Crypto > 1397 > +ModuleNotFoundError: > No module named 'Crypto' > > > Please help to update .gitlab-ci.yml, or else it will report the error. I'm not sure, how ... i.e. the missing package is "pycrypto" (or "python-crypto" when installing from a distribution package) So I guess it's about adding that dependency to both .travis.yml and .gitlab-ci.yml, but is it enough to just do a diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index beaf9b9042..863c3dea51 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,6 +68,7 @@ build all 64bit ARM platforms: - virtualenv -p /usr/bin/python3 /tmp/venv - . /tmp/venv/bin/activate - pip install pyelftools + - pip install pycrypto - ret=0; ./tools/buildman/buildman -o /tmp -P -E -W aarch64 || ret=$?; if [[ $ret -ne 0 ]]; then