From: David-John Willis Date: Mon, 7 Jun 2010 11:27:07 +0000 (+0100) Subject: scripts: Add simple helper scripts that people can use to get an OpenEmbedded environ... X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-oe-environment.git;a=commitdiff_plain;h=e4af467f6a6c59d4af3dde2993966192e44ba891 scripts: Add simple helper scripts that people can use to get an OpenEmbedded environment running. --- e4af467f6a6c59d4af3dde2993966192e44ba891 diff --git a/initial-setup.sh b/initial-setup.sh new file mode 100644 index 0000000..5d9a945 --- /dev/null +++ b/initial-setup.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +mkdir ${OE_ENV_TOP}/bitbake +mkdir ${OE_ENV_TOP}/sources +mkdir ${OE_ENV_TOP}/tmp +mkdir ${OE_METADATA} +mkdir ${OE_METADATA}/user.collection +mkdir ${OE_METADATA}/openembedded.git +mkdir ${OE_METADATA}/openpandora.oe.git + +cd ${OE_ENV_TOP}/bitbake +git clone git://git.openembedded.net/bitbake . +git checkout --track -b 1.10 origin/1.10 +# Use 1.8.18 for now for users as 1.10 is not final yet. +#git checkout -b 1.8.18 + +cd ${OE_METADATA}/openembedded.git +git clone git://git.openpandora.org/openembedded.git . +git checkout op.openembedded.dev + +cd ${OE_METADATA}/openpandora.oe.git +git clone git://git.openpandora.org/openpandora.oe.git . +git checkout master diff --git a/op-env-oe.sh b/op-env-oe.sh new file mode 100644 index 0000000..aa9e884 --- /dev/null +++ b/op-env-oe.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +# OpenPandora OpenEmbedded Enviroment Script +# By John Willis (mostly borrowed from Poky) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +if test x"$0" = x"./op-env-oe.sh"; then + echo "Error: Please run via '. ./op-env-oe.sh'" +fi + +OE_ENV_TOP=${PWD} +export OE_ENV_TOP + +OE_METADATA=${OE_ENV_TOP}/metadata +export OE_METADATA + +PATH=${OE_ENV_TOP}/bitbake/bin:$PATH +export PATH + +BBPATH=${OE_ENV_TOP}/build:${OE_METADATA}/openembedded.git:${OE_METADATA}/openpandora.oe.git:${OE_METADATA}/user.collection +export BBPATH + +OEBRANCH=${OE_METADATA}/openembedded.git +export OEBRANCH + +PANDORAOVERLAY=${OE_METADATA}/openpandora.oe.git +export PANDORAOVERLAY + +USEROVERLAY=${OE_METADATA}/user.collection +export USEROVERLAY + +export BB_ENV_EXTRAWHITE="MACHINE DISTRO ANGSTROM_MODE OE_ENV_TOP OE_METADATA OEBRANCH PANDORAOVERLAY USEROVERLAY" diff --git a/use-release-2010-05-1.sh b/use-release-2010-05-1.sh new file mode 100644 index 0000000..75c4857 --- /dev/null +++ b/use-release-2010-05-1.sh @@ -0,0 +1,8 @@ +#!/bin/sh +cd ${OE_METADATA}/openembedded.git +git stash +git checkout Release-2010-05/1 + +cd ${OE_METADATA}/openpandora.oe.git +git stash +git checkout Release-2010-05/1 \ No newline at end of file diff --git a/use-tip.sh b/use-tip.sh new file mode 100644 index 0000000..03fdb87 --- /dev/null +++ b/use-tip.sh @@ -0,0 +1,10 @@ +#!/bin/sh +cd ${OE_METADATA}/openembedded.git +git pull +git stash +git checkout op.openembedded.dev + +cd ${OE_METADATA}/openpandora.oe.git +git pull +git stash +git checkout master