From bb83ca58e3788967943569c484be2da1dfdcb09b Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Fri, 2 May 2014 12:19:28 +0200 Subject: Build system: tweak install macros to not use recursive make Signed-off-by: Abdoulaye Walsimou Gaye --- core/mk/pkg-macros/install.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/mk/pkg-macros/install.mk') diff --git a/core/mk/pkg-macros/install.mk b/core/mk/pkg-macros/install.mk index b80caca..d741b34 100644 --- a/core/mk/pkg-macros/install.mk +++ b/core/mk/pkg-macros/install.mk @@ -157,9 +157,13 @@ __embtk_single_make_hostinstall = $(__embtk_pkg_makeenv) \ $(if $(__embtk_pkg_destdir),DESTDIR=$(__embtk_pkg_destdir)) \ $(__embtk_pkg_makeopts) install +define __embtk_install_pkgdeps + $(foreach dep,$(__embtk_pkg_depspkgv),$(call embtk_install_xpkg,$(dep))) +endef + __embtk_autotoolspkg-y=$(2) define __embtk_install_pkg_make - $(foreach dep,$(__embtk_pkg_depspkgv),$(call embtk_install_xpkg,$(dep))) + $(call __embtk_install_pkgdeps,$(1)) $(call embtk_pinfo,"Compile/Install $(__embtk_pkg_name)-$(__embtk_pkg_version) in your root filesystem...") $(call embtk_download_pkg,$(1)) $(call embtk_decompress_pkg,$(1)) @@ -179,7 +183,7 @@ define __embtk_install_pkg_make $(eval __embtk_$(pkgv)_installed = y) endef define __embtk_install_hostpkg_make - $(Q)$(if $(__embtk_pkg_deps),$(MAKE) $(__embtk_pkg_deps)) + $(call __embtk_install_pkgdeps,$(1)) $(call embtk_pinfo,"Compile/Install $(__embtk_pkg_name)-$(__embtk_pkg_version) for host...") $(call embtk_download_pkg,$(1)) $(call embtk_decompress_pkg,$(1)) -- cgit v1.2.3