r3804 - trunk/src/target/u-boot/scripts

werner at sita.openmoko.org werner at sita.openmoko.org
Thu Jan 10 00:04:12 CET 2008


Author: werner
Date: 2008-01-10 00:04:08 +0100 (Thu, 10 Jan 2008)
New Revision: 3804

Added:
   trunk/src/target/u-boot/scripts/build
   trunk/src/target/u-boot/scripts/update
Log:
Remove and re-create "build" and "update" to change permissions :-(
(Make the scripts executable.)



Added: trunk/src/target/u-boot/scripts/build
===================================================================
--- trunk/src/target/u-boot/scripts/build	2008-01-09 23:03:14 UTC (rev 3803)
+++ trunk/src/target/u-boot/scripts/build	2008-01-09 23:04:08 UTC (rev 3804)
@@ -0,0 +1,42 @@
+#!/bin/sh -e
+#
+# This script illustrates how to build a specific version of u-boot from
+# scratch. This is mainly intended as a template for copy & paste, and as an
+# example for individual scripts.
+#
+# This script uses the gnueabi toolchain, see the file README in this
+# directory.
+#
+#
+# Environment variables:
+#
+# SVN points to the root of the local copy of the OpenMoko SVN tree (the tree
+# must be checked out already), e.g.,
+# SVN=/home/moko/svn.openmoko.org/
+#
+# DEVICE specifies the name of the device we build u-boot for, e.g., one of
+# DEVICE=gta01bv4
+# DEVICE=gta02v3
+# DEVICE=gta02v4
+#
+# GIT_HEAD, if defined, specifies which git head we use, e.g.,
+# GIT_HEAD=80adb2761627ec10eb8997bea6c1e52e34816c6b
+#
+# SVN_REV, if defined, specifies which SVN revision we use, e.g.,
+# SVN_REV=3801
+#
+
+git clone git://www.denx.de/git/u-boot.git
+cd u-boot
+
+[ -z "$GIT_HEAD" ] ||
+  git reset --hard $GIT_HEAD
+
+ln -sf $SVN/trunk/src/target/u-boot/patches
+
+[ -z "$SVN_REV" ] ||
+  ( cd patches && svn update -r$SVN_REV; )
+
+quilt push -a
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- ${DEVICE}_config
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- u-boot.udfu


Property changes on: trunk/src/target/u-boot/scripts/build
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/src/target/u-boot/scripts/update
===================================================================
--- trunk/src/target/u-boot/scripts/update	2008-01-09 23:03:14 UTC (rev 3803)
+++ trunk/src/target/u-boot/scripts/update	2008-01-09 23:04:08 UTC (rev 3804)
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+#
+# This script illustrates how to update u-boot to either the latest or some
+# specific upstream and OpenMoko version. This is mainly intended as a template
+# for copy & paste, and as an example for individual scripts.
+#
+# See README for the toolchain and "build" for environment variables.
+# We use GIT_HEAD and SVN_REV (both are optional).
+#
+
+cd u-boot
+
+# If there are uncommitted changes, "quilt refresh" them first.
+# If any of the repositories has been updated before running this script,
+# "quilt pop -a" may fail, and you have to use "quilt pop -f" or
+# "quilt pop -a -f".
+#
+quilt pop -a
+
+git pull
+git reset --hard ${GIT_HEAD:-HEAD}
+
+( cd patches && svn update -r${SVN_REV:-HEAD}; )
+
+quilt push -a
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- clean
+make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- u-boot.udfu


Property changes on: trunk/src/target/u-boot/scripts/update
___________________________________________________________________
Name: svn:executable
   + *





More information about the commitlog mailing list