mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[buildroot] add preliminary support for musl
Musl is an alternative C-library, see http://www.musl-libc.org for more infos. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34314 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -29,7 +29,7 @@ define Package/hotplug2
|
||||
VERSION:=1.0-beta-$(PKG_RELEASE)
|
||||
TITLE:=Version 1.0 Dynamic device management subsystem for embedded systems
|
||||
URL:=http://isteve.bofh.cz/~isteve/hotplug2/
|
||||
DEPENDS:=+!USE_UCLIBC:libbsd
|
||||
DEPENDS:=+!(USE_UCLIBC||USE_MUSL):libbsd
|
||||
endef
|
||||
|
||||
define Package/hotplug2/description
|
||||
|
||||
@@ -18,7 +18,7 @@ PKG_INSTALL:=1
|
||||
define Package/libbsd
|
||||
SECTION:=libs
|
||||
CATEGORY:=Libraries
|
||||
DEPENDS:=@!USE_UCLIBC
|
||||
DEPENDS:=@!(USE_UCLIBC||USE_MUSL)
|
||||
TITLE:=common BSD library
|
||||
endef
|
||||
|
||||
|
||||
@@ -426,6 +426,16 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
|
||||
$(1)/lib/
|
||||
endef
|
||||
|
||||
define Package/musl/install
|
||||
$(INSTALL_DIR) $(1)/lib
|
||||
$(CP) \
|
||||
$(TOOLCHAIN_DIR)/lib/ld-musl-*.so* \
|
||||
$(1)/lib/
|
||||
$(CP) \
|
||||
$(TOOLCHAIN_DIR)/lib/libc.so* \
|
||||
$(1)/lib/
|
||||
endef
|
||||
|
||||
define Package/libc/install
|
||||
$(call Package/$(LIBC)/install,$1)
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user