summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-05-21 00:07:25 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-05-21 00:07:25 +0200
commit2a76e753fc63ac983b6b6bce1b33d0a4d1dab348 (patch)
tree6f8e683174a1bc25e0434f8e6d09706197e42bd5
parente5a6a3844fa5cca3f88629878684f06b9e297e24 (diff)
downloadembtoolkit-2a76e753fc63ac983b6b6bce1b33d0a4d1dab348.tar.gz
embtoolkit-2a76e753fc63ac983b6b6bce1b33d0a4d1dab348.tar.bz2
embtoolkit-2a76e753fc63ac983b6b6bce1b33d0a4d1dab348.tar.xz
Build system internal macros: add __embtk_pkgv_category
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--core/mk/pkg-macros/incl.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/mk/pkg-macros/incl.mk b/core/mk/pkg-macros/incl.mk
index 3a8cc5a..91be947 100644
--- a/core/mk/pkg-macros/incl.mk
+++ b/core/mk/pkg-macros/incl.mk
@@ -55,6 +55,10 @@ define __embtk_include_pkg
else
__embtk_$(pkgv)_installed =
endif
+ # preset some variables
+ $(eval __embtk_$(pkgv)_category := $(call __embtk_mk_uquote,$(or $(CONFIG_EMBTK_$(PKGV)_REFSPEC),$(CONFIG_EMBTK_$(PKGV)_CATEGORY))))
+ $(eval __embtk_xpkg_category := $(lastword $(subst /,$(embtk_space),$(embtk_pkgincdir))))
+ __embtk_$(pkgv)_category := $(or $(___embtk_$(pkgv)_category),$(__embtk_xpkg_category))
endef
define embtk_include_hostpkg