All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH)
Date: Sat, 28 Apr 2012 17:38:16 +0200	[thread overview]
Message-ID: <201204281738.17492.arnout@mind.be> (raw)
In-Reply-To: <1334675140-20303-1-git-send-email-plagnioj@jcrosoft.com>

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

  parent reply	other threads:[~2012-04-28 15:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Arnout Vandecappelle [this message]
2012-04-30 10:29   ` [Buildroot] [PATCH 1/2] add host arch detection and Kconfig (BR2_HOSTARCH) Jean-Christophe PLAGNIOL-VILLARD

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=201204281738.17492.arnout@mind.be \
    --to=arnout@mind.be \
    --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.