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?
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
. Below is the changes I did and the .a files generated. some of the .a files still shows size 8 and the SampleApplication is not able to build. Please see attachement with logs.
I am not quite sure why you have some libraries in 8 bytes file size
I tried to take liblite-mbim.a as example in the prebuilt library folder, it shows it should have 290578 bytes
/home/sbaby/workspace/EM7595-BUILD/06302026/WQAR/tmp/work/mips-mv-linux/sierra-mbplsdk-new-1-r0/SampleApps/lite-qmi-connection-manager/src/main.c:581: undefined reference to `pack_dms_SetPower'
But if you search the library in the prebuilt library folder, the function “pack_dms_SetPower” should appear in lite-qmi/lib/mipseb/liblite-qmi.a.
i don’t know why your complier cannot find this.
owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R44_ENG5-lite.bin$ nm lite-qmi/lib/mipseb/liblite-qmi.a | grep "pack_dms_SetPower"
000025c0 T pack_dms_SetPower
00002648 T unpack_dms_SetPower
I see that the pre-built library has it. But after I build for Monta vista, that library is getting empty. Can you please check if my changes are fine? For the time being I stopped building the SampleApps and only building the SDK. I still see the size of some of the library generated are empty. Attached is the logs.
Those libraries cannot be built by you directly as you don’t have the full source code of MBPL SDK.
You need to contact distributor to get the full source code of MBPL SDK.
Or you can use the prebuilt libraries to build your application by your toolchain.
I see only issue with building liblite-qmux.a, liblite-fb.a, libdcs.a and liblite-mbim.a. I can see the source code is availabe in the MBPL SDK I am using (MBPL_SDK_R47_ENG4-lite.src.tar.gz)