aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2015-10-30 12:30:00 +0100
committerMartin Jansa <Martin.Jansa@gmail.com>2015-11-06 17:49:35 +0100
commitf3e73003d0bd244553a3c528e7f6035a23a93b78 (patch)
tree9d94ea2e3c5ae36f7dea7d9a9771c27cd63ebd89 /meta-oe
parent2891b1654d81147344364093dc823d57a862ef80 (diff)
downloadmeta-openembedded-f3e73003d0bd244553a3c528e7f6035a23a93b78.tar.gz
autotools-bootstrap.bbclass: initial add
bootstrap is another magic script which is intended run before autotools. The class created runs this script at the right time and ensures that sources of gnulib are not cloned during configure. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/classes/autotools-bootstrap.bbclass24
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-oe/classes/autotools-bootstrap.bbclass b/meta-oe/classes/autotools-bootstrap.bbclass
new file mode 100644
index 0000000000..8d7af1b472
--- /dev/null
+++ b/meta-oe/classes/autotools-bootstrap.bbclass
@@ -0,0 +1,24 @@
+# Class to inherit when you want to build with autotools after running bootstrap
+inherit autotools
+
+DEPENDS += "gnulib"
+
+do_configure_prepend() {
+ currdir=`pwd`
+ cd ${S}
+
+ # avoid bootstrap cloning gnulib on every configure
+ cat >.gitmodules <<EOF
+[submodule "gnulib"]
+ path = gnulib
+ url = git://git.sv.gnu.org/gnulib
+EOF
+ cp -rf ${STAGING_DATADIR}/gnulib ${S}
+
+ # --force to avoid errors on reconfigure e.g if recipes changed we depend on
+ # | bootstrap: running: libtoolize --quiet
+ # | libtoolize: error: 'libltdl/COPYING.LIB' exists: use '--force' to overwrite
+ # | ...
+ ./bootstrap --force
+ cd $currdir
+}