mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-18 12:54:39 +00:00
4d384d28e4
This reverts r15599 [0].
This was added to fix an uclibc rebuild issue, but since uclibc
isn't supported anymore [Fixes:] this can be removed.
[0] https://git.openwrt.org/?p=openwrt/svn-archive/archive.git;a=commitdiff;h=016a052efeee6bc2da3f501a8c66b5aea20350b4
Fixes: 63fb1752
"toolchain: remove uClibc-ng"
Signed-off-by: Andre Heider <a.heider@gmail.com>
32 lines
909 B
Makefile
32 lines
909 B
Makefile
PATH_PREFIX=.
|
|
|
|
include ./common.mk
|
|
|
|
HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.built
|
|
HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.musl_installed
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
MUSL_MAKEOPTS = -C $(HOST_BUILD_DIR) \
|
|
DESTDIR="$(TOOLCHAIN_DIR)/" \
|
|
LIBCC="$(shell $(TARGET_CC) -print-libgcc-file-name)"
|
|
|
|
define Host/SetToolchainInfo
|
|
$(SED) 's,^\(LIBC_TYPE\)=.*,\1=$(PKG_NAME),' $(TOOLCHAIN_DIR)/info.mk
|
|
$(SED) 's,^\(LIBC_URL\)=.*,\1=http://www.musl-libc.org/,' $(TOOLCHAIN_DIR)/info.mk
|
|
$(SED) 's,^\(LIBC_VERSION\)=.*,\1=$(PKG_VERSION),' $(TOOLCHAIN_DIR)/info.mk
|
|
$(SED) 's,^\(LIBC_SO_VERSION\)=.*,\1=$(LIBC_SO_VERSION),' $(TOOLCHAIN_DIR)/info.mk
|
|
endef
|
|
|
|
define Host/Compile
|
|
+$(MAKE) $(HOST_JOBS) $(MUSL_MAKEOPTS) all
|
|
endef
|
|
|
|
define Host/Install
|
|
$(call Host/SetToolchainInfo)
|
|
+$(MAKE) $(HOST_JOBS) $(MUSL_MAKEOPTS) DESTDIR="$(TOOLCHAIN_DIR)/" install
|
|
$(CP) ./include $(TOOLCHAIN_DIR)/
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|