toolchain/musl: add support for 0.9.9
[openwrt/staging/chunkeey.git] / toolchain / musl / Makefile
1 PATH_PREFIX=.
2
3 include ./common.mk
4
5 HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.built
6 HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.musl_installed
7
8 HOST_BUILD_PARALLEL:=1
9
10 define Host/SetToolchainInfo
11 $(SED) 's,^\(LIBC_TYPE\)=.*,\1=$(PKG_NAME),' $(TOOLCHAIN_DIR)/info.mk
12 $(SED) 's,^\(LIBC_URL\)=.*,\1=http://www.musl-libc.org/,' $(TOOLCHAIN_DIR)/info.mk
13 $(SED) 's,^\(LIBC_VERSION\)=.*,\1=$(PKG_VERSION),' $(TOOLCHAIN_DIR)/info.mk
14 $(SED) 's,^\(LIBC_SO_VERSION\)=.*,\1=$(LIBC_SO_VERSION),' $(TOOLCHAIN_DIR)/info.mk
15 endef
16
17 define Host/Compile
18 $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) all
19 endef
20
21 define Host/Install
22 $(call Host/SetToolchainInfo)
23 $(MAKE) -C $(HOST_BUILD_DIR) DESTDIR="$(TOOLCHAIN_DIR)/" install
24 endef
25
26 $(eval $(call HostBuild))