summaryrefslogtreecommitdiff
path: root/mk/macros.packages.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-03-11 13:57:34 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-03-11 13:57:34 +0100
commitcb9acd5e409af2de0bb605a51d9bc27297d68519 (patch)
tree998e4d7dd0f281210f9d3bde5d7e19fa1f23157b /mk/macros.packages.mk
parent730bb3433e5261ae3dbcbe30391e87f3ca4d5691 (diff)
downloadembtoolkit-cb9acd5e409af2de0bb605a51d9bc27297d68519.tar.gz
embtoolkit-cb9acd5e409af2de0bb605a51d9bc27297d68519.tar.bz2
embtoolkit-cb9acd5e409af2de0bb605a51d9bc27297d68519.tar.xz
Build system: generic macros: Add more info about downloaded package
Add info about if the package is patched or not and if the package is installed because it is a dependency of another package. Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/macros.packages.mk')
-rw-r--r--mk/macros.packages.mk33
1 files changed, 22 insertions, 11 deletions
diff --git a/mk/macros.packages.mk b/mk/macros.packages.mk
index 4bf3aca..8fd01d2 100644
--- a/mk/macros.packages.mk
+++ b/mk/macros.packages.mk
@@ -491,6 +491,11 @@ endef
# $(call embtk_download_pkg,PACKAGE)
#
+__embtk_pkg_depof = $(strip $(foreach p,$(__embtk_pkgs_all-y), \
+ $(if $(findstring $(pkgv),$($(call PKGV,$(p)_deps))),$(p))))
+
+__embtk_pkg_needpatch_yesno = $(if $(__embtk_pkg_needpatch),Yes,No)
+
define __embtk_download_pkg_patches
if [ "x$(__embtk_pkg_needpatch)" = "xy" ]; then \
test -e $(__embtk_pkg_patch_f) || \
@@ -508,10 +513,12 @@ endef
define __embtk_download_pkg_from_svn
$(call embtk_echo_blue,"$(__embtk_pkg_name) using SVN")
- $(call embtk_echo_blue,"\tBranch : $(notdir $(__embtk_pkg_svnbranch))")
- $(call embtk_echo_blue,"\tRevision : $(__embtk_pkg_svnrev)")
- $(call embtk_echo_blue,"\tIn : $(__embtk_pkg_refspec)")
- $(call embtk_echo_blue,"\tCheckout URL : $(__embtk_pkg_svnsite)")
+ $(call embtk_echo_blue,"\tBranch : $(notdir $(__embtk_pkg_svnbranch))")
+ $(call embtk_echo_blue,"\tRevision : $(__embtk_pkg_svnrev)")
+ $(call embtk_echo_blue,"\tIn : $(__embtk_pkg_refspec)")
+ $(call embtk_echo_blue,"\tCheckout URL : $(__embtk_pkg_svnsite)")
+ $(call embtk_echo_blue,"\tPatched : $(__embtk_pkg_needpatch_yesno)")
+ $(call embtk_echo_blue,"\tDependency of : $(or $(__embtk_pkg_depof),N/A)")
test -e $(__embtk_pkg_localsvn) || \
svn co $(__embtk_pkg_svnsite)/$(__embtk_pkg_svnbranch) \
-r$(__embtk_pkg_svnrev) $(__embtk_pkg_localsvn)
@@ -530,18 +537,22 @@ endef
define __embtk_download_pkg_from_git
$(call embtk_echo_blue,"$(__embtk_pkg_name) using GIT")
- $(call embtk_echo_blue,"\tBranch : $(__embtk_pkg_gitbranch)")
- $(call embtk_echo_blue,"\tRevision : $(__embtk_pkg_gitrev)")
- $(call embtk_echo_blue,"\tIn : $(__embtk_pkg_refspec)")
- $(call embtk_echo_blue,"\tClone URL : $(__embtk_pkg_gitsite)")
+ $(call embtk_echo_blue,"\tBranch : $(__embtk_pkg_gitbranch)")
+ $(call embtk_echo_blue,"\tRevision : $(__embtk_pkg_gitrev)")
+ $(call embtk_echo_blue,"\tIn : $(__embtk_pkg_refspec)")
+ $(call embtk_echo_blue,"\tClone URL : $(__embtk_pkg_gitsite)")
+ $(call embtk_echo_blue,"\tPatched : $(__embtk_pkg_needpatch_yesno)")
+ $(call embtk_echo_blue,"\tDependency of : $(or $(__embtk_pkg_depof),N/A)")
test -e $(__embtk_pkg_localgit) || $(call __embtk_gitclone_pkg,$(1))
endef
define __embtk_download_pkg_from_tarball
$(call embtk_echo_blue,"$(__embtk_pkg_name) using tarball")
- $(call embtk_echo_blue,"\tVersion : $(__embtk_pkg_version)")
- $(call embtk_echo_blue,"\tFrom : $(__embtk_pkg_site)")
- $(call embtk_echo_blue,"\tIn : $(__embtk_pkg_package_f)")
+ $(call embtk_echo_blue,"\tVersion : $(__embtk_pkg_version)")
+ $(call embtk_echo_blue,"\tFrom : $(__embtk_pkg_site)")
+ $(call embtk_echo_blue,"\tIn : $(__embtk_pkg_package_f)")
+ $(call embtk_echo_blue,"\tPatched : $(__embtk_pkg_needpatch_yesno)")
+ $(call embtk_echo_blue,"\tDependency of : $(or $(__embtk_pkg_depof),N/A)")
test -e $(__embtk_pkg_package_f) || \
$(call embtk_wget, \
$(__embtk_pkg_package), \