mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Oliver Graute <oliver.graute@neuhaus.de>
Subject: Re: [ptxdist] [PATCHv3 2/2] opennhrp: added cross compile patch
Date: Thu, 26 Mar 2015 21:07:59 +0100	[thread overview]
Message-ID: <5514671F.7030903@pengutronix.de> (raw)
In-Reply-To: <1427383321-23633-1-git-send-email-oliver.graute@neuhaus.de>


[-- Attachment #1.1: Type: text/plain, Size: 1568 bytes --]

On 03/26/2015 04:22 PM, Oliver Graute wrote:
> for cross compilation on arm we need this patch
> 
> Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
> ---
>  .../0001-cross-compile-makerule.patch              |   13 +++++++++++++
>  patches/opennhrp-0.14.1/series                     |    1 +
>  2 files changed, 14 insertions(+)
>  create mode 100644 patches/opennhrp-0.14.1/0001-cross-compile-makerule.patch
>  create mode 100644 patches/opennhrp-0.14.1/series
> 
> diff --git a/patches/opennhrp-0.14.1/0001-cross-compile-makerule.patch b/patches/opennhrp-0.14.1/0001-cross-compile-makerule.patch
> new file mode 100644
> index 0000000..fd45b37
> --- /dev/null
> +++ b/patches/opennhrp-0.14.1/0001-cross-compile-makerule.patch
> @@ -0,0 +1,13 @@
> +diff -rupN m/Make.rules n/Make.rules
> +--- m/Make.rules	2012-12-12 09:59:45.000000000 +0100
> ++++ n/Make.rules	2014-10-01 15:17:51.000000000 +0200
> +@@ -63,7 +63,8 @@ export FULL_VERSION RCS_FIND_IGNORE
> + ##
> + # Utilities and default flags for them.
> + 
> +-CROSS_COMPILE	?=
> ++CC = arm-v5te-linux-gnueabi-gcc
> ++CROSS_COMPILE := arm-v5te-linux-gnueabi-

That's not portable, please add this to you .make file:

<PACKAGE>_COMPILE_OPT	:= \
	CROSS_COMPILE=$(COMPILER_PREFIX)

regards,
Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2015-03-26 20:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 15:22 Oliver Graute
2015-03-26 20:07 ` Marc Kleine-Budde [this message]

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=5514671F.7030903@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=oliver.graute@neuhaus.de \
    --cc=ptxdist@pengutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox