Browse Source

add musl git support

Waldemar Brodkorb 10 years ago
parent
commit
ccb0b79b6f
4 changed files with 21 additions and 7 deletions
  1. 5 1
      mk/fetch.mk
  2. 2 2
      target/config/Config.in.libc.choice
  3. 7 2
      toolchain/glibc/Makefile.inc
  4. 7 2
      toolchain/musl/Makefile.inc

+ 5 - 1
mk/fetch.mk

@@ -72,7 +72,11 @@ $(1):
 		rm -rf $${PKG_NAME}-$${PKG_VERSION}; \
 		git clone $${PKG_REPO} $${PKG_NAME}-$${PKG_VERSION}; \
 		rm -rf $${PKG_NAME}-$${PKG_VERSION}/.git; \
-		tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
+		if [ "$${PKG_NAME}" = "musl" ];then \
+			tar czf $${PKG_NAME}-$${PKG_VERSION}.tar.gz $${PKG_NAME}-$${PKG_VERSION}; \
+		else \
+			tar cJf $${PKG_NAME}-$${PKG_VERSION}.tar.xz $${PKG_NAME}-$${PKG_VERSION}; \
+		fi; \
 		rm -rf $${PKG_NAME}-$${PKG_VERSION}; \
 		: check the size here; \
 		[[ ! -e $$$$filename ]] || exit 0; \

+ 2 - 2
target/config/Config.in.libc.choice

@@ -97,8 +97,8 @@ config ADK_TARGET_LIB_UCLIBC_GIT
 	select ADK_DISABLE_CHECKSUM
 	depends on ADK_TARGET_LIB_UCLIBC
 
-config ADK_TARGET_LIB_MUSL_1_0_3
-	prompt "1.0.3"
+config ADK_TARGET_LIB_MUSL_1_0_4
+	prompt "1.0.4"
 	boolean
 	depends on ADK_TARGET_LIB_MUSL
 

+ 7 - 2
toolchain/glibc/Makefile.inc

@@ -2,10 +2,15 @@
 # material, please see the LICENCE file in the top-level directory.
 
 PKG_NAME:=		glibc
-PKG_VERSION:=		2.19
+ifeq ($(ADK_LIBC_VERSION),git)
+PKG_VERSION:=		git
+PKG_REPO:=		git://sourceware.org/git/glibc.git
+else
+PKG_VERSION:=		$(ADK_LIBC_VERSION)
+PKG_SITES:=		${MASTER_SITE_GNU:=glibc/}
+endif
 PKG_RELEASE:=		1
 PKG_MD5SUM:=		e26b8cc666b162f999404b03970f14e4
-PKG_SITES:=		${MASTER_SITE_GNU:=glibc/}
 GLIBC_CONFOPTS:=	--build=$(GNU_HOST_NAME) \
 			--host=$(GNU_TARGET_NAME) \
 			--with-headers=$(STAGING_TARGET_DIR)/usr/include \

+ 7 - 2
toolchain/musl/Makefile.inc

@@ -2,8 +2,13 @@
 # material, please see the LICENCE file in the top-level directory.
 
 PKG_NAME:=		musl
-PKG_VERSION:=		1.1.4
+ifeq ($(ADK_LIBC_VERSION),git)
+PKG_VERSION:=		git
+PKG_REPO:=		git://git.musl-libc.org/musl
+else
+PKG_VERSION:=		$(ADK_LIBC_VERSION)
+PKG_SITES:=		http://www.musl-libc.org/releases/
+endif
 PKG_RELEASE:=		1
 PKG_MD5SUM:=		f18f3bdbe088438cd64a5313c19a7312
-PKG_SITES:=		http://www.musl-libc.org/releases/
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz