diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-07-06 22:36:32 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2014-07-07 07:31:39 +0200 |
commit | a0831fa1c284bc78f46a4062a812ac9af71d682f (patch) | |
tree | e8de1a8ebf7dea43538ad9b6d19e1081414b384e /core/mk/pkg-macros | |
parent | aa894d80a7b2824f7326b2a41816edc6ac6bcf67 (diff) | |
download | embtoolkit-a0831fa1c284bc78f46a4062a812ac9af71d682f.tar.gz embtoolkit-a0831fa1c284bc78f46a4062a812ac9af71d682f.tar.bz2 embtoolkit-a0831fa1c284bc78f46a4062a812ac9af71d682f.tar.xz |
Build system internal: create builddir inside __preinstall_pkg macros
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core/mk/pkg-macros')
-rw-r--r-- | core/mk/pkg-macros/install.mk | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/mk/pkg-macros/install.mk b/core/mk/pkg-macros/install.mk index 8c64890..2ec8361 100644 --- a/core/mk/pkg-macros/install.mk +++ b/core/mk/pkg-macros/install.mk @@ -164,16 +164,18 @@ endef define __embtk_preinstall_pkg $(call __embtk_install_pkgdeps,$(1)) $(call embtk_pinfo,"Compile/Install $(__embtk_pkg_name)-$(__embtk_pkg_version) in your root filesystem...") + mkdir -p $(__embtk_pkg_builddir) $(call embtk_download_pkg,$(1)) $(call embtk_decompress_pkg,$(1)) - $(if $(embtk_beforeinstall_$(pkgv)),$(embtk_beforeinstall_$(pkgv))) + $(embtk_beforeinstall_$(pkgv)) endef define __embtk_preinstall_hostpkg $(call __embtk_install_pkgdeps,$(1)) $(call embtk_pinfo,"Compile/Install $(__embtk_pkg_name)-$(__embtk_pkg_version) for host...") + mkdir -p $(__embtk_pkg_builddir) $(call embtk_download_pkg,$(1)) $(call embtk_decompress_pkg,$(1)) - $(if $(embtk_beforeinstall_$(pkgv)),$(embtk_beforeinstall_$(pkgv))) + $(embtk_beforeinstall_$(pkgv)) endef define __embtk_postinstall_pkg $(call __embtk_setinstalled_pkg,$(1)) @@ -296,7 +298,6 @@ define embtk_install_pkg endef define __embtk_install_pkg $(if $(__embtk_pkg_runrecipe-y), - $(Q)mkdir -p $(__embtk_pkg_builddir) $(if $(__embtk_pkg_usewaf-y), $(Q)$(call __embtk_install_pkg_waf,$(1)), $(Q)$(call __embtk_install_pkg_make,$(1),autotools))) @@ -312,7 +313,6 @@ endef define embtk_makeinstall_pkg $(if $(__embtk_xinstall_xpkg_allvarset-y), $(if $(__embtk_pkg_runrecipe-y), - $(Q)mkdir -p $(__embtk_pkg_builddir) $(Q)$(call __embtk_install_pkg_make,$(1))) $(embtk_postinstall_$(pkgv)), $(call __embtk_install_paramsfailure,$(1))) @@ -331,7 +331,6 @@ define embtk_install_hostpkg endef define __embtk_install_hostpkg $(if $(__embtk_pkg_runrecipe-y), - $(Q)mkdir -p $(__embtk_pkg_builddir) $(if $(__embtk_pkg_usewaf-y), $(Q)$(call __embtk_install_hostpkg_waf,$(1)), $(Q)$(call __embtk_install_hostpkg_make,$(1),autotools))) @@ -347,7 +346,6 @@ endef define embtk_makeinstall_hostpkg $(if $(__embtk_xinstall_xpkg_allvarset-y), $(if $(__embtk_pkg_runrecipe-y), - $(Q)mkdir -p $(__embtk_pkg_builddir) $(Q)$(call __embtk_install_hostpkg_make,$(1))) $(embtk_postinstall_$(pkgv)), $(call __embtk_install_paramsfailure,$(1))) |