diff options
Diffstat (limited to 'b2qt-init-build-env')
-rwxr-xr-x | b2qt-init-build-env | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env index 952e4a3..bc747b8 100755 --- a/b2qt-init-build-env +++ b/b2qt-init-build-env | |||
@@ -33,29 +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 | git init | ||
48 | git remote add origin ${REPO} -f | ||
49 | git checkout ${REF} | ||
50 | git reset --hard ${SHA1} | ||
51 | cd - | ||
52 | fi | ||
53 | } | ||
47 | 54 | ||
48 | if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm ]; then | 55 | checkout git://git.yoctoproject.org/poky "daisy:b0ce70ffa820c8b4069bdb413f7aa9db668b9428" |
49 | git clone git://git.yoctoproject.org/meta-fsl-arm ${BUILDDIR}/poky/meta-fsl-arm -b daisy | 56 | checkout git://git.openembedded.org/meta-openembedded "daisy:a6dcf6265822ca1484d991d10a3042e04a960cdb" |
50 | fi | 57 | checkout git://git.yoctoproject.org/meta-ti "daisy:5dad1bc02dd922a6c4fa4d68f6ea9ec779cf5e66" |
51 | 58 | checkout git://git.yoctoproject.org/meta-fsl-arm "daisy:f5bf277a5a5fba2c3b64ed7d2dbec1903d96386b" | |
52 | if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm-extra ]; then | 59 | checkout git://github.com/Freescale/meta-fsl-arm-extra "daisy:029f535cfbc5746288c6129babb2d7679927a183" |
53 | git clone git://github.com/Freescale/meta-fsl-arm-extra.git ${BUILDDIR}/poky/meta-fsl-arm-extra -b daisy | 60 | checkout git://git.yoctoproject.org/meta-raspberrypi "daisy:cc74bf6c1f9ab9beea52c4c75797f3ad51f72c55" |
54 | fi | 61 | checkout git://git.toradex.com/meta-toradex "V2.2:371ea626f29a2a12294ab6ea30e36743a9e2f78f" |
55 | |||
56 | if [ ! -d ${BUILDDIR}/poky/meta-raspberrypi ]; then | ||
57 | git clone git://git.yoctoproject.org/meta-raspberrypi ${BUILDDIR}/poky/meta-raspberrypi -b daisy | ||
58 | fi | ||
59 | 62 | ||
60 | if [ ! -d ${BUILDDIR}/poky/meta-b2qt ]; then | 63 | if [ ! -d ${BUILDDIR}/poky/meta-b2qt ]; then |
61 | ln -s ${DIR} ${BUILDDIR}/poky/meta-b2qt | 64 | ln -s ${DIR} ${BUILDDIR}/poky/meta-b2qt |