diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2015-10-30 12:30:00 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-11-06 17:49:35 +0100 |
commit | f3e73003d0bd244553a3c528e7f6035a23a93b78 (patch) | |
tree | 9d94ea2e3c5ae36f7dea7d9a9771c27cd63ebd89 /meta-oe/classes | |
parent | 2891b1654d81147344364093dc823d57a862ef80 (diff) | |
download | meta-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/classes')
-rw-r--r-- | meta-oe/classes/autotools-bootstrap.bbclass | 24 |
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 000000000..8d7af1b47 --- /dev/null +++ b/meta-oe/classes/autotools-bootstrap.bbclass | |||
@@ -0,0 +1,24 @@ | |||
1 | # Class to inherit when you want to build with autotools after running bootstrap | ||
2 | inherit autotools | ||
3 | |||
4 | DEPENDS += "gnulib" | ||
5 | |||
6 | do_configure_prepend() { | ||
7 | currdir=`pwd` | ||
8 | cd ${S} | ||
9 | |||
10 | # avoid bootstrap cloning gnulib on every configure | ||
11 | cat >.gitmodules <<EOF | ||
12 | [submodule "gnulib"] | ||
13 | path = gnulib | ||
14 | url = git://git.sv.gnu.org/gnulib | ||
15 | EOF | ||
16 | cp -rf ${STAGING_DATADIR}/gnulib ${S} | ||
17 | |||
18 | # --force to avoid errors on reconfigure e.g if recipes changed we depend on | ||
19 | # | bootstrap: running: libtoolize --quiet | ||
20 | # | libtoolize: error: 'libltdl/COPYING.LIB' exists: use '--force' to overwrite | ||
21 | # | ... | ||
22 | ./bootstrap --force | ||
23 | cd $currdir | ||
24 | } | ||