Skip to contentSkip to conversation

luvi: build for the right MIPS endianness

PATCH New Vicente Olivert Riera 3 participants 3 messages Jan 18, 2016 – Jan 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 luvi: build for the right MIPS endianness

Otherwise it will cause build failures like this one:

[100%] Linking C executable luvi /home/buildroot/autobuild/run/instance-2/output/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-gnu/5.2.0/../../../../mipsel-buildroot-linux-gnu/bin/ld:
jitted_tmp/src/lua/init.lua_luvi_generated.o: compiled for a big endian
system and target is little endian

---
 package/luvi/luvi.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/luvi/luvi.mk +3 -1
index ef1c2e1..d83933e 100644
@@ -20,8 +20,10 @@ else ifeq ($(BR2_powerpc),y)
 LUVI_TARGET_ARCH = ppc
 else ifeq ($(BR2_arm)$(BR2_armeb),y)
 LUVI_TARGET_ARCH = arm
-else ifeq ($(BR2_mips)$(BR2_mipsel),y)
+else ifeq ($(BR2_mips),y)
 LUVI_TARGET_ARCH = mips
+else ifeq ($(BR2_mipsel),y)
+LUVI_TARGET_ARCH = mipsel
 else
 LUVI_TARGET_ARCH = $(BR2_ARCH)
 endif
Signature · 1 line
2.4.10
#1 lore raw

PATCH 1/1 luvi: build for the right MIPS endianness

Dear Vicente Olivert Riera,

Quoted 11 lines · Vicente Olivert Riera

Otherwise it will cause build failures like this one:

[100%] Linking C executable luvi /home/buildroot/autobuild/run/instance-2/output/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-gnu/5.2.0/../../../../mipsel-buildroot-linux-gnu/bin/ld:
jitted_tmp/src/lua/init.lua_luvi_generated.o: compiled for a big endian
system and target is little endian

---
 package/luvi/luvi.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 luvi: build for the right MIPS endianness

In reply to Vicente Olivert Riera
Quoted 17 lines · Vicente Olivert Riera

Otherwise it will cause build failures like this one:

[100%] Linking C executable luvi /home/buildroot/autobuild/run/instance-2/output/host/opt/ext-toolchain/bin/../lib/gcc/mipsel-buildroot-linux-gnu/5.2.0/../../../../mipsel-buildroot-linux-gnu/bin/ld:
jitted_tmp/src/lua/init.lua_luvi_generated.o: compiled for a big endian
system and target is little endian

---
 package/luvi/luvi.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/luvi/luvi.mk +0 -0
index ef1c2e1..d83933e 100644

package/luvi/luvi.mk else ifeq ($(BR2_powerpc),y) · line 26

Quoted 8 lines
package/luvi/luvi.mk +3 -1
@@ -20,8 +20,10 @@ else ifeq ($(BR2_powerpc),y)
 LUVI_TARGET_ARCH = ppc
 else ifeq ($(BR2_arm)$(BR2_armeb),y)
 LUVI_TARGET_ARCH = arm
-else ifeq ($(BR2_mips)$(BR2_mipsel),y)
+else ifeq ($(BR2_mips),y)
 LUVI_TARGET_ARCH = mips
+else ifeq ($(BR2_mipsel),y)
+LUVI_TARGET_ARCH = mipsel

This could just fall into the BR2_ARCH situation below, no?

Regards,
Arnout

Quoted 4 lines
package/luvi/luvi.mk +0 -0
 else
 LUVI_TARGET_ARCH = $(BR2_ARCH)
 endif
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF