xuesheng777 发表于 2022-4-19 14:46:08

mmm hardware rockchip audio 编译出错

由于需要修改audio hal 所以需要重新编译 hardware/rockchip/audio/
但是发现官方是直接copy的so ,经查找发现hardware/rockchip/audio/Android.mk中
AUDIO_FORCE_LEGACY=false 修改为 AUDIO_FORCE_LEGACY=true 可以编译
但是编译过程中报错:
mmm hardware/rockchip/audio/
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=rk3399_firefly_aio
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-Ubuntu-18.04.5-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QD4A.200805.003
OUT_DIR=out
============================================
device/rockchip/rk3399/preinstall/preinstall.mk was modified, regenerating...
initializing build system ...
device/rockchip/common/prebuild.mk:2: warning: Generating manifest snapshot at out/commit_id.xml...
device/rockchip/common/prebuild.mk:3: warning: You can disable this by removing this and setting BOARD_RECORD_COMMIT_ID := false in BoardConfig.mk
writing build rules ...
FAILED:
build/make/core/Makefile:28: error: overriding commands for target `out/target/product/rk3399_firefly_aio/system/bin/amix', previously defined at build/make/core/base_rules.mk:482
13:59:47 ckati failed with: exit status 1

#### failed to build some targets (45 seconds) ####


由于整体编译流程不熟悉,不知道再要改哪里,求助!

jpchen 发表于 2022-4-19 16:04:21

关于audio的库,需要修改哪些东西呢?

xuesheng777 发表于 2022-4-19 22:52:10

jpchen 发表于 2022-4-19 16:04
关于audio的库,需要修改哪些东西呢?

感谢回复 需要修改audio.primary.rk30board.so
在里面增加我们自已项目的业务逻辑。
还请指导如何能自已编译出audio.primary.rk30board.so

jpchen 发表于 2022-4-20 14:06:06

xuesheng777 发表于 2022-4-19 22:52
感谢回复 需要修改audio.primary.rk30board.so
在里面增加我们自已项目的业务逻辑。
还请指导如何能自 ...

audio.primary.rk30board.so 是以so的方式对外发布,如需要添加改动请联系一下商务。
页: [1]
查看完整版本: mmm hardware rockchip audio 编译出错