public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] rt-tests: Allow cross compilation
@ 2019-08-22  6:49 Afzal Mohammed
  2019-08-22  6:49 ` [PATCH 2/2] rt-tests: Let git ignore cscope generated files Afzal Mohammed
  2019-08-23 15:03 ` [PATCH 1/2] rt-tests: Allow cross compilation John Kacur
  0 siblings, 2 replies; 4+ messages in thread
From: Afzal Mohammed @ 2019-08-22  6:49 UTC (permalink / raw)
  To: Clark Williams, John Kacur; +Cc: rt-users

$ make CROSS_COMPILE=<my-toolchain-prefix>

currently does not cause source to be built using the intended
toolchain, instead will use the host toolchain.

CC & AR are not updated with CROSS_COMPILE value since they are
predefined make variables (with default cc & ar respectively) combined
with the fact that CC & AR variables are updated in the makefile only if
not already defined due to the usage of '?='.

Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 51b8dea..b573408 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 VERSION = 1.5
-CC?=$(CROSS_COMPILE)gcc
-AR?=$(CROSS_COMPILE)ar
+CC = $(CROSS_COMPILE)gcc
+AR = $(CROSS_COMPILE)ar
 
 OBJDIR = bld
 
-- 
2.23.0


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

end of thread, other threads:[~2019-08-23 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-22  6:49 [PATCH 1/2] rt-tests: Allow cross compilation Afzal Mohammed
2019-08-22  6:49 ` [PATCH 2/2] rt-tests: Let git ignore cscope generated files Afzal Mohammed
2019-08-23 15:06   ` John Kacur
2019-08-23 15:03 ` [PATCH 1/2] rt-tests: Allow cross compilation John Kacur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox