Changeset 2f1c88e in mainline for contrib/qemu/build-from-scratch.sh


Ignore:
Timestamp:
2018-04-05T21:06:05Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
231c770
Parents:
4618998
git-author:
Jakub Jermar <jakub@…> (2018-04-05 20:58:25)
git-committer:
Jakub Jermar <jakub@…> (2018-04-05 21:06:05)
Message:

Make it easier to bump QEMU version

Instead of manually computing and comparing the MD5 sum, use gpg to
verify the signature of the downloaded QEMU tarball.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/qemu/build-from-scratch.sh

    r4618998 r2f1c88e  
    3434TARBALL=${BASENAME}.tar.bz2
    3535SOURCEDIR=${BASENAME}
    36 URL=http://wiki.qemu-project.org/download/${TARBALL}
     36URL=https://download.qemu.org/${TARBALL}
    3737REPO=git://git.qemu.org/qemu.git
    38 MD5="335994a755bc655e88a87aeb36bfc0b9"
    3938
    4039OPENSPARC_TARBALL="OpenSPARCT1_Arch.1.5.tar.bz2"
     
    9190        fi
    9291
    93         if [ "`md5sum ${TARBALL} | cut -f 1 -d " "`" != ${MD5} ]; then
    94                 echo Wrong MD5 checksum
     92        if [ ! -f ${TARBALL}.sig ]; then
     93                wget ${URL}.sig
     94        fi
     95
     96        gpg --verify ${TARBALL}.sig ${TARBALL}
     97        if [ $? -ne 0 ]; then
     98                echo Unable to verify the signature
    9599                exit
    96100        fi
Note: See TracChangeset for help on using the changeset viewer.