All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH)
@ 2012-04-17 15:05 Jean-Christophe PLAGNIOL-VILLARD
  2012-04-17 15:05 ` [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64 Jean-Christophe PLAGNIOL-VILLARD
  2012-04-28 15:38 ` [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Arnout Vandecappelle
  0 siblings, 2 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-17 15:05 UTC (permalink / raw)
  To: buildroot

This will allow to install binary package only if they are supported by the
host. As example Atmel SAM-BA (x86 only).

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 Config.in |    4 ++++
 Makefile  |   10 ++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/Config.in b/Config.in
index 68abb9b..be424b7 100644
--- a/Config.in
+++ b/Config.in
@@ -10,6 +10,10 @@ config BR2_VERSION
 	string
 	option env="BR2_VERSION_FULL"
 
+config BR2_HOSTARCH
+	string
+	option env="HOSTARCH"
+
 source "target/Config.in.arch"
 
 menu "Build options"
diff --git a/Makefile b/Makefile
index 3a09417..b14940b 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,16 @@ ifneq ($(firstword $(sort $(MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MAKE_VERSI
 $(error You have make '$(MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
 endif
 
+export HOSTARCH := $(shell uname -m | \
+	sed -e s/i.86/x86/ \
+	    -e s/sun4u/sparc64/ \
+	    -e s/arm.*/arm/ \
+	    -e s/sa110/arm/ \
+	    -e s/ppc64/powerpc/ \
+	    -e s/ppc/powerpc/ \
+	    -e s/macppc/powerpc/\
+	    -e s/sh.*/sh/)
+
 # This top-level Makefile can *not* be executed in parallel
 .NOTPARALLEL:
 
-- 
1.7.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-04-17 15:05 [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-17 15:05 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-04-23  6:50   ` Jean-Christophe PLAGNIOL-VILLARD
  2012-04-28 15:38 ` [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Arnout Vandecappelle
  1 sibling, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-17 15:05 UTC (permalink / raw)
  To: buildroot

As sam-ba is deliver as a binary for x86

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 package/sam-ba/Config.in.host |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/package/sam-ba/Config.in.host b/package/sam-ba/Config.in.host
index f2ea01f..20b2b36 100644
--- a/package/sam-ba/Config.in.host
+++ b/package/sam-ba/Config.in.host
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_HOST_SAM_BA
 	bool "host sam-ba"
+	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
 	help
 	  Atmel SAM-BA software provides an open set of tools for
 	  programming the Atmel SAM3, SAM7 and SAM9 ARM-based
-- 
1.7.9.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-04-17 15:05 ` [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64 Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-23  6:50   ` Jean-Christophe PLAGNIOL-VILLARD
  2012-04-27 10:19     ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-23  6:50 UTC (permalink / raw)
  To: buildroot

On 17:05 Tue 17 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> As sam-ba is deliver as a binary for x86
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
ping

Best Regards,
J.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-04-23  6:50   ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-27 10:19     ` Jean-Christophe PLAGNIOL-VILLARD
  2012-05-04  5:01       ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-27 10:19 UTC (permalink / raw)
  To: buildroot

On 08:50 Mon 23 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 17:05 Tue 17 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> > As sam-ba is deliver as a binary for x86
> > 
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > ---
> ping
ping

Best Regards,
J.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH)
  2012-04-17 15:05 [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Jean-Christophe PLAGNIOL-VILLARD
  2012-04-17 15:05 ` [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64 Jean-Christophe PLAGNIOL-VILLARD
@ 2012-04-28 15:38 ` Arnout Vandecappelle
  2012-04-30 10:29   ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 1 reply; 11+ messages in thread
From: Arnout Vandecappelle @ 2012-04-28 15:38 UTC (permalink / raw)
  To: buildroot

On Tuesday 17 April 2012 17:05:39 Jean-Christophe PLAGNIOL-VILLARD wrote:
> This will allow to install binary package only if they are supported by the
> host. As example Atmel SAM-BA (x86 only).
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  Config.in |    4 ++++
>  Makefile  |   10 ++++++++++
>  2 files changed, 14 insertions(+), 0 deletions(-)
> 
> diff --git a/Config.in b/Config.in
> index 68abb9b..be424b7 100644
> --- a/Config.in
> +++ b/Config.in
> @@ -10,6 +10,10 @@ config BR2_VERSION
>  	string
>  	option env="BR2_VERSION_FULL"
>  
> +config BR2_HOSTARCH
> +	string
> +	option env="HOSTARCH"
> +
>  source "target/Config.in.arch"
>  
>  menu "Build options"
> diff --git a/Makefile b/Makefile
> index 3a09417..b14940b 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -32,6 +32,16 @@ ifneq ($(firstword $(sort $(MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MAKE_VERSI
>  $(error You have make '$(MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
>  endif
>  
> +export HOSTARCH := $(shell uname -m | \
> +	sed -e s/i.86/x86/ \
> +	    -e s/sun4u/sparc64/ \
> +	    -e s/arm.*/arm/ \
> +	    -e s/sa110/arm/ \
> +	    -e s/ppc64/powerpc/ \
> +	    -e s/ppc/powerpc/ \
> +	    -e s/macppc/powerpc/\
> +	    -e s/sh.*/sh/)

 If it's going to be any use, I guess we still need to be able to
distinguish arm/armeb and sh/sh64.  But I don't know how these look
in the uname. 

> +
>  # This top-level Makefile can *not* be executed in parallel
>  .NOTPARALLEL:


 Regards,
 Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH)
  2012-04-28 15:38 ` [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Arnout Vandecappelle
@ 2012-04-30 10:29   ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-30 10:29 UTC (permalink / raw)
  To: buildroot

On 17:38 Sat 28 Apr     , Arnout Vandecappelle wrote:
> On Tuesday 17 April 2012 17:05:39 Jean-Christophe PLAGNIOL-VILLARD wrote:
> > This will allow to install binary package only if they are supported by the
> > host. As example Atmel SAM-BA (x86 only).
> > 
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > ---
> >  Config.in |    4 ++++
> >  Makefile  |   10 ++++++++++
> >  2 files changed, 14 insertions(+), 0 deletions(-)
> > 
> > diff --git a/Config.in b/Config.in
> > index 68abb9b..be424b7 100644
> > --- a/Config.in
> > +++ b/Config.in
> > @@ -10,6 +10,10 @@ config BR2_VERSION
> >  	string
> >  	option env="BR2_VERSION_FULL"
> >  
> > +config BR2_HOSTARCH
> > +	string
> > +	option env="HOSTARCH"
> > +
> >  source "target/Config.in.arch"
> >  
> >  menu "Build options"
> > diff --git a/Makefile b/Makefile
> > index 3a09417..b14940b 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -32,6 +32,16 @@ ifneq ($(firstword $(sort $(MAKE_VERSION) $(MIN_MAKE_VERSION))),$(MIN_MAKE_VERSI
> >  $(error You have make '$(MAKE_VERSION)' installed. GNU make >= $(MIN_MAKE_VERSION) is required)
> >  endif
> >  
> > +export HOSTARCH := $(shell uname -m | \
> > +	sed -e s/i.86/x86/ \
> > +	    -e s/sun4u/sparc64/ \
> > +	    -e s/arm.*/arm/ \
> > +	    -e s/sa110/arm/ \
> > +	    -e s/ppc64/powerpc/ \
> > +	    -e s/ppc/powerpc/ \
> > +	    -e s/macppc/powerpc/\
> > +	    -e s/sh.*/sh/)
> 
>  If it's going to be any use, I guess we still need to be able to
> distinguish arm/armeb and sh/sh64.  But I don't know how these look
> in the uname. 

If you can found one sh64 board good luck I may have one somewhere but not
even sure I can still found a sh64

for arme if you can found a board with enough power power to build something on it
as big as buildroot

today the Cortex A15 and A9 are little endian

Best Regards,
J.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-04-27 10:19     ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-05-04  5:01       ` Jean-Christophe PLAGNIOL-VILLARD
  2012-05-07 13:45         ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-05-04  5:01 UTC (permalink / raw)
  To: buildroot

On 12:19 Fri 27 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 08:50 Mon 23 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 17:05 Tue 17 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > As sam-ba is deliver as a binary for x86
> > > 
> > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > > ---
> > ping
> ping
> 
ping

Best Regards,
J.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-05-04  5:01       ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-05-07 13:45         ` Jean-Christophe PLAGNIOL-VILLARD
  2012-05-07 14:34           ` Peter Korsgaard
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-05-07 13:45 UTC (permalink / raw)
  To: buildroot

On 07:01 Fri 04 May     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 12:19 Fri 27 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 08:50 Mon 23 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > On 17:05 Tue 17 Apr     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > > As sam-ba is deliver as a binary for x86
> > > > 
> > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> > > > ---
> > > ping
> > ping
> > 
> ping
it's the for ping

did I need to understand that noe one care of non x86 host?

Best Regards,
J.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-05-07 13:45         ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-05-07 14:34           ` Peter Korsgaard
  2012-05-07 15:57             ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2012-05-07 14:34 UTC (permalink / raw)
  To: buildroot

>>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:

 Jean-Christophe> it's the for ping

 Jean-Christophe> did I need to understand that noe one care of non x86 host?

To me it is more of a question of tradeoffs. Either we do it really
right and use this kind of infrastructure for the external toolchains as
well (where it really matters), or we decide the extra complexity isn't
worth it for the few non-x86 users.

I haven't made up my mind about this yet, but am leaning towards the
2nd.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-05-07 14:34           ` Peter Korsgaard
@ 2012-05-07 15:57             ` Jean-Christophe PLAGNIOL-VILLARD
  2012-05-11 19:42               ` Arnout Vandecappelle
  0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-05-07 15:57 UTC (permalink / raw)
  To: buildroot

On 16:34 Mon 07 May     , Peter Korsgaard wrote:
> >>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
> 
>  Jean-Christophe> it's the for ping
> 
>  Jean-Christophe> did I need to understand that noe one care of non x86 host?
> 
> To me it is more of a question of tradeoffs. Either we do it really
> right and use this kind of infrastructure for the external toolchains as
> well (where it really matters), or we decide the extra complexity isn't
> worth it for the few non-x86 users.
> 
> I haven't made up my mind about this yet, but am leaning towards the
> 2nd.
as a non x86 user I really care

and as the ARM A15 will come soon on the market for serer as example it will
be more and more problematic for binary package

Best Regards,
J.
> 
> -- 
> Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64
  2012-05-07 15:57             ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-05-11 19:42               ` Arnout Vandecappelle
  0 siblings, 0 replies; 11+ messages in thread
From: Arnout Vandecappelle @ 2012-05-11 19:42 UTC (permalink / raw)
  To: buildroot

On 05/07/12 17:57, Jean-Christophe PLAGNIOL-VILLARD wrote:
>> >    Jean-Christophe>  did I need to understand that noe one care of non x86 host?
>> >
>> >  To me it is more of a question of tradeoffs. Either we do it really
>> >  right and use this kind of infrastructure for the external toolchains as
>> >  well (where it really matters), or we decide the extra complexity isn't
>> >  worth it for the few non-x86 users.
>> >
>> >  I haven't made up my mind about this yet, but am leaning towards the
>> >  2nd.
> as a non x86 user I really care
>
> and as the ARM A15 will come soon on the market for serer as example it will
> be more and more problematic for binary package

  ... except that it's not really problematic.  The only problem is that you can
configure buildroot to download something that won't actually run on your
system.  This problem is a lot worse for external toolchains than for sam-ba.

  That said, the patch is really simple and doesn't create a maintenance burden.
Having it in paves the way for disallowing other downloaded host binaries, and
for downloading host binaries for the correct platform.  Therefore:

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

  Jean-Christophe, maybe it's worthwhile to resend and perhaps add
a patch for external toolchains as well?

  Regards,
  Arnout
-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-05-11 19:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-17 15:05 [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Jean-Christophe PLAGNIOL-VILLARD
2012-04-17 15:05 ` [Buildroot] [PATCH 2/2] sam-ba: only propose it if the host is x86 or x86_64 Jean-Christophe PLAGNIOL-VILLARD
2012-04-23  6:50   ` Jean-Christophe PLAGNIOL-VILLARD
2012-04-27 10:19     ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-04  5:01       ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-07 13:45         ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-07 14:34           ` Peter Korsgaard
2012-05-07 15:57             ` Jean-Christophe PLAGNIOL-VILLARD
2012-05-11 19:42               ` Arnout Vandecappelle
2012-04-28 15:38 ` [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Arnout Vandecappelle
2012-04-30 10:29   ` Jean-Christophe PLAGNIOL-VILLARD

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.