summaryrefslogtreecommitdiff
path: root/core/mk/musl.mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-07-07 21:36:16 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2014-07-12 13:07:02 +0200
commitf2dac09c2084727c184cf7535d441a6ff81c226e (patch)
treeaa7504edf23d4e51919b04bd87467a120201decd /core/mk/musl.mk
parentfc69c860396b58ec30110262aa0c904eaba9b1cb (diff)
downloadembtoolkit-f2dac09c2084727c184cf7535d441a6ff81c226e.tar.gz
embtoolkit-f2dac09c2084727c184cf7535d441a6ff81c226e.tar.bz2
embtoolkit-f2dac09c2084727c184cf7535d441a6ff81c226e.tar.xz
Build system: allow packages defining their recipe to use __embtk_{pre,post}install_pkg
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'core/mk/musl.mk')
-rw-r--r--core/mk/musl.mk11
1 files changed, 2 insertions, 9 deletions
diff --git a/core/mk/musl.mk b/core/mk/musl.mk
index 980bd3c..cd66efa 100644
--- a/core/mk/musl.mk
+++ b/core/mk/musl.mk
@@ -38,6 +38,7 @@ __embtk_musl_cflags := $(TARGET_CFLAGS)
__embtk_musl_cflags += $(if $(embtk_toolchain_use_llvm-y),-Wno-unknown-warning-option)
define embtk_beforeinstall_musl
+ $(MAKE) -C $(MUSL_BUILD_DIR) distclean
cd $(MUSL_SRC_DIR); \
CC=$(TARGETCC_CACHED) \
CROSS_COMPILE="$(CROSS_COMPILE)" \
@@ -52,22 +53,14 @@ define embtk_beforeinstall_musl
endef
define __embtk_install_musl
- $(call embtk_pinfo,"Build and install musl-$(MUSL_VERSION) ...")
- $(call embtk_download_pkg,musl)
- $(call embtk_decompress_pkg,musl)
- $(Q)$(MAKE) -C $(MUSL_BUILD_DIR) distclean
- $(embtk_beforeinstall_musl)
$(Q)$(MAKE) -C $(MUSL_BUILD_DIR) \
DESTDIR=$(embtk_sysroot) install-libs install-headers
$(Q)cd $(embtk_sysroot)/$(LIBDIR); \
ln -sf libc.so $(embtk_musl_dlinker).so.1
- $(call __embtk_setinstalled_pkg,musl)
- $(call __embtk_pkg_gen_dotkconfig_f,musl)
- $(eval __embtk_musl_installed := y)
endef
define embtk_install_musl
- $(if $(call __embtk_pkg_runrecipe-y,musl),$(__embtk_install_musl))
+ $(__embtk_install_musl)
endef
define embtk_cleanup_musl