summaryrefslogtreecommitdiff
path: root/core/mk/pkg-macros
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-20 12:13:23 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-04-20 12:13:23 +0200
commit68370c1c499608741018dcedbc03b31a85f41833 (patch)
treef2d2c80f30a22a37f7a4f80bff55c5eb0452069f /core/mk/pkg-macros
parente4a7620e06836b14f93c1f4e06e290e7cd27d240 (diff)
downloadembtoolkit-68370c1c499608741018dcedbc03b31a85f41833.tar.gz
embtoolkit-68370c1c499608741018dcedbc03b31a85f41833.tar.bz2
embtoolkit-68370c1c499608741018dcedbc03b31a85f41833.tar.xz
Build syste: make sure to only display once package dependency
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core/mk/pkg-macros')
-rw-r--r--core/mk/pkg-macros/download.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/mk/pkg-macros/download.mk b/core/mk/pkg-macros/download.mk
index 6300f4f..ebc76f7 100644
--- a/core/mk/pkg-macros/download.mk
+++ b/core/mk/pkg-macros/download.mk
@@ -46,8 +46,11 @@ endef
# $(call embtk_download_pkg,PACKAGE)
#
-__embtk_pkg_depof = $(strip $(foreach p,$(__embtk_pkgs_all-y) toolchain toolchain_addons,\
- $(if $(findstring $(pkgv),$($(call PKGV,$(p)_deps))),$(p))))
+__embtk_pkg_depof = $(strip $(sort $(___embtk_pkg_depof)))
+define ___embtk_pkg_depof
+ $(foreach p,$(__embtk_pkgs_all-y) toolchain toolchain_addons,
+ $(if $(findstring $(pkgv),$($(call PKGV,$(p)_deps))),$(p)))
+endef
__embtk_pkg_needpatch_yesno = $(if $(__embtk_pkg_needpatch),Yes,No)