mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
Merge branch 'for-2011.02/dl-tools' of git://git.busybox.net/~tpetazzoni/git/buildroot
This commit is contained in:
commit
48e9541fd5
@ -85,19 +85,21 @@ DL_DIR:=$(TOPDIR)/dl
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# The DOWNLOAD_{GIT,SVN} helpers are in charge of getting a working copy of
|
# The DOWNLOAD_{GIT,SVN,BZR} helpers are in charge of getting a
|
||||||
# the source repository for their corresponding SCM, checking out the requested
|
# working copy of the source repository for their corresponding SCM,
|
||||||
# version / commit / tag, and create an archive out of it. DOWNLOAD_WGET is the
|
# checking out the requested version / commit / tag, and create an
|
||||||
# normal wget-based download mechanism.
|
# archive out of it. DOWNLOAD_WGET is the normal wget-based download
|
||||||
|
# mechanism.
|
||||||
#
|
#
|
||||||
# The SOURCE_CHECK_{GIT,SVN,WGET} helpers are in charge of simply checking that
|
# The SOURCE_CHECK_{GIT,SVN,BZR,WGET} helpers are in charge of simply
|
||||||
# the source is available for download. This can be used to make sure one will
|
# checking that the source is available for download. This can be used
|
||||||
# be able to get all the sources needed for one's build configuration.
|
# to make sure one will be able to get all the sources needed for
|
||||||
|
# one's build configuration.
|
||||||
#
|
#
|
||||||
# The SHOW_EXTERNAL_DEPS_{GIT,SVN,WGET} helpers simply output to the console
|
# The SHOW_EXTERNAL_DEPS_{GIT,SVN,BZR,WGET} helpers simply output to
|
||||||
# the names of the files that will be downloaded, or path and revision of the
|
# the console the names of the files that will be downloaded, or path
|
||||||
# source repositories, producing a list of all the "external dependencies" of
|
# and revision of the source repositories, producing a list of all the
|
||||||
# a given build configuration.
|
# "external dependencies" of a given build configuration.
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
define DOWNLOAD_GIT
|
define DOWNLOAD_GIT
|
||||||
@ -123,6 +125,20 @@ define SHOW_EXTERNAL_DEPS_GIT
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define DOWNLOAD_BZR
|
||||||
|
test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
|
||||||
|
$(BZR) export $(DL_DIR)/$($(PKG)_SOURCE) $($(PKG)_SITE) -r $($(PKG)_DL_VERSION)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define SOURCE_CHECK_BZR
|
||||||
|
$(BZR) ls --quiet $($(PKG)_SITE) > /dev/null
|
||||||
|
endef
|
||||||
|
|
||||||
|
define SHOW_EXTERNAL_DEPS_BZR
|
||||||
|
echo "$($(PKG)_SITE) [bzr: $($(PKG)_DL_VERSION)]"
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
define DOWNLOAD_SVN
|
define DOWNLOAD_SVN
|
||||||
test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
|
test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
|
||||||
(pushd $(DL_DIR) > /dev/null && \
|
(pushd $(DL_DIR) > /dev/null && \
|
||||||
@ -175,6 +191,7 @@ define DOWNLOAD
|
|||||||
case "$($(PKG)_SITE_METHOD)" in \
|
case "$($(PKG)_SITE_METHOD)" in \
|
||||||
git) $($(DL_MODE)_GIT) && exit ;; \
|
git) $($(DL_MODE)_GIT) && exit ;; \
|
||||||
svn) $($(DL_MODE)_SVN) && exit ;; \
|
svn) $($(DL_MODE)_SVN) && exit ;; \
|
||||||
|
bzr) $($(DL_MODE)_BZR) && exit ;; \
|
||||||
*) $(call $(DL_MODE)_WGET,$(1),$(2)) && exit ;; \
|
*) $(call $(DL_MODE)_WGET,$(1),$(2)) && exit ;; \
|
||||||
esac ; \
|
esac ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
@ -487,9 +504,19 @@ $$($(2)_TARGET_DIRCLEAN): PKG=$(2)
|
|||||||
# configuration
|
# configuration
|
||||||
|
|
||||||
ifeq ($$(BR2_PACKAGE_$(2)),y)
|
ifeq ($$(BR2_PACKAGE_$(2)),y)
|
||||||
|
|
||||||
TARGETS += $(1)
|
TARGETS += $(1)
|
||||||
endif
|
|
||||||
endef
|
ifeq ($$($(2)_SITE_METHOD),svn)
|
||||||
|
DL_TOOLS_DEPENDENCIES += svn
|
||||||
|
else ifeq ($$($(2)_SITE_METHOD),git)
|
||||||
|
DL_TOOLS_DEPENDENCIES += git
|
||||||
|
else ifeq ($$($(2)_SITE_METHOD),bzr)
|
||||||
|
DL_TOOLS_DEPENDENCIES += bzr
|
||||||
|
endif # SITE_METHOD
|
||||||
|
|
||||||
|
endif # BR2_PACKAGE_$(2)
|
||||||
|
endef # GENTARGETS_INNER
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# GENTARGETS -- the target generator macro for generic packages
|
# GENTARGETS -- the target generator macro for generic packages
|
||||||
|
@ -10,9 +10,16 @@ ifeq ($(BR2_STRIP_sstrip),y)
|
|||||||
DEPENDENCIES_HOST_PREREQ+=sstrip_host
|
DEPENDENCIES_HOST_PREREQ+=sstrip_host
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Remove duplicate entries from $(DL_TOOLS_DEPENDENCIES)
|
||||||
|
DL_TOOLS = \
|
||||||
|
$(findstring svn,$(DL_TOOLS_DEPENDENCIES)) \
|
||||||
|
$(findstring git,$(DL_TOOLS_DEPENDENCIES)) \
|
||||||
|
$(findstring bzr,$(DL_TOOLS_DEPENDENCIES))
|
||||||
|
|
||||||
dependencies: $(DEPENDENCIES_HOST_PREREQ)
|
dependencies: $(DEPENDENCIES_HOST_PREREQ)
|
||||||
@HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
|
@HOSTCC="$(firstword $(HOSTCC))" MAKE="$(MAKE)" \
|
||||||
CONFIG_FILE="$(CONFIG_DIR)/.config" \
|
CONFIG_FILE="$(CONFIG_DIR)/.config" \
|
||||||
|
DL_TOOLS="$(DL_TOOLS)" \
|
||||||
$(TOPDIR)/toolchain/dependencies/dependencies.sh
|
$(TOPDIR)/toolchain/dependencies/dependencies.sh
|
||||||
|
|
||||||
dependencies-source:
|
dependencies-source:
|
||||||
|
@ -132,7 +132,7 @@ if ! $SHELL --version 2>&1 | grep -q '^GNU bash'; then
|
|||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Check that a few mandatory programs are installed
|
# Check that a few mandatory programs are installed
|
||||||
for prog in awk bison flex msgfmt makeinfo patch gzip bzip2 perl tar wget cpio python svn unzip ; do
|
for prog in awk bison flex msgfmt makeinfo patch gzip bzip2 perl tar wget cpio python unzip ${DL_TOOLS} ; do
|
||||||
if ! which $prog > /dev/null ; then
|
if ! which $prog > /dev/null ; then
|
||||||
/bin/echo -e "\nYou must install '$prog' on your build machine";
|
/bin/echo -e "\nYou must install '$prog' on your build machine";
|
||||||
if test $prog = "makeinfo" ; then
|
if test $prog = "makeinfo" ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user