All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] add basic support for uClibc-ng
Date: Mon, 9 Feb 2015 20:53:38 +0100	[thread overview]
Message-ID: <20150209205338.604f740e@free-electrons.com> (raw)
In-Reply-To: <20150209181636.GA17451@waldemar-brodkorb.de>

Dear Waldemar Brodkorb,

On Mon, 9 Feb 2015 19:16:37 +0100, Waldemar Brodkorb wrote:

> +config BR2_TOOLCHAIN_BUILDROOT_UCLIBC_NG
> +	bool "uClibc-ng"
> +	select BR2_TOOLCHAIN_USES_UCLIBC
> +	depends on BR2_arcle   || BR2_arceb  || BR2_arm    || BR2_armeb    || \
> +		   BR2_avr32   || BR2_bfin   || BR2_i386   || BR2_m68k     || \
> +		   BR2_mips    || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
> +		   BR2_powerpc || BR2_sh     || BR2_sparc  || BR2_xtensa   || \
> +		   BR2_x86_64
> +	help
> +	  This option selects uClibc-ng as the C library for the
> +	  cross-compilation toolchain.
> +
> +	  http://uclibc-ng.org
> +

I don't think introducing this symbol is needed. Instead, we can just
make uClibc-ng another version of uClibc. Like the following (untested) :

diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in
index 020c47c..6f96c15 100644
--- a/package/uclibc/Config.in
+++ b/package/uclibc/Config.in
@@ -21,6 +21,10 @@ choice
                bool "uClibc 0.9.33.x"
                depends on !(BR2_arc || BR2_avr32 || BR2_xtensa)
 
+       config BR2_UCLIBC_NG_VERSION_1_0_0
+               bool "uClibc-ng 1.0.0"
+               depends on !(BR2_arc || BR2_avr32 || BR2_xtensa)
+
        config BR2_UCLIBC_VERSION_XTENSA_GIT
                bool "uClibc Git Xtensa"
                depends on BR2_xtensa
@@ -42,6 +46,7 @@ config BR2_UCLIBC_VERSION_STRING
        string
        default 0.9.31.1        if BR2_UCLIBC_VERSION_0_9_31
        default 0.9.33.2        if BR2_UCLIBC_VERSION_0_9_33
+       default 1.0.0           if BR2_UCLIBC_NG_VERSION_1_0_0
        default "arc-2014.12" if BR2_arc
        default "7bf35c8b7d4a1f97174eb49f47f33946b282114c" if BR2_UCLIBC_VERSION_XTENSA_GIT
        default BR2_USE_UCLIBC_SNAPSHOT if BR2_UCLIBC_VERSION_SNAPSHOT
@@ -50,6 +55,7 @@ config BR2_UCLIBC_CONFIG
        string "uClibc configuration file to use?"
        default "package/uclibc/uClibc-0.9.31.config" if BR2_UCLIBC_VERSION_0_9_31
        default "package/uclibc/uClibc-0.9.33.config" if BR2_UCLIBC_VERSION_0_9_33
+       default "package/uclibc/uClibc-ng-1.0.0.config" if BR2_UCLIBC_NG_VERSION_1_0_0
        default "package/uclibc/uClibc-snapshot.config" if BR2_arc
        default "package/uclibc/uClibc-snapshot.config" if BR2_UCLIBC_VERSION_SNAPSHOT
        default "package/uclibc/uClibc-snapshot.config" if BR2_UCLIBC_VERSION_XTENSA_GIT
diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk
index 8654926..aeffa18 100644
--- a/package/uclibc/uclibc.mk
+++ b/package/uclibc/uclibc.mk
@@ -17,6 +17,9 @@ UCLIBC_SOURCE = uClibc-$(UCLIBC_VERSION).tar.gz
 else ifeq ($(BR2_UCLIBC_VERSION_XTENSA_GIT),y)
 UCLIBC_SITE = git://git.busybox.net/uClibc
 UCLIBC_SOURCE = uClibc-$(UCLIBC_VERSION).tar.gz
+else ifeq ($(BR2_UCLIBC_NG_VERSION_1_0_0),y)
+UCLIBC_SITE = http://downloads.uclibc-ng.org/releases/1.0.0/
+UCLIBC_SOURCE = uClibc-ng-$(UCLIBC_VERSION).tar.xz
 else
 UCLIBC_SITE = http://www.uclibc.org/downloads
 UCLIBC_SOURCE = uClibc-$(UCLIBC_VERSION).tar.xz

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-02-09 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-09 18:16 [Buildroot] [PATCH] add basic support for uClibc-ng Waldemar Brodkorb
2015-02-09 19:53 ` Thomas Petazzoni [this message]
2015-02-10 17:25   ` Waldemar Brodkorb
2015-02-11  6:10     ` Thomas Petazzoni
2015-02-11  9:26       ` Waldemar Brodkorb
2015-02-11 13:17         ` Thomas Petazzoni
2015-02-11  9:35   ` Thomas De Schampheleire

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150209205338.604f740e@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.