Skip to contentSkip to conversation

riscv: allow native compilation

PATCH New Heinrich Schuchardt 3 participants 6 messages Aug 6, 2018 – Oct 3, 2018 1 message not in the archive RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: allow native compilation

If environment variable CROSS_COMPILE is not set, this indicates native compilation. In this case we should not set an arbitrary value which is not applicable for 64bit anyway.

---
 arch/riscv/config.mk | 4 ----
 1 file changed, 4 deletions(-)
arch/riscv/config.mk +0 -4
index 219e66683d..f7a2ffbbc6 100644
@@ -10,10 +10,6 @@
 # Rick Chen, Andes Technology Corporation <[email protected]>
 #
 
-ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := riscv32-unknown-linux-gnu-
-endif
-
 32bit-emul		:= elf32lriscv
 64bit-emul		:= elf64lriscv
 
Signature · 1 line
2.18.0

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

PATCH 1/1 riscv: allow native compilation

Quoted 4 lines

If environment variable CROSS_COMPILE is not set, this indicates native compilation. In this case we should not set an arbitrary value which is not applicable for 64bit anyway.

OK !
Thanks for your correction.

B.R

Rick

Quoted 18 lines
---
 arch/riscv/config.mk | 4 ----
 1 file changed, 4 deletions(-)
arch/riscv/config.mk index renamed from arch/riscv/config.mk +0 -0

219e66683d..f7a2ffbbc6 100644

arch/riscv/config.mk +0 -3
@@ -10,10 +10,6 @@
 # Rick Chen, Andes Technology Corporation <[email protected]>  #
 
-ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := riscv32-unknown-linux-gnu- -endif
-
 32bit-emul           := elf32lriscv
 64bit-emul           := elf64lriscv
 
#3 lore raw

PATCH 1/1 riscv: allow native compilation

Quoted 11 lines · Rick Chen
Quoted 4 lines

If environment variable CROSS_COMPILE is not set, this indicates native compilation. In this case we should not set an arbitrary value which is not applicable for 64bit anyway.

OK !
Thanks for your correction.

B.R

Rick

Somehow the patch never made it into git.denx.de/u-boot-riscv.git.

Could you, please, consider the patch for your next pull request.

Best regards

Heinrich

Quoted 20 lines
Quoted 19 lines
---
 arch/riscv/config.mk | 4 ----
 1 file changed, 4 deletions(-)
arch/riscv/config.mk index renamed from arch/riscv/config.mk +0 -0

219e66683d..f7a2ffbbc6 100644

arch/riscv/config.mk +0 -3
@@ -10,10 +10,6 @@
 # Rick Chen, Andes Technology Corporation <[email protected]>  #
 
-ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := riscv32-unknown-linux-gnu- -endif
-
 32bit-emul           := elf32lriscv
 64bit-emul           := elf64lriscv
 
#4 lore raw

PATCH 1/1 riscv: allow native compilation

Heinrich Schuchardt <[email protected]> 於 2018年9月24日 週一 上午4:06寫道:

Quoted 10 lines · Rick Chen
Quoted 8 lines
Quoted 4 lines

If environment variable CROSS_COMPILE is not set, this indicates native compilation. In this case we should not set an arbitrary value which is not applicable for 64bit anyway.

OK !
Thanks for your correction.

Quoted 8 lines
Quoted 3 lines

B.R

Rick

Somehow the patch never made it into git.denx.de/u-boot-riscv.git.

Could you, please, consider the patch for your next pull request.

Hi Heinrich

Sorry !
I was busy this period of time. And miss this time merge window.

I will merge it to git.denx.de/u-boot-riscv.git this week . And try to send pull request to Tom.
Though I am not sure if it is legal to send pull request to Tom when the merge window was closed.

Rick

Quoted 25 lines

Best regards

Heinrich

Quoted 20 lines
Quoted 19 lines
---
 arch/riscv/config.mk | 4 ----
 1 file changed, 4 deletions(-)
arch/riscv/config.mk index renamed from arch/riscv/config.mk +0 -0

219e66683d..f7a2ffbbc6 100644

arch/riscv/config.mk +0 -3
@@ -10,10 +10,6 @@
 # Rick Chen, Andes Technology Corporation <[email protected]>  #
 
-ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := riscv32-unknown-linux-gnu- -endif
-
 32bit-emul           := elf32lriscv
 64bit-emul           := elf64lriscv
 
#5 lore raw

PATCH 1/1 riscv: allow native compilation

Quoted 22 lines · Rick Chen

Heinrich Schuchardt <[email protected]> 於 2018年9月24日 週一 上午4:06寫道:

Quoted 10 lines · Rick Chen
Quoted 8 lines
Quoted 4 lines

If environment variable CROSS_COMPILE is not set, this indicates native compilation. In this case we should not set an arbitrary value which is not applicable for 64bit anyway.

OK !
Thanks for your correction.

Quoted 8 lines
Quoted 3 lines

B.R

Rick

Somehow the patch never made it into git.denx.de/u-boot-riscv.git.

Could you, please, consider the patch for your next pull request.

Hi Heinrich

Quoted 7 lines

Sorry !
I was busy this period of time. And miss this time merge window.

I will merge it to git.denx.de/u-boot-riscv.git this week . And try to send pull request to Tom.
Though I am not sure if it is legal to send pull request to Tom when the merge window was closed.

With the window closed, yes, I want to see careful review taken by all custodians. But that doesn't mean nothing can go in. This looks reasonable to me, for example. Thanks!

Quoted 28 lines

Rick

Quoted 25 lines

Best regards

Heinrich

Quoted 20 lines
Quoted 19 lines
---
 arch/riscv/config.mk | 4 ----
 1 file changed, 4 deletions(-)
arch/riscv/config.mk index renamed from arch/riscv/config.mk +0 -0

219e66683d..f7a2ffbbc6 100644

arch/riscv/config.mk +0 -3
@@ -10,10 +10,6 @@
 # Rick Chen, Andes Technology Corporation <[email protected]>  #
 
-ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := riscv32-unknown-linux-gnu- -endif
-
 32bit-emul           := elf32lriscv
 64bit-emul           := elf64lriscv
 
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181002/c3a32c6d/attachment.sig>
#6 lore raw

PATCH 1/1 riscv: allow native compilation

Tom Rini <[email protected]> 於 2018年10月3日 週三 上午9:23寫道:

Quoted 27 lines · Rick Chen
Quoted 25 lines

Heinrich Schuchardt <[email protected]> 於 2018年9月24日 週一 上午4:06寫道:

Quoted 10 lines · Rick Chen
Quoted 8 lines
Quoted 4 lines

If environment variable CROSS_COMPILE is not set, this indicates native compilation. In this case we should not set an arbitrary value which is not applicable for 64bit anyway.

OK !
Thanks for your correction.

Quoted 8 lines
Quoted 3 lines

B.R

Rick

Somehow the patch never made it into git.denx.de/u-boot-riscv.git.

Could you, please, consider the patch for your next pull request.

Hi Heinrich

Sorry !
I was busy this period of time. And miss this time merge window.

Quoted 8 lines
Quoted 4 lines

I will merge it to git.denx.de/u-boot-riscv.git this week . And try to send pull request to Tom.
Though I am not sure if it is legal to send pull request to Tom when the merge window was closed.

With the window closed, yes, I want to see careful review taken by all custodians. But that doesn't mean nothing can go in. This looks reasonable to me, for example. Thanks!

Hi Tom

Got it.
And thanks for your reply and explain.

Rick

Quoted 32 lines
Quoted 29 lines

Rick

Quoted 25 lines

Best regards

Heinrich

Quoted 20 lines
Quoted 19 lines
---
 arch/riscv/config.mk | 4 ----
 1 file changed, 4 deletions(-)
arch/riscv/config.mk index renamed from arch/riscv/config.mk +0 -0

219e66683d..f7a2ffbbc6 100644

arch/riscv/config.mk +0 -3
@@ -10,10 +10,6 @@
 # Rick Chen, Andes Technology Corporation <[email protected]>  #
 
-ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := riscv32-unknown-linux-gnu- -endif
-
 32bit-emul           := elf32lriscv
 64bit-emul           := elf64lriscv
 

--
Tom