S3C6410移植android4.0 ice scream

来源:互联网 发布:西门子plm软件 列表 编辑:程序博客网 时间:2024/04/29 09:22

1、修改源码使其支持s3c6410:

修改/WORKING_DIRECTORY/build/target/board/generic下的BoardConfig.mk文件:

修改以下内容为:
TARGET_ARCH_VARIANT := armv5te-vfp
TARGET_CPU_ABI := armeabi
TARGET_CPU_ABI2 := armeabi

修改external/webrtc/src/common_audio/signal_processing_library/main/interface/spl_inl.h,如图:

否则会报错

/tmp/ccqlae8X.s: Assembler messages:
/tmp/ccqlae8X.s:208: Error: selected processor does not support `qadd16 ip,r0,r3'
/tmp/ccqlae8X.s:236: Error: selected processor does not support `qadd16 r9,r4,r9'
/tmp/ccqlae8X.s:253: Error: selected processor does not support `qadd16 ip,ip,r4'
make: *** [out/target/product/OK6410/obj/STATIC_LIBRARIES/libwebrtc_spl_intermed
iates/auto_corr_to_refl_coef.o] Error 1

2、修改/WORKING_DIRECTORY/build/core/main.mk

include $(BUILD_SYSTEM)/legacy_prebuilts.mk
ifneq ($(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),)
  $(warning *** Some files have been added to ALL_PREBUILT.)
  $(warning *)
  $(warning * ALL_PREBUILT is a deprecated mechanism that)
  $(warning * should not be used for new files.)
  $(warning * As an alternative, use PRODUCT_COPY_FILES in)
  $(warning * the appropriate product definition.)
  $(warning * build/target/product/core.mk is the product)
  $(warning * definition used in all products.)
  $(warning *)
  $(foreach bad_prebuilt,$(filter-out $(GRANDFATHERED_ALL_PREBUILT),$(strip $(notdir $(ALL_PREBUILT)))),$(warning * unexpected $(bad_prebuilt) in ALL_PREBUILT))
  $(warning *)
  $(warning ALL_PREBUILT contains unexpected files) //把error改为warning
endif

修改/WORKING_DIRECTORY/build/core/product.mk

define assert-product-vars
$(strip \
  $(eval changed_variables:=)
  $(foreach v,$(_product_stash_var_list), \
    $(if $(call streq,$($(v)),$($(strip $(1))_$(call rot13,$(v)))),, \
        $(eval $(warning $(v) has been modified: $($(v)))) \
        $(eval $(warning previous value: $($(strip $(1))_$(call rot13,$(v))))) \
        $(eval changed_variables := $(changed_variables) $(v))) \
   ) \
  $(if $(changed_variables),\
    $(eval $(warning The following variables have been changed: $(changed_variables))),)  //把error改为warning
)

修改/WORKING_DIRECTORY/build/core/Makefile

define check-product-copy-files
$(if $(filter %.apk, $(1)),$(warning \  //把error改为warning
    Prebuilt apk found in PRODUCT_COPY_FILES: $(1), use BUILD_PREBUILT instead!))
endef

 

0 0
原创粉丝点击