AnsweredAssumed Answered

How to build .so file on Android 6.0 source

Question asked by victor Wang on Dec 28, 2017
Latest reply on Dec 29, 2017 by victor Wang

Hi All,

I'm using iMX6 sabresd and building image for Android 6.0.

Here is my Android.mk.

hardware/ril/ublox_ril/CORE/Android.mk

#
# Copyright 2010 Intrinsyc Software International, Inc. All rights reserved.
#

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
ND/te_base.cpp \
ND/te.cpp \
ND/systemmanager.cpp \
ND/radio_state.cpp \
silo.cpp \
ND/silo_voice.cpp \
ND/silo_network.cpp \
ND/misc.c \
ND/silo_sim.cpp \
ND/silo_data.cpp \
ND/silo_phonebook.cpp \
ND/silo_sms.cpp \
ND/channel_nd.cpp \
channelbase.cpp \
channel_atcmd.cpp \
channel_data.cpp \
channel_DLC2.cpp \
channel_DLC6.cpp \
channel_DLC8.cpp \
port.cpp \
ND/callbacks.cpp \
ND/file_ops.cpp \
ND/rildmain.cpp \
ND/sync_ops.cpp \
ND/thread_ops.cpp \
ND/ril_result_nd.cpp \
cmdcontext.cpp \
command.cpp \
globals.cpp \
rilchannels.cpp \
response.cpp \
request_info_table.cpp \
thread_manager.cpp \
ND/silo_factory.cpp \
ND/MODEMS/te_inf_u120.cpp \
ND/MODEMS/te_cdma.cpp \
ND/MODEMS/te_modem_toby_R2.cpp \
ND/MODEMS/silo_voice_inf.cpp \
ND/MODEMS/silo_sim_inf.cpp \
ND/MODEMS/silo_sms_inf.cpp \
ND/MODEMS/silo_data_inf.cpp \
ND/MODEMS/silo_network_inf.cpp \
ND/MODEMS/silo_phonebook_inf.cpp

LOCAL_SHARED_LIBRARIES := \
libcutils libutils

#librilutils is required for Android 4.4 and above
ifeq (1,$(strip $(shell expr $(PLATFORM_VERSION) \>= 4.4)))
LOCAL_SHARED_LIBRARIES += librilutils
endif

LOCAL_CFLAGS = -DRIL_RADIO_RESILIENCE

LOCAL_CFLAGS += -DDEBUG
#LOCAL_CFLAGS += -DRIL_ENABLE_CHANNEL_DATA1
LOCAL_CFLAGS += -DRIL_ENABLE_SIMTK
LOCAL_CFLAGS += -DUSE_STK_RAW_MODE
#LOCAL_CFLAGS += -DRIL_JB_RAT_REMAPPING

#PLATFORM_VERSION is checked at compile-time and the corresponding flag is defined
# Setting flags for android jellybeans (4.1 - 4.3)
ifeq (1,$(strip $(shell expr $(PLATFORM_VERSION) \>= 4.1)))
ifeq (1,$(strip $(shell expr $(PLATFORM_VERSION) \< 4.4)))
LOCAL_CFLAGS += -DANDROID_JB
endif
endif

# Setting flags for android kitkat (4.4.x)
ifneq ($(shell echo '$(PLATFORM_VERSION)' | grep '^4.4'),)
LOCAL_CFLAGS += -DANDROID_KK
endif

# Setting flags for android lollipop (5.x.x)
ifneq ($(shell echo '$(PLATFORM_VERSION)' | grep '^5'),)
LOCAL_CFLAGS += -DANDROID_LP
endif

# Setting flags for android marshmallow (6.x.x)
ifneq ($(shell echo '$(PLATFORM_VERSION)' | grep '^6'),)
LOCAL_CFLAGS += -DANDROID_MM
$(warning "winmate victor the value of LOCAL_PATH is $(LOCAL_MODULE)")
endif

#include this if you want a TIMEBOMB.
#LOCAL_CFLAGS += -DTIMEBOMB

LOCAL_C_INCLUDES := \
$(KERNEL_HEADERS) \
$(LOCAL_PATH)/ND \
$(LOCAL_PATH)/ND/MODEMS \
$(LOCAL_PATH)/MODEMS \
$(LOCAL_PATH)/../INC \
$(LOCAL_PATH)/../OEM/ND \
$(LOCAL_PATH)/../UTIL/ND


#build shared library
LOCAL_PRELINK_MODULE := false
LOCAL_STRIP_MODULE := true
LOCAL_SHARED_LIBRARIES += \
librapid-ril-util \
librapid-ril-oem
#LOCAL_LDLIBS += -lpthread
#Modification required by Android 4.3
LOCAL_LDLIBS += -llog
LOCAL_CFLAGS += -DRIL_SHLIB -Os
LOCAL_MODULE:= librapid-ril-core
$(warning "winmate victor the value of LOCAL_PATH is $(LOCAL_MODULE)")
LOCAL_MODULE_TAGS:= optional
include $(BUILD_SHARED_LIBRARY)

And it suppose to build the librapid-ril-core.so out and put it under folder out/.

But I can't build any.

The weird thing is when I compiling there is no error came out.

 

I'm sure that computer did run into this file cause I had print the log.

 

Why can't I build the librapid-ril-core.so out?

 

Attachments

Outcomes