diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2014-06-25 12:38:37 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2014-06-25 16:22:16 +0300 |
commit | 905a9cea99c050eef1d1c8189dcf8783dcf72443 (patch) | |
tree | 260a33a5b36885a9b70cb26fac4a54dbbb13d56c /b2qt-init-build-env | |
parent | b7ab4499e4daf15d3cc06e6c3032cc010c7c48aa (diff) | |
download | meta-boot2qt-905a9cea99c050eef1d1c8189dcf8783dcf72443.tar.gz |
Use specific SHA1 from all of the meta repos
Updates on the upstream meta repos can break b2qt-meta repo at anytime.
When checking out meta repos, use the same version from which the released
images were build.
Change-Id: I669093747e79841148617e69aeb6dfea9b908b40
Reviewed-by: Kalle Viironen <kalle.viironen@digia.com>
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
Diffstat (limited to 'b2qt-init-build-env')
-rwxr-xr-x | b2qt-init-build-env | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env index 882e7fa..bc747b8 100755 --- a/b2qt-init-build-env +++ b/b2qt-init-build-env | |||
@@ -33,33 +33,32 @@ mkdir -p ${1} | |||
33 | DIR=$(readlink -f $(dirname $0)) | 33 | DIR=$(readlink -f $(dirname $0)) |
34 | BUILDDIR=$(readlink -f $1) | 34 | BUILDDIR=$(readlink -f $1) |
35 | 35 | ||
36 | if [ ! -d ${BUILDDIR}/poky ]; then | 36 | checkout() { |
37 | git clone git://git.yoctoproject.org/poky ${BUILDDIR}/poky -b daisy | 37 | REPO=$1 |
38 | fi | 38 | REPODIR=${REPO##*/} |
39 | 39 | if [ ${REPODIR} != "poky" ]; then | |
40 | if [ ! -d ${BUILDDIR}/poky/meta-openembedded ]; then | 40 | REPODIR="poky/${REPODIR}" |
41 | git clone git://git.openembedded.org/meta-openembedded ${BUILDDIR}/poky/meta-openembedded -b daisy | 41 | fi |
42 | fi | 42 | REF=${2%%:*} |
43 | 43 | SHA1=${2##*:} | |
44 | if [ ! -d ${BUILDDIR}/poky/meta-ti ]; then | 44 | if [ ! -d ${BUILDDIR}/${REPODIR} ]; then |
45 | git clone git://git.yoctoproject.org/meta-ti ${BUILDDIR}/poky/meta-ti -b daisy | 45 | mkdir ${BUILDDIR}/${REPODIR} |
46 | fi | 46 | cd ${BUILDDIR}/${REPODIR} |
47 | 47 | git init | |
48 | if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm ]; then | 48 | git remote add origin ${REPO} -f |
49 | git clone git://git.yoctoproject.org/meta-fsl-arm ${BUILDDIR}/poky/meta-fsl-arm -b daisy | 49 | git checkout ${REF} |
50 | fi | 50 | git reset --hard ${SHA1} |
51 | 51 | cd - | |
52 | if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm-extra ]; then | 52 | fi |
53 | git clone git://github.com/Freescale/meta-fsl-arm-extra.git ${BUILDDIR}/poky/meta-fsl-arm-extra -b daisy | 53 | } |
54 | fi | ||
55 | 54 | ||
56 | if [ ! -d ${BUILDDIR}/poky/meta-raspberrypi ]; then | 55 | checkout git://git.yoctoproject.org/poky "daisy:b0ce70ffa820c8b4069bdb413f7aa9db668b9428" |
57 | git clone git://git.yoctoproject.org/meta-raspberrypi ${BUILDDIR}/poky/meta-raspberrypi -b daisy | 56 | checkout git://git.openembedded.org/meta-openembedded "daisy:a6dcf6265822ca1484d991d10a3042e04a960cdb" |
58 | fi | 57 | checkout git://git.yoctoproject.org/meta-ti "daisy:5dad1bc02dd922a6c4fa4d68f6ea9ec779cf5e66" |
59 | 58 | checkout git://git.yoctoproject.org/meta-fsl-arm "daisy:f5bf277a5a5fba2c3b64ed7d2dbec1903d96386b" | |
60 | if [ ! -d ${BUILDDIR}/poky/meta-toradex ]; then | 59 | checkout git://github.com/Freescale/meta-fsl-arm-extra "daisy:029f535cfbc5746288c6129babb2d7679927a183" |
61 | git clone git://git.toradex.com/meta-toradex.git ${BUILDDIR}/poky/meta-toradex -b V2.2 | 60 | checkout git://git.yoctoproject.org/meta-raspberrypi "daisy:cc74bf6c1f9ab9beea52c4c75797f3ad51f72c55" |
62 | fi | 61 | checkout git://git.toradex.com/meta-toradex "V2.2:371ea626f29a2a12294ab6ea30e36743a9e2f78f" |
63 | 62 | ||
64 | if [ ! -d ${BUILDDIR}/poky/meta-b2qt ]; then | 63 | if [ ! -d ${BUILDDIR}/poky/meta-b2qt ]; then |
65 | ln -s ${DIR} ${BUILDDIR}/poky/meta-b2qt | 64 | ln -s ${DIR} ${BUILDDIR}/poky/meta-b2qt |