mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-11 19:08:08 +00:00
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>
This commit is contained in:
parent
2891b1654d
commit
f3e73003d0
24
meta-oe/classes/autotools-bootstrap.bbclass
Normal file
24
meta-oe/classes/autotools-bootstrap.bbclass
Normal file
@ -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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user