Skip to contentSkip to conversation

Allow simple cross-compilation of library

PATCH In review Jon Loeliger 2 participants 3 messages Jun 27, 2012 – Jan 6, 2013 2 messages not in the archive Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow simple cross-compilation of library

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

------- Forwarded Message

Subject: [PATCH] Allow simple cross-compilation of library
To: jdl-CYoMK+44s/[email protected]
From: Christoffer Dall <c.dall-lrHrjnjw1UfHK3s98zE1ajGjJy/[email protected]>
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.

- ---

 Makefile |    4 ++++
 1 file changed, 4 insertions(+)
Makefile +0 -0
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

A message that is not in the archive (sent off-list or not yet received): E1SjsCv-0006dk-SV-CYoMK+44s/[email protected]

#2 lore raw
Quoted 2 lines · Jon Loeliger

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

Yeah, I guess that makes sense.

Quoted 43 lines

------- Forwarded Message

Subject: [PATCH] Allow simple cross-compilation of library
To: jdl-CYoMK+44s/[email protected]
From: Christoffer Dall <c.dall-lrHrjnjw1UfHK3s98zE1ajGjJy/[email protected]>
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.

- ---

 Makefile |    4 ++++
 1 file changed, 4 insertions(+)
Makefile +5 -2
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

_______________________________________________
devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

A message that is not in the archive (sent off-list or not yet received): 20120628030714.GA10546-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org

#4 lore raw
Quoted 33 lines · Jon Loeliger
Quoted 2 lines

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

Yeah, I guess that makes sense.

Quoted 27 lines

------- Forwarded Message

Subject: [PATCH] Allow simple cross-compilation of library
To: jdl-CYoMK+44s/[email protected]
From: Christoffer Dall <c.dall-lrHrjnjw1UfHK3s98zE1ajGjJy/[email protected]>
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.

- ---

 Makefile |    4 ++++
 1 file changed, 4 insertions(+)
Makefile +1 -1
index 1169e6c..efa79c1 100644
- --- a/Makefile
+++ b/Makefile
@@ -15,6 +15,10 @@ EXTRAVERSION =
 LOCAL_VERSION =
 CONFIG_LOCALVERSION =
 
Quoted 7 lines

Makefile EXTRAVERSION = · line 24

Quoted 7 lines
Makefile +4 -0
+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

Any further comment, or should I just apply this?

Thanks,
jdl