Patchwork [6/7] gnu-config: Let it recognise *-*-musl* triplets

login
register
mail settings
Submitter Khem Raj
Date May 29, 2014, 7:01 a.m.
Message ID <df6f93efd9202da413f57f95e3b096fafcb35c74.1401346650.git.raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/72953/
State Accepted
Commit 32ed5994fe7b93cb154be94e0b1b59764278895f
Headers show

Comments

Khem Raj - May 29, 2014, 7:01 a.m.
This will help autotools based packages to recognise
musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../gnu-config/gnu-config/musl-support.patch       | 25 ++++++++++++++++++++++
 .../gnu-config/gnu-config_20120814.bb              |  1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-devtools/gnu-config/gnu-config/musl-support.patch

Patch

diff --git a/meta/recipes-devtools/gnu-config/gnu-config/musl-support.patch b/meta/recipes-devtools/gnu-config/gnu-config/musl-support.patch
new file mode 100644
index 0000000..3147435
--- /dev/null
+++ b/meta/recipes-devtools/gnu-config/gnu-config/musl-support.patch
@@ -0,0 +1,25 @@ 
+support musl
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Index: gnu-config-20120814/config.sub
+===================================================================
+--- gnu-config-20120814.orig/config.sub	2012-09-18 02:27:45.000000000 -0700
++++ gnu-config-20120814/config.sub	2014-03-26 00:34:19.955996709 -0700
+@@ -123,6 +123,7 @@
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+ case $maybe_os in
+   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
++  linux-musl* | \
+   linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+   knetbsd*-gnu* | netbsd*-gnu* | \
+   kopensolaris*-gnu* | \
+@@ -1365,6 +1366,7 @@
+ 	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ 	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+ 	      | -linux-newlib* | -linux-uclibc* \
++	      | -linux-musl* \
+ 	      | -uxpv* | -beos* | -mpeix* | -udk* \
+ 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
diff --git a/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
index 44e1b5d..d67466a 100644
--- a/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
+++ b/meta/recipes-devtools/gnu-config/gnu-config_20120814.bb
@@ -11,6 +11,7 @@  INHIBIT_DEFAULT_DEPS = "1"
 
 SRC_URI = "http://downloads.yoctoproject.org/releases/gnu-config/gnu-config-${PV}.tar.bz2 \
 	   file://config-guess-uclibc.patch \
+	   file://musl-support.patch \
            file://gnu-configize.in"
 
 SRC_URI[md5sum] = "bcfca5a2bb39edad4aae5a65efc84094"