netcf: fix offline rebuilding failed

The netcf downloaded gnulib source to ${S} at the configure time,
while the network disconnected, if sstate cache was cleaned, the
netcf rebuilding failed.

Added a new recipe named 'gnulib' to download gnulib source to
${GITDIR} and populate it to the staging data dir.

So netcf could specify this local directory where gnulib sources
reside to save the bandwidth downloading.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
Hongxu Jia
2014-03-14 16:36:47 +08:00
committed by Joe MacDonald
parent 5c9849cd39
commit 60c4964055
2 changed files with 38 additions and 2 deletions
@@ -12,7 +12,7 @@ PV = "0.2.3+git${SRCPV}"
SRC_URI = "git://git.fedorahosted.org/netcf.git;protocol=git \
"
DEPENDS += "augeas libnl libxslt libxml2"
DEPENDS += "augeas libnl libxslt libxml2 gnulib"
S = "${WORKDIR}/git"
@@ -21,6 +21,7 @@ inherit gettext autotools
EXTRA_OECONF_append_class-target = " --with-driver=redhat"
do_configure_prepend() {
cd ${S}
./bootstrap
rm -f .gitmodules
./bootstrap --gnulib-srcdir=${STAGING_DATADIR}/gnulib
}