All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Cc: Christoffer Dall
	<c.dall-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
Subject: [PATCH] Allow simple cross-compilation of library
Date: Wed, 27 Jun 2012 08:22:57 -0500	[thread overview]
Message-ID: <E1SjsCv-0006dk-SV@jdl.com> (raw)


[ Forwarded to devicetree dev list for comment. --jdl ]


------- Forwarded Message

Subject: [PATCH] Allow simple cross-compilation of library
To: jdl-CYoMK+44s/E@public.gmane.org
From: Christoffer Dall <c.dall-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
Date: Tue, 05 Jun 2012 13:09:59 -0400
Message-ID: <20120605170959.12774.39782.stgit@ubuntu>


This is extremely useful when cross-compiling the library to be
linked with cross-compiled QEMU.

Signed-off-by: Christoffer Dall <c.dall-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org>
- ---
 Makefile |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index 1169e6c..efa79c1 100644
- --- a/Makefile
+++ b/Makefile
@@ -15,6 +15,10 @@ EXTRAVERSION =
 LOCAL_VERSION =
 CONFIG_LOCALVERSION =
 
+CC=${CROSS_COMPILE}gcc
+LD=${CROSS_COMPILE}ld
+AS=${CROSS_COMPILE}as
+
 CPPFLAGS = -I libfdt -I .
 WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
 	-Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls


------- End of Forwarded Message

             reply	other threads:[~2012-06-27 13:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27 13:22 Jon Loeliger [this message]
     [not found] ` <E1SjsCv-0006dk-SV-CYoMK+44s/E@public.gmane.org>
2012-06-28  3:07   ` [PATCH] Allow simple cross-compilation of library David Gibson
     [not found]     ` <20120628030714.GA10546-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2013-01-06 22:09       ` Jon Loeliger

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=E1SjsCv-0006dk-SV@jdl.com \
    --to=jdl-cyomk+44s/e@public.gmane.org \
    --cc=c.dall-lrHrjnjw1UfHK3s98zE1ajGjJy/sRE9J@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    /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.