Message ID | 1396864610-8426-3-git-send-email-fabio.porcedda@gmail.com |
---|---|
State | Accepted |
Headers | show |
Dear Fabio Porcedda, On Mon, 7 Apr 2014 11:56:48 +0200, Fabio Porcedda wrote: > The usual way to enable a package using the package infrastructure is to > use a config option so instead to add the toolchain package to the > TARGETS variable in the Makefile add a config option like all the other > toolchain packages. > > Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> > Cc: Arnout Vandecappelle <arnout@mind.be> > Cc: Yann E. MORIN <yann.morin.1998@free.fr> > --- > Makefile | 2 +- > toolchain/Config.in | 4 ++++ > 2 files changed, 5 insertions(+), 1 deletion(-) I've applied this patch, which conflicted because it was based on the previous patch :) > diff --git a/Makefile b/Makefile > index 82f2763..e0831b6 100644 > --- a/Makefile > +++ b/Makefile > @@ -299,7 +299,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess) > # > ################################################################################ I've removed this big comment here that was no longer making any sense. > diff --git a/toolchain/Config.in b/toolchain/Config.in > index 44f3ac6..94a0c7d 100644 > --- a/toolchain/Config.in > +++ b/toolchain/Config.in > @@ -1,5 +1,9 @@ > menu "Toolchain" > > +config BR2_TOOLCHAIN And added a comment above this, to explain what it's useful for. Thanks! Thomas
On Wed, Apr 16, 2014 at 7:43 PM, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote: > Dear Fabio Porcedda, > > On Mon, 7 Apr 2014 11:56:48 +0200, Fabio Porcedda wrote: >> The usual way to enable a package using the package infrastructure is to >> use a config option so instead to add the toolchain package to the >> TARGETS variable in the Makefile add a config option like all the other >> toolchain packages. >> >> Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> >> Cc: Arnout Vandecappelle <arnout@mind.be> >> Cc: Yann E. MORIN <yann.morin.1998@free.fr> >> --- >> Makefile | 2 +- >> toolchain/Config.in | 4 ++++ >> 2 files changed, 5 insertions(+), 1 deletion(-) > > I've applied this patch, which conflicted because it was based on the > previous patch :) > >> diff --git a/Makefile b/Makefile >> index 82f2763..e0831b6 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -299,7 +299,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess) >> # >> ################################################################################ > > I've removed this big comment here that was no longer making any sense. > >> diff --git a/toolchain/Config.in b/toolchain/Config.in >> index 44f3ac6..94a0c7d 100644 >> --- a/toolchain/Config.in >> +++ b/toolchain/Config.in >> @@ -1,5 +1,9 @@ >> menu "Toolchain" >> >> +config BR2_TOOLCHAIN > > And added a comment above this, to explain what it's useful for. Thanks
diff --git a/Makefile b/Makefile index 82f2763..e0831b6 100644 --- a/Makefile +++ b/Makefile @@ -299,7 +299,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess) # ################################################################################ -TARGETS:= toolchain +TARGETS := # silent mode requested? QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q) diff --git a/toolchain/Config.in b/toolchain/Config.in index 44f3ac6..94a0c7d 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -1,5 +1,9 @@ menu "Toolchain" +config BR2_TOOLCHAIN + bool + default y + # Should be selected for glibc or eglibc config BR2_TOOLCHAIN_USES_GLIBC bool
The usual way to enable a package using the package infrastructure is to use a config option so instead to add the toolchain package to the TARGETS variable in the Makefile add a config option like all the other toolchain packages. Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Yann E. MORIN <yann.morin.1998@free.fr> --- Makefile | 2 +- toolchain/Config.in | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)