Send commitlog mailing list submissions to
commitlog@lists.openmoko.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. org.openmoko.dev: 6a5102f156c4407b0a899a68d9609b94d3f574df
([EMAIL PROTECTED])
2. r4431 - in trunk/src/target/opkg: . libopkg src utils
([EMAIL PROTECTED])
3. r4432 - developers/john_lee ([EMAIL PROTECTED])
4. r4433 - in developers/john_lee: . build-scripts scripts
([EMAIL PROTECTED])
--- Begin Message ---
revision: 6a5102f156c4407b0a899a68d9609b94d3f574df
date: 2008-05-13T19:52:13
author: [EMAIL PROTECTED]
branch: org.openmoko.dev
changelog:
Add exposure, a setting application, to openmoko feed
manifest:
format_version "1"
new_manifest [ef39a598cf67781afa2870f8f8334b1af614a8a9]
old_revision [12bd1a5219d618e541e6b66af9cf7d3d8655f748]
patch "packages/tasks/task-openmoko-feed.bb"
from [7ef80d3236128df7070e50415a62f1b4e280d8d3]
to [5a4dbcc2848fca9059de74a31567f314ec530fdb]
#
#
# patch "packages/tasks/task-openmoko-feed.bb"
# from [7ef80d3236128df7070e50415a62f1b4e280d8d3]
# to [5a4dbcc2848fca9059de74a31567f314ec530fdb]
#
============================================================
--- packages/tasks/task-openmoko-feed.bb
7ef80d3236128df7070e50415a62f1b4e280d8d3
+++ packages/tasks/task-openmoko-feed.bb
5a4dbcc2848fca9059de74a31567f314ec530fdb
@@ -1,7 +1,7 @@ LICENSE = "MIT"
DESCRIPTION = "Openmoko: Misc. Feed Items"
SECTION = "openmoko/base"
LICENSE = "MIT"
-PR = "r27"
+PR = "r27.01"
inherit task
@@ -53,5 +53,6 @@ RDEPENDS_task-openmoko-feed = "\
diversity-nav \
diversity-maps-taipei \
assassin \
+ exposure \
tangogps \
"
--- End Message ---
--- Begin Message ---
Author: thomas
Date: 2008-05-14 11:14:50 +0200 (Wed, 14 May 2008)
New Revision: 4431
Added:
trunk/src/target/opkg/utils/
trunk/src/target/opkg/utils/Makefile.am
trunk/src/target/opkg/utils/opkg-key
trunk/src/target/opkg/utils/update-alternatives
Removed:
trunk/src/target/opkg/update-alternatives
Modified:
trunk/src/target/opkg/Makefile.am
trunk/src/target/opkg/configure.ac
trunk/src/target/opkg/libopkg/opkg_download.c
trunk/src/target/opkg/src/Makefile.am
Log:
opkg: * Add opkg-key utility
* Move update-alternatives to utils directory
* Update opkg_verify_file function to import keys from /etc/opkg
Modified: trunk/src/target/opkg/Makefile.am
===================================================================
--- trunk/src/target/opkg/Makefile.am 2008-05-14 04:31:26 UTC (rev 4430)
+++ trunk/src/target/opkg/Makefile.am 2008-05-14 09:14:50 UTC (rev 4431)
@@ -1,4 +1,4 @@
-SUBDIRS = libbb libopkg src tests
+SUBDIRS = libbb libopkg src tests utils
[EMAIL PROTECTED]@
[EMAIL PROTECTED]@
@@ -9,7 +9,6 @@
pkgconfig_DATA = libopkg.pc
-bin_SCRIPTS = update-alternatives
interceptdir = $(datadir)/opkg/intercept
intercept_DATA = intercept/ldconfig intercept/depmod intercept/update-modules
Modified: trunk/src/target/opkg/configure.ac
===================================================================
--- trunk/src/target/opkg/configure.ac 2008-05-14 04:31:26 UTC (rev 4430)
+++ trunk/src/target/opkg/configure.ac 2008-05-14 09:14:50 UTC (rev 4431)
@@ -137,5 +137,6 @@
tests/Makefile
src/Makefile
libbb/Makefile
+ utils/Makefile
libopkg.pc
)
Modified: trunk/src/target/opkg/libopkg/opkg_download.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg_download.c 2008-05-14 04:31:26 UTC
(rev 4430)
+++ trunk/src/target/opkg/libopkg/opkg_download.c 2008-05-14 09:14:50 UTC
(rev 4431)
@@ -233,27 +233,48 @@
#ifdef HAVE_GPGME
int status = -1;
gpgme_ctx_t ctx;
- gpgme_data_t sig, text;
+ gpgme_data_t sig, text, key;
gpgme_error_t err = -1;
gpgme_verify_result_t result;
gpgme_signature_t s;
+ char *trusted_path = NULL;
err = gpgme_new (&ctx);
if (err)
return -1;
+ sprintf_alloc(&trusted_path, "%s/%s", conf->offline_root,
"/etc/opkg/trusted.gpg");
+ err = gpgme_data_new_from_file (&key, trusted_path, 1);
+ free (trusted_path);
+ if (err)
+ {
+ return -1;
+ }
+ err = gpgme_op_import (ctx, key);
+ if (err)
+ {
+ gpgme_data_release (key);
+ return -1;
+ }
+ gpgme_data_release (key);
+
err = gpgme_data_new_from_file (&sig, sig_file, 1);
if (err)
+ {
+ gpgme_release (ctx);
return -1;
+ }
err = gpgme_data_new_from_file (&text, text_file, 1);
if (err)
+ {
+ gpgme_data_release (sig);
+ gpgme_release (ctx);
return -1;
+ }
err = gpgme_op_verify (ctx, sig, text, NULL);
- if (err)
- return -1;
result = gpgme_op_verify_result (ctx);
if (!result)
@@ -269,6 +290,7 @@
s = s->next;
}
+
gpgme_data_release (sig);
gpgme_data_release (text);
gpgme_release (ctx);
Modified: trunk/src/target/opkg/src/Makefile.am
===================================================================
--- trunk/src/target/opkg/src/Makefile.am 2008-05-14 04:31:26 UTC (rev
4430)
+++ trunk/src/target/opkg/src/Makefile.am 2008-05-14 09:14:50 UTC (rev
4431)
@@ -1,8 +1,9 @@
AM_CFLAGS = -I${top_srcdir}/libopkg ${ALL_CFLAGS}
-bin_PROGRAMS = opkg-cl
+bin_PROGRAMS = opkg-cl opkg-key
opkg_cl_SOURCES = opkg-frontend.c
opkg_cl_LDADD = $(top_builddir)/libopkg/libopkg.la \
$(top_builddir)/libbb/libbb.la
-
+opkg_key_SOURCES = opkg-key.c
+opkg_key_LDADD = $(GPGME_LIBS)
Deleted: trunk/src/target/opkg/update-alternatives
===================================================================
--- trunk/src/target/opkg/update-alternatives 2008-05-14 04:31:26 UTC (rev
4430)
+++ trunk/src/target/opkg/update-alternatives 2008-05-14 09:14:50 UTC (rev
4431)
@@ -1,189 +0,0 @@
-#!/bin/sh
-# update-alternatives
-#
-# Copyright (C) 2001 Carl D. Worth
-#
-# This program was inspired by the Debian update-alternatives program
-# which is Copyright (C) 1995 Ian Jackson. This version of
-# update-alternatives is command-line compatible with Debian's for a
-# subset of the options, (only --install, --remove, and --help)
-#
-# 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, 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.
-
-set -e
-
-# admin dir
-ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives"
-
-usage() {
- echo "update-alternatives: $*
-
-Usage: update-alternatives --install <link> <name> <path> <priority>
- update-alternatives --remove <name> <path>
- update-alternatives --help
-<link> is the link pointing to the provided path (ie. /usr/bin/foo).
-<name> is the name in $ad/alternatives (ie. foo)
-<path> is the name referred to (ie. /usr/bin/foo-extra-spiffy)
-<priority> is an integer; options with higher numbers are chosen.
-" >&2
- exit 2
-}
-
-quit() {
- echo "update-alternatives: $*" >&2
- exit 2
-}
-
-register_alt() {
- [ $# -lt 2 ] && return 1
- local name="$1"
- local link="$2"
-
- if [ ! -d $ad ]; then
- mkdir -p $ad
- fi
-
- if [ -e "$ad/$name" ]; then
- local olink=`head -n 1 $ad/$name`
- if [ "$link" != "$olink" ]; then
- echo "update-alternatives: Error: cannot register
alternative $name to $link since it is already registered to $olink" >&2
- return 1
- fi
- else
- echo "$link" > "$ad/$name"
- fi
-
- return 0
-}
-
-protect_slashes() {
- sed -e 's/\//\\\//g'
-}
-
-remove_alt() {
- [ $# -lt 2 ] && return 1
- local name="$1"
- local path="$2"
-
- [ ! -f $ad/$name ] && return 0
-
- path=`echo $path | protect_slashes`
- sed -ne "/^$path\>.*/!p" $ad/$name > $ad/$name.new
- mv $ad/$name.new $ad/$name
-}
-
-add_alt() {
- [ $# -lt 3 ] && return 1
- local name="$1"
- local path="$2"
- local priority="$3"
- remove_alt $name $path
- echo "$path $priority" >> $ad/$name
-}
-
-find_best_alt() {
- [ $# -lt 1 ] && return 1
- [ ! -f $ad/$name ] && return 0
-
- link=$OPKG_OFFLINE_ROOT/`head -n 1 $ad/$name`
-
-## path=`sed -ne "1!p" $ad/$name | sort -nr -k2 | head -1 | sed 's/ .*//'`
-## busybox safe:
- path=`sed -ne "1!p" $ad/$name | sed -e "s/\(.*\) \(.*\)/\2 \1/g" | sort
-nr | head -n 1 | sed 's/[^ ]* //'`
- if [ -z "$path" ]; then
- echo "update-alternatives: removing $link as no more
alternatives exist for it"
- rm $ad/$name
- if [ -L $link ]; then
- rm $link
- fi
- return 0
- fi
-
- if [ ! -e $link -o -L $link ]; then
- local link_dir=`dirname $link`
- if [ ! -d $link_dir ]; then
- mkdir -p $link_dir
- fi
- ln -sf $path $link
- echo "update-alternatives: Linking $link to $path"
- else
- echo "update-alternatives: Error: not linking $link to $path
since $link exists and is not a link"
- return 1
- fi
-
- return 0
-}
-
-do_install() {
- if [ $# -lt 4 ]; then
- usage "--install needs <link> <name> <path> <priority>"
- fi
- local link="$1"
- local name="$2"
- local path="$3"
- local priority="$4"
-
- path=`echo $path | sed 's|/\+|/|g'`
-
- # This is a bad hack, but I haven't thought of a cleaner solution yet...
- [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed
"s|^$OPKG_OFFLINE_ROOT/*|/|"`
-
- register_alt $name $link
- add_alt $name $path $priority
- find_best_alt $name
-}
-
-do_remove() {
- if [ $# -lt 2 ]; then
- usage "--remove needs <name> <path>"
- fi
- local name="$1"
- local path="$2"
-
- path=`echo $path | sed 's|/\+|/|g'`
-
- # This is a bad hack, but I haven't thought of a cleaner solution yet...
- [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed
"s|^$OPKG_OFFLINE_ROOT/*|/|"`
-
- remove_alt $name $path
- find_best_alt $name
-}
-
-###
-# update-alternatives "main"
-###
-
-while [ $# -gt 0 ]; do
- arg="$1"
- shift
-
- case $arg in
- --help)
- usage "help:"
- exit 0
- ;;
- --install)
- do_install $*
- exit $?
- ;;
- --remove)
- do_remove $*
- exit $?
- ;;
- *)
- usage "unknown argument \`$arg'"
- ;;
- esac
-done
-
-usage "at least one of --install or --remove must appear"
-
-exit 0
Added: trunk/src/target/opkg/utils/Makefile.am
===================================================================
--- trunk/src/target/opkg/utils/Makefile.am (rev 0)
+++ trunk/src/target/opkg/utils/Makefile.am 2008-05-14 09:14:50 UTC (rev
4431)
@@ -0,0 +1 @@
+bin_SCRIPTS = update-alternatives opkg-key
Added: trunk/src/target/opkg/utils/opkg-key
===================================================================
--- trunk/src/target/opkg/utils/opkg-key (rev 0)
+++ trunk/src/target/opkg/utils/opkg-key 2008-05-14 09:14:50 UTC (rev
4431)
@@ -0,0 +1,74 @@
+#!/bin/sh
+
+# Based on apt-key from apt-0.6.25
+# Licensed under GPL Version 2
+
+set -e
+
+usage() {
+ echo "Usage: opkg-key [options] command [arguments]"
+ echo
+ echo "Manage opkg's list of trusted keys"
+ echo
+ echo " opkg-key add <file> - add the key contained in <file>
('-' for stdin)"
+ echo " opkg-key del <keyid> - remove the key <keyid>"
+ echo " opkg-key list - list keys"
+ echo
+ echo "Options:"
+ echo " -o <root> Use <root> as the offline root directory"
+ echo
+}
+
+if [ "$1" = "-o" ]; then
+ ROOT=$2
+ shift 2
+ echo "Note: using \"$ROOT\" as root path"
+else
+ ROOT=""
+fi
+
+command="$1"
+if [ -z "$command" ]; then
+ usage
+ exit 1
+fi
+shift
+
+if [ "$command" != "help" ] && ! which gpg >/dev/null 2>&1; then
+ echo >&2 "Warning: gnupg does not seem to be installed."
+ echo >&2 "Warning: opkg-key requires gnupg for most operations."
+ echo >&2
+fi
+
+# We don't use a secret keyring, of course, but gpg panics and
+# implodes if there isn't one available
+
+GPG="gpg --no-options --no-default-keyring --keyring
$ROOT/etc/opkg/trusted.gpg --secret-keyring $ROOT/etc/opkg/secring.gpg
--trustdb-name $ROOT/etc/opkg/trustdb.gpg"
+
+case "$command" in
+ add)
+ $GPG --quiet --batch --import "$1"
+ echo "OK"
+ ;;
+ del|rm|remove)
+ $GPG --quiet --batch --delete-key --yes "$1"
+ echo "OK"
+ ;;
+ list)
+ $GPG --batch --list-keys
+ ;;
+ finger*)
+ $GPG --batch --fingerprint
+ ;;
+ adv*)
+ echo "Executing: $GPG $*"
+ $GPG $*
+ ;;
+ help)
+ usage
+ ;;
+ *)
+ usage
+ exit 1
+ ;;
+esac
Property changes on: trunk/src/target/opkg/utils/opkg-key
___________________________________________________________________
Name: svn:executable
+ *
Copied: trunk/src/target/opkg/utils/update-alternatives (from rev 4428,
trunk/src/target/opkg/update-alternatives)
===================================================================
--- trunk/src/target/opkg/utils/update-alternatives
(rev 0)
+++ trunk/src/target/opkg/utils/update-alternatives 2008-05-14 09:14:50 UTC
(rev 4431)
@@ -0,0 +1,189 @@
+#!/bin/sh
+# update-alternatives
+#
+# Copyright (C) 2001 Carl D. Worth
+#
+# This program was inspired by the Debian update-alternatives program
+# which is Copyright (C) 1995 Ian Jackson. This version of
+# update-alternatives is command-line compatible with Debian's for a
+# subset of the options, (only --install, --remove, and --help)
+#
+# 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, 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.
+
+set -e
+
+# admin dir
+ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives"
+
+usage() {
+ echo "update-alternatives: $*
+
+Usage: update-alternatives --install <link> <name> <path> <priority>
+ update-alternatives --remove <name> <path>
+ update-alternatives --help
+<link> is the link pointing to the provided path (ie. /usr/bin/foo).
+<name> is the name in $ad/alternatives (ie. foo)
+<path> is the name referred to (ie. /usr/bin/foo-extra-spiffy)
+<priority> is an integer; options with higher numbers are chosen.
+" >&2
+ exit 2
+}
+
+quit() {
+ echo "update-alternatives: $*" >&2
+ exit 2
+}
+
+register_alt() {
+ [ $# -lt 2 ] && return 1
+ local name="$1"
+ local link="$2"
+
+ if [ ! -d $ad ]; then
+ mkdir -p $ad
+ fi
+
+ if [ -e "$ad/$name" ]; then
+ local olink=`head -n 1 $ad/$name`
+ if [ "$link" != "$olink" ]; then
+ echo "update-alternatives: Error: cannot register
alternative $name to $link since it is already registered to $olink" >&2
+ return 1
+ fi
+ else
+ echo "$link" > "$ad/$name"
+ fi
+
+ return 0
+}
+
+protect_slashes() {
+ sed -e 's/\//\\\//g'
+}
+
+remove_alt() {
+ [ $# -lt 2 ] && return 1
+ local name="$1"
+ local path="$2"
+
+ [ ! -f $ad/$name ] && return 0
+
+ path=`echo $path | protect_slashes`
+ sed -ne "/^$path\>.*/!p" $ad/$name > $ad/$name.new
+ mv $ad/$name.new $ad/$name
+}
+
+add_alt() {
+ [ $# -lt 3 ] && return 1
+ local name="$1"
+ local path="$2"
+ local priority="$3"
+ remove_alt $name $path
+ echo "$path $priority" >> $ad/$name
+}
+
+find_best_alt() {
+ [ $# -lt 1 ] && return 1
+ [ ! -f $ad/$name ] && return 0
+
+ link=$OPKG_OFFLINE_ROOT/`head -n 1 $ad/$name`
+
+## path=`sed -ne "1!p" $ad/$name | sort -nr -k2 | head -1 | sed 's/ .*//'`
+## busybox safe:
+ path=`sed -ne "1!p" $ad/$name | sed -e "s/\(.*\) \(.*\)/\2 \1/g" | sort
-nr | head -n 1 | sed 's/[^ ]* //'`
+ if [ -z "$path" ]; then
+ echo "update-alternatives: removing $link as no more
alternatives exist for it"
+ rm $ad/$name
+ if [ -L $link ]; then
+ rm $link
+ fi
+ return 0
+ fi
+
+ if [ ! -e $link -o -L $link ]; then
+ local link_dir=`dirname $link`
+ if [ ! -d $link_dir ]; then
+ mkdir -p $link_dir
+ fi
+ ln -sf $path $link
+ echo "update-alternatives: Linking $link to $path"
+ else
+ echo "update-alternatives: Error: not linking $link to $path
since $link exists and is not a link"
+ return 1
+ fi
+
+ return 0
+}
+
+do_install() {
+ if [ $# -lt 4 ]; then
+ usage "--install needs <link> <name> <path> <priority>"
+ fi
+ local link="$1"
+ local name="$2"
+ local path="$3"
+ local priority="$4"
+
+ path=`echo $path | sed 's|/\+|/|g'`
+
+ # This is a bad hack, but I haven't thought of a cleaner solution yet...
+ [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed
"s|^$OPKG_OFFLINE_ROOT/*|/|"`
+
+ register_alt $name $link
+ add_alt $name $path $priority
+ find_best_alt $name
+}
+
+do_remove() {
+ if [ $# -lt 2 ]; then
+ usage "--remove needs <name> <path>"
+ fi
+ local name="$1"
+ local path="$2"
+
+ path=`echo $path | sed 's|/\+|/|g'`
+
+ # This is a bad hack, but I haven't thought of a cleaner solution yet...
+ [ -n "$OPKG_OFFLINE_ROOT" ] && path=`echo $path | sed
"s|^$OPKG_OFFLINE_ROOT/*|/|"`
+
+ remove_alt $name $path
+ find_best_alt $name
+}
+
+###
+# update-alternatives "main"
+###
+
+while [ $# -gt 0 ]; do
+ arg="$1"
+ shift
+
+ case $arg in
+ --help)
+ usage "help:"
+ exit 0
+ ;;
+ --install)
+ do_install $*
+ exit $?
+ ;;
+ --remove)
+ do_remove $*
+ exit $?
+ ;;
+ *)
+ usage "unknown argument \`$arg'"
+ ;;
+ esac
+done
+
+usage "at least one of --install or --remove must appear"
+
+exit 0
--- End Message ---
--- Begin Message ---
Author: john_lee
Date: 2008-05-14 11:38:06 +0200 (Wed, 14 May 2008)
New Revision: 4432
Removed:
developers/john_lee/toolkit/
Log:
No longer required.
--- End Message ---
--- Begin Message ---
Author: john_lee
Date: 2008-05-14 11:44:16 +0200 (Wed, 14 May 2008)
New Revision: 4433
Added:
developers/john_lee/build-scripts/
developers/john_lee/build-scripts/build.env
developers/john_lee/build-scripts/build.sh
developers/john_lee/scripts/
developers/john_lee/scripts/update-srcrev.sh
Log:
build-scripts: scripts I used on buildhost (s)
scripts: some convenient scripts
Added: developers/john_lee/build-scripts/build.env
===================================================================
--- developers/john_lee/build-scripts/build.env (rev 0)
+++ developers/john_lee/build-scripts/build.env 2008-05-14 09:44:16 UTC (rev
4433)
@@ -0,0 +1,29 @@
+RSYNC_TARGET=/space/www/buildhost/daily
+
+print_mail () {
+ IMAGENAME="$(basename $(readlink openmoko-devel-image-om-gta02.jffs2))"
+ echo build finished on $(date)
+ echo
+ echo get the latest u-boot from
+ echo
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/$(basename
$(readlink uboot-gta02v5-latest.bin))
+ echo
+ echo get the latest kernel from
+ echo
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/$(basename
$(readlink uImage-om-gta02-latest.bin))
+ echo
+ echo get the latest rootfs from
+ echo
http://buildhost.openmoko.org/daily/neo1973/deploy/glibc/images/neo1973/${IMAGENAME}
+# echo
+# echo the list of installed packages:
+# cat "$(echo ${IMAGENAME} | sed -e
's/.rootfs.jffs2//')-testlab/list-installed.txt"
+}
+
+post_build () {
+ rsync -a --delete /space/fic/openmoko-daily/sources /space/www/buildhost
+ pushd ${TMPDIR}/deploy/glibc/images/neo1973/
+ TMPFILE=$(tempfile -d ${TMPDIR})
+ print_mail >> ${TMPFILE}
+ mail -s "buildhost notification: $(date +%Y%m%d)" [EMAIL PROTECTED] <
${TMPFILE}
+ rm ${TMPFILE}
+ popd
+}
+
Added: developers/john_lee/build-scripts/build.sh
===================================================================
--- developers/john_lee/build-scripts/build.sh (rev 0)
+++ developers/john_lee/build-scripts/build.sh 2008-05-14 09:44:16 UTC (rev
4433)
@@ -0,0 +1,96 @@
+#!/bin/bash
+
+echo -n "build starts at "
+date
+
+absolute_dir () {
+ local D
+ D=$(dirname $1)
+ echo "`cd \"$D\" 2>/dev/null && pwd || echo \"$D\"`"
+}
+
+retry () {
+ # default retry = 10
+ t=$2
+ [[ x$t = x ]] && t=10
+ expr=$1
+ $expr && return
+ for (( i=1; $i < $t; i=$i+1)); do
+ echo retry = $i
+ $expr && return
+ echo failed. sleep for 10 minutes.
+ sleep 600
+ done
+}
+
+#### default config here ###
+
+OE_MTN=monotone.openembedded.org
+OM_MTN=monotone.openmoko.org
+OE_BRA=org.openembedded.dev
+OM_BRA=org.openmoko.dev
+MACHINE_TARGET="om-gta01 om-gta02"
+
+OEDIR=$(absolute_dir $0)
+RSYNC_TARGET=
+
+build() {
+ retry "bitbake -c fetch u-boot-openmoko linux-openmoko
openmoko-devel-image"
+ bitbake u-boot-openmoko
+ bitbake linux-openmoko
+ bitbake openmoko-devel-image
+ bitbake openmoko-feed
+ bitbake meta-toolchain-openmoko
+ bitbake task-openmoko-qtopia-x11
+}
+
+post_build () {
+ true
+}
+
+#### include config file to overwrite ####
+
+
+. ${OEDIR}/build.env
+
+
+#### don't modify ####
+
+set -ex
+
+PATH="${OEDIR}/bitbake/bin:${PATH}"
+MTNDB=${OEDIR}/OE.mtn
+TMPDIR=${OEDIR}/neo1973
+
+export OEDIR
+export PATH
+
+mtn --set-default -d ${MTNDB} pull ${OM_MTN} \'*\'
+cd ${OEDIR}/${OM_BRA}
+mtn update
+
+svn info ${OEDIR}/local/packages 1>/dev/null 2>&1 && svn up
${OEDIR}/local/packages || true
+bitbake_dirname="$(readlink ${OEDIR}/bitbake)"
+svn up ${OEDIR}/${bitbake_dirname} || true
+
+touch ${OEDIR}/local/conf/local.conf
+
+for MACHINE in ${MACHINE_TARGET}
+do
+ export BBPATH="${OEDIR}/${MACHINE}:${OEDIR}/local:${OEDIR}/${OM_BRA}"
+ set +e
+ build
+ set -e
+done
+
+bitbake package-index
+
+if [ -n $RSYNC_TARGET ]
+then
+ rsync -az --delete --exclude '.*' ${TMPDIR} ${RSYNC_TARGET} || true
+fi
+
+post_build
+
+echo -n "build ends at "
+date
Property changes on: developers/john_lee/build-scripts/build.sh
___________________________________________________________________
Name: svn:executable
+ *
Added: developers/john_lee/scripts/update-srcrev.sh
===================================================================
--- developers/john_lee/scripts/update-srcrev.sh
(rev 0)
+++ developers/john_lee/scripts/update-srcrev.sh 2008-05-14 09:44:16 UTC
(rev 4433)
@@ -0,0 +1,10 @@
+#!/bin/bash
+#set -x
+
+pkg_list=`sed -n -e 's/SRCREV_pn-//' -e 's/ ?=.*$//p'
~/oe/org.openmoko.dev/conf/distro/include/moko-autorev.inc`
+
+for pkg in $pkg_list
+do
+ rev=`find ~/oe/tmp/openmoko/deploy/glibc/ipk -name "${pkg}*.ipk" | sed -nr
-e "s/.*svnr?([0-9]+).*ipk/\1/p" | sort -g -u -r | head -n 1`
+ echo SRCREV_pn-$pkg ?= \"$rev\"
+done
Property changes on: developers/john_lee/scripts/update-srcrev.sh
___________________________________________________________________
Name: svn:executable
+ *
--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog