r3630 - developers/john_lee/toolkit/bin
john_lee at sita.openmoko.org
john_lee at sita.openmoko.org
Tue Dec 11 17:12:01 CET 2007
Author: john_lee
Date: 2007-12-11 17:11:57 +0100 (Tue, 11 Dec 2007)
New Revision: 3630
Modified:
developers/john_lee/toolkit/bin/om-conf
Log:
Pass om-conf options to configure. For example:
om-conf openmoko-sample2 --prefix=/usr/local/openmoko
Modified: developers/john_lee/toolkit/bin/om-conf
===================================================================
--- developers/john_lee/toolkit/bin/om-conf 2007-12-11 01:34:30 UTC (rev 3629)
+++ developers/john_lee/toolkit/bin/om-conf 2007-12-11 16:11:57 UTC (rev 3630)
@@ -38,10 +38,24 @@
. ${OMTOOL_DIR}/arm/scripts/script-env
. ${OMTOOL_DIR}/arm/scripts/functions
-test -z $1 && error_exit
-S=$(absolute_path $1)
-test ! -d $S && error_exit
+test x${1} = x && error_exit
+while test x"${1}" != x
+do
+ if (echo ${1} | grep -q -e "^-")
+ then
+ EXTRA_OECONF="${EXTRA_OECONF} ${1}"
+ else
+ S=${1}
+ fi
+ shift
+done
+S=$(absolute_path ${S})
+test ! -d ${S} && error_exit
+
+echo Source directory: ${S}
+echo Extra configure arguments: ${EXTRA_OECONF}
+
#EXTRA_OECONF=
#EXTRA_OEMAKE=
#EXTRA_AUTORECONF=
More information about the commitlog
mailing list