From 27284d5bbfec47a2db87acb8ea32cde3cc8d60ca Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 27 Aug 2011 18:46:51 +0200 Subject: Build system: generic macros: give ability for a packages to define post install hook recipe Packages now may define a post install hook, after call of various embtk_{make}install_{host}pkg like this: define embtk_postinstall_{pkgname} ... ... endef '{pkgname}' being the lower case package name. Signed-off-by: Abdoulaye Walsimou Gaye --- mk/macros.mk | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'mk') diff --git a/mk/macros.mk b/mk/macros.mk index 8a0574b..75ef983 100644 --- a/mk/macros.mk +++ b/mk/macros.mk @@ -455,8 +455,9 @@ endef # $(call embtk_install_pkg,package) # define embtk_install_pkg - $(Q)$(if $(__embtk_pkg_installed-y), \ + $(if $(__embtk_pkg_installed-y), \ true,$(call __embtk_install_pkg_make,$(1),autotools)) + $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv))) endef # @@ -466,8 +467,9 @@ endef # $(call embtk_makeinstall_pkg,package) # define embtk_makeinstall_pkg - $(Q)$(if $(__embtk_pkg_installed-y), \ + $(if $(__embtk_pkg_installed-y), \ true,$(call __embtk_install_pkg_make,$(1))) + $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv))) endef # @@ -477,8 +479,9 @@ endef # $(call embtk_install_hostpkg,package) # define embtk_install_hostpkg - $(Q)$(if $(__embtk_pkg_installed-y),true, \ + $(if $(__embtk_pkg_installed-y),true, \ $(call __embtk_install_hostpkg_make,$(1),autotools)) + $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv))) endef # @@ -488,8 +491,9 @@ endef # $(call embtk_makeinstall_hostpkg,package) # define embtk_makeinstall_hostpkg - $(Q)$(if $(__embtk_pkg_installed-y),true, \ + $(if $(__embtk_pkg_installed-y),true, \ $(call __embtk_install_hostpkg_make,$(1))) + $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv))) endef # -- cgit v1.2.3