标签:ipcamera change prim camera case efault end buildroot build
eg:config ALPHA_IPCAMERA_GIT_SITE
string "ipcamera git site"
default "git@gitlab.alphanetworks.com"
2、buildroot/package/pkg-download.mk 设置下载命令
--------------------------------------------------------------------------------------------------------------------
define DOWNLOAD_GIT_SRC
rm -rf $($(PKG)_SRCDIR) && \
git clone $($(PKG)_SITE) $($(PKG)_SRCDIR)
endef
--------------------------------------------------------------------------------------------------------------------
define DOWNLOAD_INNER
$(Q)$(if $(filter bzr cvs git hg svn svn_src git_src,$($(PKG)_SITE_METHOD)),export BR_NO_CHECK_HASH_FOR=$(2);) \
if test -n "$(call qstrip,$(BR2_PRIMARY_SITE))" ; then \
case "$(call geturischeme,$(BR2_PRIMARY_SITE))" in \
file) $(call $(3)_LOCALFILES,$(BR2_PRIMARY_SITE)/$(2),$(2)) && exit ;; \
scp) $(call $(3)_SCP,$(BR2_PRIMARY_SITE)/$(2),$(2)) && exit ;; \
*) $(call $(3)_WGET,$(BR2_PRIMARY_SITE)/$(2),$(2)) && exit ;; \
esac ; \
fi ; \
if test "$(BR2_PRIMARY_SITE_ONLY)" = "y" ; then \
exit 1 ; \
fi ; \
if test -n "$(1)" ; then \
case "$($(PKG)_SITE_METHOD)" in \
git) $($(3)_GIT) && exit ;; \
svn) $($(3)_SVN) && exit ;; \
svn_src) $($(3)_SVN_SRC) && exit ;; \
git_src) $($(3)_GIT_SRC) && exit ;; \
cvs) $($(3)_CVS) && exit ;; \
bzr) $($(3)_BZR) && exit ;; \
file) $($(3)_LOCALFILES) && exit ;; \
scp) $($(3)_SCP) && exit ;; \
hg) $($(3)_HG) && exit ;; \
*) $(call $(3)_WGET,$(1),$(2)) && exit ;; \
esac ; \
fi ; \
if test -n "$(call qstrip,$(BR2_BACKUP_SITE))" ; then \
$(call $(3)_WGET,$(BR2_BACKUP_SITE)/$(2),$(2)) && exit ; \
fi ; \
exit 1
endef
标签:ipcamera change prim camera case efault end buildroot build
原文地址:http://www.cnblogs.com/Malphite/p/7268951.html