最近刚调试博通三合一模块 4343s.调试wifi过程中发现系统编译报错之一:
Import includes file: out/target/product/unicompadlc1860evb3/obj/SHARED_LIBRARIES/libbluetooth_jni_intermediates/import_includes
make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/com.broadcom.bt_intermediates/classes.jar', needed by `out/target/common/obj/APPS/Bluetooth_intermediates/classes-full-debug.jar'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: leadcore/third-packages/apps/Bluetooth/jni/Android.mk --
跟踪代码发现是FM相关的.mk被调试8188wifi时候屏蔽,编译时候少库所致:
BrcmFmRadio/app/Android.mk 1 # Android.mk 2 3 4 LOCAL_PATH:= $(call my-dir) 5 include $(CLEAR_VARS) 6 7 #change eng to optional(Req00000290)by luminliang 8 LOCAL_MODULE_TAGS := optional 9 10 #add the build option for user version (Bug00000604) by luminliang 11 LOCAL_PROGUARD_ENABLED :=disabled 12 13 LOCAL_SRC_FILES := $(call all-subdir-java-files) 14 LOCAL_JAVA_LIBRARIES := com.broadcom.bt 15 LOCAL_PACKAGE_NAME := LC_FmRadio 16 17 include $(BUILD_PACKAGE) 18 19 include $(call all-makefiles-under, $(LOCAL_PATH))
而在device的xxxxxboard.mk
28 #add BRCM wifi+bt+fm here 29 BRCM_CONNECTIVITY := true 30 31 #add RTK rtl8188eu wifi here 32 #RTK_RTL8188EU_CONNECTIVITY := true
会有一个宏开关,里面还有其它的一些配置嵌套.mk