S3C6410移植android4.0 ice scream
2014-01-12 18:16
411 查看
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
修改/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
相关文章推荐
- qwt移植到s3c6410
- S3c6410 linux内核移植(11)---用SD卡下载uboot、linux内核和文件系统
- linux 3.4.103 内核移植到 S3C6410 开发板 移植失败 (问题总结,来日再战!)
- 【zz】ALSA在ARM(S3C6410)中的移植
- qte-4.8.5在s3c6410平台上的移植
- ARM开发板移植android4.0流程
- APPWeb+PHP5+SQLite3在S3C6410上移植之一
- S3C6410(arm11核)的DM9000移植
- APPWeb+PHP5+SQLite3在S3C6410上移植之四
- 移植Opencv-2.0.0到ARM11(S3C6410)
- Ubuntu10.04下S3C6410的tslib和qte4.4.0编译和移植
- s3c6410下移植sqlite3.7.8
- s3c6410_u-boot-2010.03移植
- 深入浅出 - Android系统移植与平台开发(三)- 编译并运行Android4.0模拟器
- ut2416BV02及ut-s3c6410上移植mplayer
- S3C6410移植u-boot
- 移植linux内核到s3c6410(板子u-boot网口link-down问题解决)
- APPWeb+PHP5+SQLite3在S3C6410上移植之二
- 移植linux内核到s3c6410(根文件系统加载失败问题解决:Kernel panic - not syncing: VFS: Unable to mount root fs)