2010年12月16日 星期四

disable original audio driver and create virtual audio driver

上了charles patch
目的要將原本的audio driver disable
弄一個假的audio driver

nelsonchung@gps100make PRODUCT-imx51_bbg-eng 2>&1 | tee build_imx51_bbg_android.log4:~/myandroid9.1/frameworks/base/libs/audioflinger$ mm showcommands
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2
TARGET_PRODUCT=imx51_bbg
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=FRF85B
============================================
No private recovery resources for TARGET_DEVICE imx51_bbg
make: Entering directory `/home/nelsonchung/myandroid9.1'
Copy: out/target/product/imx51_bbg/root/init.rc
out/host/linux-x86/bin/acp -fpt device/fsl/imx5x/init.rc out/target/product/imx51_bbg/root/init.rc
target SharedLib: libaudioflinger (out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-g++ -nostdlib -Wl,-soname,libaudioflinger.so -Wl,-T,build/core/armelf.xsc -Wl,--gc-sections -Wl,-shared,-Bsymbolic -Lout/target/product/imx51_bbg/obj/lib   out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioMixer.o out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioResampler.o out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioResamplerSinc.o out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioResamplerCubic.o out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioFlinger.o out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o          -Wl,--whole-archive   -Wl,--no-whole-archive  out/target/product/imx51_bbg/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a out/target/product/imx51_bbg/obj/STATIC_LIBRARIES/libaudiopolicybase_intermediates/libaudiopolicybase.a -llog -lcutils -lutils -lbinder -lmedia -lhardware_legacy -ldl -lc -lstdc++ -lm  -o out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so   -Wl,--no-undefined  -Wl,--fix-cortex-a8  /home/nelsonchung/myandroid9.1/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/interwork/libgcc.a
out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp:(.text._ZN7android18AudioPolicyServiceC1Ev+0x13a): undefined reference to `createAudioPolicyManager'
out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioPolicyService.o: In function `android::AudioPolicyService::AudioPolicyService()':
AudioPolicyService.cpp:(.text._ZN7android18AudioPolicyServiceC2Ev+0x12e): undefined reference to `createAudioPolicyManager'
collect2: ld returned 1 exit status
make: *** [out/target/product/imx51_bbg/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/LINKED/libaudioflinger.so] Error 1
make: Leaving directory `/home/nelsonchung/myandroid9.1'

出現error

因為修改BoardConfigCommon.mk
所以建議make clean
重新編譯新的system.img

cd ~/myandroid9.1
make clean
make PRODUCT-imx51_bbg-eng 2>&1 | tee build_imx51_bbg_android.log

請等2~3個小時

ok

透過Facebook分享

1 則留言:

鍾志均 提到...

error
搜尋到自己的文章
20110124