From d0f0c374e07f0d748f3ad20b8350863394ae8283 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 11 Feb 2014 10:18:30 +0200 Subject: Changes to init script - Move to root folder - meta-ti and meta-raspberrypi now have dora branch Change-Id: I1b88ead9c44b67243d9c69fd6a5a8a59c8232b97 Reviewed-by: Eirik Aavitsland --- b2qt-init-build-env | 76 +++++++++++++++++++++++++++++++++++++++++++++ scripts/b2qt-init-build-env | 76 --------------------------------------------- 2 files changed, 76 insertions(+), 76 deletions(-) create mode 100755 b2qt-init-build-env delete mode 100755 scripts/b2qt-init-build-env diff --git a/b2qt-init-build-env b/b2qt-init-build-env new file mode 100755 index 0000000..8c4da01 --- /dev/null +++ b/b2qt-init-build-env @@ -0,0 +1,76 @@ +#!/bin/sh +############################################################################# +## +## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). +## +## This file is part of the Qt Enterprise Embedded Scripts of the Qt +## framework. +## +## $QT_BEGIN_LICENSE$ +## Commercial License Usage Only +## Licensees holding valid commercial Qt license agreements with Digia +## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, +## may use this file in accordance with the terms contained in said license +## agreement. +## +## For further information use the contact form at +## http://qt.digia.com/contact-us. +## +## +## $QT_END_LICENSE$ +## +############################################################################# + +set -e + +if [ $# -ne 1 ]; then + echo "Usage: $0 " + exit 1 +fi + +mkdir -p ${1} + +DIR=$(readlink -f $(dirname $0)) +BUILDDIR=$(readlink -f $1) + +if [ ! -d ${BUILDDIR}/poky ]; then + git clone git://git.yoctoproject.org/poky ${BUILDDIR}/poky -b dora +fi + +if [ ! -d ${BUILDDIR}/poky/meta-openembedded ]; then + git clone git://git.openembedded.org/meta-openembedded ${BUILDDIR}/poky/meta-openembedded -b dora +fi + +if [ ! -d ${BUILDDIR}/poky/meta-ti ]; then + git clone git://git.yoctoproject.org/meta-ti ${BUILDDIR}/poky/meta-ti -b dora +fi + +if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm ]; then + git clone git://git.yoctoproject.org/meta-fsl-arm ${BUILDDIR}/poky/meta-fsl-arm -b dora +fi + +if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm-extra ]; then + git clone git://github.com/Freescale/meta-fsl-arm-extra.git ${BUILDDIR}/poky/meta-fsl-arm-extra -b dora +fi + +if [ ! -d ${BUILDDIR}/poky/meta-raspberrypi ]; then + git clone git://git.yoctoproject.org/meta-raspberrypi ${BUILDDIR}/poky/meta-raspberrypi -b dora +fi + +if [ ! -d ${BUILDDIR}/poky/meta-b2qt ]; then + ln -s ${DIR} ${BUILDDIR}/poky/meta-b2qt +fi + +echo +echo "Yocto build system is ready" +echo "next initialize the build env for your target machine, for example:" +echo +echo "cd ${BUILDDIR}" +echo "export TEMPLATECONF=meta-b2qt/conf" +echo "export MACHINE=raspberrypi" +echo ". ./poky/oe-init-build-env build-raspberrypi" +echo +echo "and build B2Qt image with:" +echo +echo "bitbake b2qt-embedded-image" +echo diff --git a/scripts/b2qt-init-build-env b/scripts/b2qt-init-build-env deleted file mode 100755 index 43229e1..0000000 --- a/scripts/b2qt-init-build-env +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh -############################################################################# -## -## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). -## -## This file is part of the Qt Enterprise Embedded Scripts of the Qt -## framework. -## -## $QT_BEGIN_LICENSE$ -## Commercial License Usage Only -## Licensees holding valid commercial Qt license agreements with Digia -## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, -## may use this file in accordance with the terms contained in said license -## agreement. -## -## For further information use the contact form at -## http://qt.digia.com/contact-us. -## -## -## $QT_END_LICENSE$ -## -############################################################################# - -set -e - -if [ $# -ne 1 ]; then - echo "Usage: $0 " - exit 1 -fi - -mkdir -p ${1} - -DIR=$(readlink -f $(dirname $0)/..) -BUILDDIR=$(readlink -f $1) - -if [ ! -d ${BUILDDIR}/poky ]; then - git clone git://git.yoctoproject.org/poky ${BUILDDIR}/poky -b dora -fi - -if [ ! -d ${BUILDDIR}/poky/meta-openembedded ]; then - git clone git://git.openembedded.org/meta-openembedded ${BUILDDIR}/poky/meta-openembedded -b dora -fi - -if [ ! -d ${BUILDDIR}/poky/meta-ti ]; then - git clone git://git.yoctoproject.org/meta-ti ${BUILDDIR}/poky/meta-ti -b master -fi - -if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm ]; then - git clone git://git.yoctoproject.org/meta-fsl-arm ${BUILDDIR}/poky/meta-fsl-arm -b dora -fi - -if [ ! -d ${BUILDDIR}/poky/meta-fsl-arm-extra ]; then - git clone git://github.com/Freescale/meta-fsl-arm-extra.git ${BUILDDIR}/poky/meta-fsl-arm-extra -b dora -fi - -if [ ! -d ${BUILDDIR}/poky/meta-raspberrypi ]; then - git clone git://git.yoctoproject.org/meta-raspberrypi ${BUILDDIR}/poky/meta-raspberrypi -b master -fi - -if [ ! -d ${BUILDDIR}/poky/meta-b2qt ]; then - ln -s ${DIR} ${BUILDDIR}/poky/meta-b2qt -fi - -echo -echo "Yocto build system is ready" -echo "next initialize the build env for your target machine, for example:" -echo -echo "cd ${BUILDDIR}/poky" -echo "export TEMPLATECONF=${DIR}/conf" -echo "export MACHINE=raspberrypi" -echo ". ./oe-init-build-env" -echo -echo "and build B2Qt image with:" -echo -echo "bitbake b2qt-embedded-image" -echo -- cgit v1.2.3-54-g00ecf