[QCM6125][Android13] 修复PRODUCT_COPY_FILES无法拷贝so

文章目录

开发平台基本信息

芯片: QCM6125
版本: Android 13
kernel: msm-4.14

问题描述

在进行系统移植时,经常会把一些自己开发的c或者c++程序编译成so库,然后在系统服务中去调用这些库。所以在进行新代码开发时,会在device目录下将so库通过PRODUCT_COPY_FILES拷贝到system/lib以及system/lib64目录底下。在Android13中进行拷贝时,会报这样的错误。

out/target/product/qssi/system/lib/libpn5180.so: error: found ELF prebuilt in PRODUCT_COPY_FILES, use cc_prebuilt_binary / cc_prebuilt_library_shared instead

解决方法

shell 复制代码
--- a/QSSI.13/build/make/core/Makefile
+++ b/QSSI.13/build/make/core/Makefile
@@ -55,10 +55,10 @@ endef
 .PHONY: check-elf-prebuilt-product-copy-files
 check-elf-prebuilt-product-copy-files:
 
-check_elf_prebuilt_product_copy_files := true
-ifneq (,$(filter true,$(BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES)))
-check_elf_prebuilt_product_copy_files :=
-endif
+# check_elf_prebuilt_product_copy_files := true
+# ifneq (,$(filter true,$(BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES)))
+# check_elf_prebuilt_product_copy_files :=
+# endif
 check_elf_prebuilt_product_copy_files_hint := \
     found ELF prebuilt in PRODUCT_COPY_FILES, use cc_prebuilt_binary / cc_prebuilt_library_shared instead.
相关推荐
二进制小甜豆3 小时前
网络原理 TCP/IP
java·学习
chirrupy_hamal4 小时前
IntelliJ IDEA 保姆级使用教程
java·intellij idea
D_aniel_4 小时前
Leetcode:回文链表
java·算法·leetcode·链表
软件2056 小时前
【登录流程图】
java·前端·流程图
深度物联网7 小时前
Spring Boot多模块划分设计
java·spring boot·后端
一 乐7 小时前
宿舍报修|宿舍报修小程序|基于Java微信小程序的宿舍报修系统的设计与实现(源码+数据库+文档)
java·数据库·微信小程序·小程序·论文·毕设·宿舍报修小程序
武昌库里写JAVA9 小时前
Java 设计模式
java·vue.js·spring boot·课程设计·宠物管理
钢铁男儿9 小时前
Python 函数装饰器和闭包(闭包)
java·网络·python
Clf丶忆笙10 小时前
从零开始搭建第一个Spring Boot应用:从入门到精通
java·spring boot
东坡大表哥10 小时前
【Android】Android签名解析
android·java