summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-16 15:14:48 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-03-16 15:14:48 +0100
commit1bda611a7baae46f745f59073d2c00d1fd0bc39e (patch)
tree43c77db9c0deacac1119a0ba52ff0e4312a96bb8
parentaf199a0888383615ab524f85636d702c5767bca2 (diff)
downloadembtoolkit-1bda611a7baae46f745f59073d2c00d1fd0bc39e.tar.gz
embtoolkit-1bda611a7baae46f745f59073d2c00d1fd0bc39e.tar.bz2
embtoolkit-1bda611a7baae46f745f59073d2c00d1fd0bc39e.tar.xz
Build system: fix __embtk_pkg_name to not include _host suffix
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--Makefile3
-rw-r--r--mk/pkg-macros/vars.mk2
2 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cb828f4..c2b2d58 100644
--- a/Makefile
+++ b/Makefile
@@ -130,6 +130,3 @@ include toolchain/toolchain.mk
include mk/packages.mk
include mk/rootfs/rootfs.mk
include mk/help.mk
-
-testinstall:
- @echo "$(call __embtk_pkg_runrecipe-y,ccache_host)"
diff --git a/mk/pkg-macros/vars.mk b/mk/pkg-macros/vars.mk
index 0abe122..9f14ae3 100644
--- a/mk/pkg-macros/vars.mk
+++ b/mk/pkg-macros/vars.mk
@@ -41,7 +41,7 @@ embtk_host_uname := $(shell uname -s -r -p)
#
PKGV = $(call embtk_ucase,$(1))
pkgv = $(call embtk_lcase,$(1))
-__embtk_pkg_name = $(or $(strip $($(PKGV)_NAME)),$(pkgv))
+__embtk_pkg_name = $(or $(strip $($(PKGV)_NAME)),$(patsubst %_host,%,$(pkgv)))
__embtk_pkg_needpatch = $(CONFIG_EMBTK_$(PKGV)_NEED_PATCH)
__embtk_pkg_site = $(strip $($(PKGV)_SITE))
__embtk_patch_site = $(embtk_ftp)