linux-rt-users.vger.kernel.org archive mirror
 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

* [PATCH 2/2] rt-tests: Let git ignore cscope generated files
  2019-08-22  6:49 [PATCH 1/2] rt-tests: Allow cross compilation Afzal Mohammed
@ 2019-08-22  6:49 ` Afzal Mohammed
  2019-08-23 15:06   ` John Kacur
  2019-08-23 15:03 ` [PATCH 1/2] rt-tests: Allow cross compilation John Kacur
  1 sibling, 1 reply; 4+ messages in thread
From: Afzal Mohammed @ 2019-08-22  6:49 UTC (permalink / raw)
  To: Clark Williams, John Kacur; +Cc: rt-users

Let git ignore cscope generated files

Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index aa9b82c..f7574ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,3 +38,4 @@ SRPMS
 rt-tests.spec
 tags
 TAGS
+cscope.*
-- 
2.23.0


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

* Re: [PATCH 1/2] rt-tests: Allow cross compilation
  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:03 ` John Kacur
  1 sibling, 0 replies; 4+ messages in thread
From: John Kacur @ 2019-08-23 15:03 UTC (permalink / raw)
  To: Afzal Mohammed; +Cc: Clark Williams, rt-users



On Thu, 22 Aug 2019, Afzal Mohammed wrote:

> $ 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

Signed-off-by: John Kacur <jkacur@redhat.com>

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

* Re: [PATCH 2/2] rt-tests: Let git ignore cscope generated files
  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
  0 siblings, 0 replies; 4+ messages in thread
From: John Kacur @ 2019-08-23 15:06 UTC (permalink / raw)
  To: Afzal Mohammed; +Cc: Clark Williams, rt-users



On Thu, 22 Aug 2019, Afzal Mohammed wrote:

> Let git ignore cscope generated files
> 
> Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
> ---
>  .gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/.gitignore b/.gitignore
> index aa9b82c..f7574ef 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -38,3 +38,4 @@ SRPMS
>  rt-tests.spec
>  tags
>  TAGS
> +cscope.*
> -- 
> 2.23.0
> 
> 
Signed-off-by: John Kacur <jkacur@redhat.com>

^ permalink raw reply	[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;
as well as URLs for NNTP newsgroup(s).