MBPL SDK building on mips64eb

Hello team,

I am trying to build the MBPL source (MBPL_SDK_R47_ENG4-lite.src.tar) for a montavista platform with cpu = mips64eb. Do we need any changes in the slqscompile.mak file? and other files?

currently I can see below lines.

ifeq ($(CPU),mipseb)
CROSS_COMPILE := $(HOME)/toolchain/mips/bin/mips-linux-gnu-

INCLUDE += -I$(HOME)/toolchain/mips/mips-linux-gnu/libc/usr/include

CFLAGS += -EB
#default mips toolchain from Sourcery does not support sscanf
CFLAGS += -D OS_NO_SSCANF
#define mips toochain from Sourcery does not support backtrace
CFLAGS += -D NO_BACKTRACE
endif

Regards

Simon

Yes, you need to change those lines to point to your toolchain

Thank you. Is this target, ifeq ($(CPU),mipseb) valid for 64 bit? In that case I can just modify the toolchain and CROSS_COMPILE to montavista.

if you compare arm 32 bit and 64 bit, other than pointing to correct toolchain path, the only difference is to add CFLAGS:

# arm 32-bit compiler does not support eventfd.
ifeq ($(CPU),arm)
	#CFLAGS += -D_GNU_SOURCE -D_XOPEN_SOURCE=500 -D__USE_UNIX98
	CFLAGS += -D EVENT_FD_UNSUPPORTED -D_GNU_SOURCE -Wno-missing-field-initializers
endif

I think you can make some test and see if the compiled binary can be run in your platform