Skip to contentSkip to conversation

package/binutils: fix build error due to architecture name is incomplete

PATCH New Nylon Chen 2 participants 3 messages Apr 18, 2019 – Apr 20, 2019 1 message not in the archive Kbuild

lore
Share & tools
lore

Nylon Chen

author
#0 lore raw

PATCH 1/1 package/binutils: fix build error due to architecture name is incomplete

Fixes
http://autobuild.buildroot.net/results/128/12803a705586e82fdfb49013da2eb3b9879ccd45/

---
 Makefile                   | 1 +
 arch/Config.in.nds32       | 2 +-
 package/binutils/Config.in | 4 ++--
 3 files changed, 4 insertions(+), 3 deletions(-)
Makefile +1 -0
index 522c0b0606..86e444da98 100644
@@ -439,6 +439,7 @@ KERNEL_ARCH := $(shell echo "$(ARCH)" | sed -e "s/-.*//" \
 	-e s/arceb/arc/ \
 	-e s/arm.*/arm/ -e s/sa110/arm/ \
 	-e s/aarch64.*/arm64/ \
+	-e s/nds32.*/nds32/ \
 	-e s/or1k/openrisc/ \
 	-e s/parisc64/parisc/ \
 	-e s/powerpc64.*/powerpc/ \
arch/Config.in.nds32 +1 -1
index 9c5db20e6f..f268883662 100644
@@ -1,5 +1,5 @@
 config BR2_ARCH
-	default "nds32"
+	default "nds32le"
 
 config BR2_GCC_TARGET_ARCH
 	default "v3"
package/binutils/Config.in +2 -2
index 2bf7929ac8..e17a8ec65a 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_BINUTILS
 	bool "binutils"
-	depends on !BR2_nios2 && !BR2_nds32
+	depends on !BR2_nios2
 	depends on BR2_USE_WCHAR
 	help
 	  Install binutils on the target
@@ -21,5 +21,5 @@ config BR2_PACKAGE_BINUTILS_TARGET
 endif
 
 comment "binutils needs a toolchain w/ wchar"
-	depends on !BR2_nios2 && !BR2_nds32
+	depends on !BR2_nios2
 	depends on !BR2_USE_WCHAR
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 package/binutils: fix build error due to architecture name is incomplete

Quoted 11 lines · On Thu, 18 Apr 2019 17:46:55 +0800 Nylon Chen <[email protected]> wrote:

Fixes
http://autobuild.buildroot.net/results/128/12803a705586e82fdfb49013da2eb3b9879ccd45/

---
 Makefile                   | 1 +
 arch/Config.in.nds32       | 2 +-
 package/binutils/Config.in | 4 ++--
 3 files changed, 4 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

A message that is not in the archive (sent off-list or not yet received): CAGKtFauRjyM83yyhyB5GC8_W_8PfhxaWgUhK9OLvecxfOH0R+g@mail.gmail.com

#3 lore raw

PATCH 1/1 package/binutils: fix build error due to architecture name is incomplete

Hello,

Quoted 2 lines · On Sat, 20 Apr 2019 22:33:26 +0800 ??? <[email protected]> wrote:

Sorry I make a mistake, this patch has an error, our architecture name is nds32 not nds32le.

Well, the architecture can be named nds32, but its tuple can be nds32le.

At least, gnuconfig supports nds32le and nds32be:

$ grep nds32 support/gnuconfig/*
support/gnuconfig/config.sub:	| nds32 | nds32le | nds32be \
support/gnuconfig/config.sub:	| nds32-* | nds32le-* | nds32be-* \

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com