On 07/11/14 10:05, Koen Kooi wrote:
Op 7 nov. 2014, om 09:59 heeft Jeremy Pavier <jeremy.pav...@alertme.com> het 
volgende geschreven:

Hi,

I'm trying to recover a build configuration for 2012.05, in order to 
investigate problems with our 2013.12 u-boot image.

I've tried :

git clone -b angstrom-v2012.05-yocto1.2 
git://github.com/Angstrom-distribution/setup-scripts.git

and git checkout angstrom-v2012.05-yocto1.2

But every time I try to build, I get a BASE_VERSION mismatch error that pushes 
me back onto angstrom-v2013.12-yocto1.5

Can someone please explain what I need to do to get back to the old 2012.05 
build?
Can you lists the exact steps you are doing? It seems you are doing the right 
thing, but the error message implies that you are doing something else that 
might interfere.

regards,

Koen
Hi Koen,

We drive our build through a script, as follows:

#!/bin/sh

TARGET=alertmehub
DISTRIBUTION=angstrom-v2012.05-yocto1.2

if [ -n "$1" ]; then
    TARGET=$1
fi

# root the output in the directory the script is in.
CALLED_DIR=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"

git clone -b $DISTRIBUTION git://github.com/Angstrom-distribution/setup-scripts.git $DIR/angstrom
cd $DIR/angstrom

# Turn off BSP layers we are not interested in
...

# modify the build layers file to include littleblue in the EXTRALAYERS variable.
sed -i -e "s:EXTRALAYERS ?= \":EXTRALAYERS \?= \" $DIR :" conf/bblayers.conf

# adjust build performance tuning for Core i7
sed -i -e "s:BB_NUMBER_THREADS = \"2\":BB_NUMBER_THREADS = \"8\":" conf/local.conf

# add our additions to local.conf
cat $DIR/conf/local.conf >> conf/local.conf

# Speed up the build by setting PARALLEL_MAKE and BB_NUMBER_THREADS.
# It seems a good rule of thumb is to be twice as the number of cores.
NTHREAD=$(( `nproc` * 2 ))
# Sanity check
if [ "$NTHREAD"x != "0"x ]; then
    echo PARALLEL_MAKE     = \"-j$NTHREAD\" >> conf/local.conf
    echo BB_NUMBER_THREADS = \"$NTHREAD\"   >> conf/local.conf
fi

# If the variable DL_DIR exist in the env, copy its value
# The Yocto variable DL_DIR specifies download directory so everything
# downloaded is put there and for a newer build, the files will be fetched from
# this directory.
if [ "$DL_DIR"x != ""x ]; then
    echo DL_DIR = \"${DL_DIR}\" >> conf/local.conf
    mkdir -p ${DL_DIR}
fi

mkdir conf/machine
cp $DIR/conf/machine/alertmehub.conf conf/machine/

# initialise the build dir.
MACHINE=$TARGET ./oebb.sh config $TARGET

# add our kernel configuration
mkdir -p sources/meta-ti/recipes-kernel/linux/linux-ti33x-psp-3.2/alertmehub
cp $DIR/recipes/alertmehub_defconfig sources/meta-ti/recipes-kernel/linux/linux-ti33x-psp-3.2/alertmehub/defconfig

# bake it. Trial and error shows we seem to need to build the virtual/kernel target first.
MACHINE=$TARGET ./oebb.sh bitbake virtual/kernel
MACHINE=$TARGET ./oebb.sh bitbake am-console-image

cd $CALLED_DIR


This results in the following output:


Cloning into '/home/jeremy/WORKSPACES/ubootiness/zoo/hub/littlebue-deprecated/angstrom'...
remote: Counting objects: 2187, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2187 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2187/2187), 695.26 KiB | 443.00 KiB/s, done.
Resolving deltas: 100% (906/906), done.
Checking connectivity... done.
BASE_VERSION mismatch, recreating environment-angstrom-v2013.12
There now is a sourceable script in environment-angstrom-v2013.12 You can do '. environment-angstrom-v2013.12' and run 'bitbake something' without using ./oebb.sh as wrapper
layer repository name: bitbake
layer uri: git://github.com/openembedded/bitbake.git
layer branch/revision: 1.20/HEAD

Layer checkout missing at /home/jeremy/WORKSPACES/ubootiness/zoo/hub/littlebue-deprecated/angstrom/sources/bitbake, creating one Cloning into '/home/jeremy/WORKSPACES/ubootiness/zoo/hub/littlebue-deprecated/angstrom/sources/bitbake'...
remote: Counting objects: 31971, done.
remote: Compressing objects: 100% (11391/11391), done.
^Clayer repository name: meta-angstrom
layer uri: git://github.com/Angstrom-distribution/meta-angstrom
layer branch/revision: angstrom-v2013.12-yocto1.5/HEAD
...

I tried putting


git clone -b $DISTRIBUTION git://github.com/Angstrom-distribution/setup-scripts.git $DIR/angstrom
cd $DIR/angstrom
git checkout -b $DISTRIBUTION

but only got the following:

Cloning into '/home/jeremy/WORKSPACES/ubootiness/zoo/hub/littlebue-deprecated/angstrom'...
remote: Counting objects: 2187, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 2187 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2187/2187), 695.26 KiB | 253.00 KiB/s, done.
Resolving deltas: 100% (906/906), done.
Checking connectivity... done.
fatal: A branch named 'angstrom-v2012.05-yocto1.2' already exists.
BASE_VERSION mismatch, recreating environment-angstrom-v2013.12
There now is a sourceable script in environment-angstrom-v2013.12 You can do '. environment-angstrom-v2013.12' and run 'bitbake something' without using ./oebb.sh as wrapper
layer repository name: bitbake
layer uri: git://github.com/openembedded/bitbake.git
layer branch/revision: 1.20/HEAD


Regards,

Jezza


This email is for the use of the intended recipient(s) only.
If you have received this email in error, please notify the sender immediately 
and then delete it.
If you are not the intended recipient, you must not use, disclose or distribute 
this email without the
author's prior permission. AlertMe.com Ltd. is not responsible for any personal 
views expressed
in this message or any attachments that are those of the individual sender.

AlertMe.com Ltd, 30 Station Road, Cambridge, CB1 2RE, UK.
Registered in England, Company number 578 2908, VAT registration number GB 895 
9914 42.



_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to