Re: [PATCH] Add support for musl-libc to ostable and triplettable
Hi Kevin!
On Sun, 2013-04-14 at 16:29:22 +0200, Kevin Bortis wrote:
> This patch adds support for a musl libc port to ostable and
> triplettable. It would be nice if you could add this patch.
Just for reference this seems to be <http://www.musl-libc.org/>.
(The patch seems to be mangled, missing hardtabs for example.)
> ---
> ostable | 1 +
> triplettable | 2 ++
> 2 files changed, 3 insertions(+)
>
> diff --git a/ostable b/ostable
> index ddc4b04..83eef37 100644
> --- a/ostable
> +++ b/ostable
> @@ -32,3 +32,4 @@ sysv-solaris solaris solaris[^-]*
> uclibceabi-uclinux uclinux-uclibceabi uclinux[^-]*-uclibceabi
> uclibc-uclinux uclinux-uclibc uclinux[^-]*(-uclibc.*)?
> tos-mint mint mint[^-]*
> +musleabihf-linux linux-musleabihf linux[^-]*-musleabihf
> diff --git a/triplettable b/triplettable
> index 11f8a54..f6f8222 100644
> --- a/triplettable
> +++ b/triplettable
> @@ -23,3 +23,5 @@ sysv-solaris-<cpu> solaris-<cpu>
> uclibceabi-uclinux-arm uclinux-armel
> uclibc-uclinux-<cpu> uclinux-<cpu>
> tos-mint-m68k mint-m68k
> +musleabihf-linux-arm musl-armhf
> +
I've queued locally the attached patch, which names the architectures
as musl-linux-<cpu>, so that they do not get confused as a different
kernel (the current <kernel>-<cpu> form, when <kernel> is not linux).
I've also added the general form for non-armhf as I see there's other
architectures supported by the library. Let me know if this looks ok.
Thanks,
Guillem
diff --git a/ostable b/ostable
index ddc4b04..1383150 100644
--- a/ostable
+++ b/ostable
@@ -14,6 +14,8 @@
# <Debian name> <GNU name> <config.guess regex>
uclibceabi-linux linux-uclibceabi linux[^-]*-uclibceabi
uclibc-linux linux-uclibc linux[^-]*-uclibc
+musleabihf-linux linux-musleabihf linux[^-]*-musleabihf
+musl-linux linux-musl linux[^-]*-musl
gnueabihf-linux linux-gnueabihf linux[^-]*-gnueabihf
gnueabi-linux linux-gnueabi linux[^-]*-gnueabi
gnuspe-linux linux-gnuspe linux[^-]*-gnuspe
diff --git a/triplettable b/triplettable
index 11f8a54..e0d78a4 100644
--- a/triplettable
+++ b/triplettable
@@ -5,6 +5,8 @@
# <Debian triplet> <Debian arch>
uclibceabi-linux-arm uclibc-linux-armel
uclibc-linux-<cpu> uclibc-linux-<cpu>
+musleabihf-linux-arm musl-linux-armhf
+musl-linux-<cpu> musl-linux-<cpu>
gnueabihf-linux-arm armhf
gnueabi-linux-arm armel
gnuspe-linux-powerpc powerpcspe
Reply to: