Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=59ba71eeb324ba056f78f2e7d270c8871a1afd50
commit 59ba71eeb324ba056f78f2e7d270c8871a1afd50 Author: Miklos Vajna <[email protected]> Date: Mon Nov 30 18:51:53 2009 +0100 kernel.sh: add _F_scm_git_cloneopts Usage is easy: if you regularly build a kernel from git, then it's handy to have a clone under ~/git, then you don't have to re-download the kernel repo again and again, as long as you're doing a host build. The option is not set if the dir under ~/git is missing. NOTE: You are not forced to keep the clone in ~/git up to date, having an outdated repo can speed up the build as well. diff --git a/source/include/kernel.sh b/source/include/kernel.sh index ccc56b8..1bf71d7 100644 --- a/source/include/kernel.sh +++ b/source/include/kernel.sh @@ -172,6 +172,7 @@ if Fuse $USE_DEVEL; then signatures=('' '' '') _F_scm_type="git" _F_scm_url="git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6" + [ -d $HOME/git/linux-2.6 ] && _F_scm_git_cloneopts="--reference $HOME/git/linux-2.6" if ! echo $pkgver |grep -q -- '\.g'; then _F_scm_tag="v${pkgver//.rc/-rc}" else _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
