diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-11-07 23:35:15 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-11-07 23:35:15 +0100 |
commit | 8ef77f23dab5cea74125c8e76e1fb8cc7121dbfe (patch) | |
tree | e6d23892d4c4372d935d81176210eb2472f4d61c /mk/macros.packages.mk | |
parent | 3cbafc5fa62e5a858783f982f7994f1be08e4087 (diff) | |
download | embtoolkit-8ef77f23dab5cea74125c8e76e1fb8cc7121dbfe.tar.gz embtoolkit-8ef77f23dab5cea74125c8e76e1fb8cc7121dbfe.tar.bz2 embtoolkit-8ef77f23dab5cea74125c8e76e1fb8cc7121dbfe.tar.xz |
Build system: give ability for host package to define their install macro
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/macros.packages.mk')
-rw-r--r-- | mk/macros.packages.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/macros.packages.mk b/mk/macros.packages.mk index 8d0fbd6..eb59552 100644 --- a/mk/macros.packages.mk +++ b/mk/macros.packages.mk @@ -480,11 +480,15 @@ endef # Usage: # $(call embtk_install_hostpkg,package) # + +define __embtk_install_hostpkg + $(if $(__embtk_pkg_installed-y),true, + $(call __embtk_install_hostpkg_make,$(1),autotools)) + $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv))) +endef define embtk_install_hostpkg $(if $(__embtk_xinstall_xpkg_allvarset-y), - $(if $(__embtk_pkg_installed-y),true, - $(call __embtk_install_hostpkg_make,$(1),autotools)) - $(if $(embtk_postinstall_$(pkgv)),$(embtk_postinstall_$(pkgv))), + $(or $(embtk_install_$(pkgv)),$(call __embtk_install_hostpkg,$(1))), $(call __embtk_install_paramsfailure,$(1))) endef |