频道栏目
IT货架 > > 正文
[Android-Bluetooth] MODULE.TARGET.ETC.wpa_supplicant.conf already defined by xxxx error.
网友分享于:Jan 1, 1970 8:00:00 AM    来源: IT货架   

标签:android   style   color   os   io   strong   ar   for   sp   

Hmmm, there is an error possibly like this:

 

build/core/base_rules.mk:130: *** external/wpa_supplicant_8/wpa_supplicant: MODULE.TARGET.ETC.wpa_supplicant.conf already defined by external/wpa_supplicant_8/wpa_supplicant.  Stop.

 

Usually, it‘s caused by specifying  LOCAL_MODULE_CLASS := ETC  twice.

 

In  android/hardware/broadcom/wlan/bcmdhd/config/Android.mk

include $(CLEAR_VARS)
LOCAL_MODULE := dhcpcd.conf
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/dhcpcd
LOCAL_SRC_FILES := android_dhcpcd.conf
include $(BUILD_PREBUILT)

 

In external/wpa_supplicant_8/wpa_supplicant/wpa_supplicant_conf.mk

LOCAL_MODULE := wpa_supplicant.conf
LOCAL_MODULE_CLASS := ETC
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/wifi

 

Ok, you may notice the external/wpa_supplicant_8/wpa_supplicant/wpa_supplicant_conf.mk

Why it?

It‘s defined by the hardware/broadcom/wlan/bcmdhd/config/Android.mk

ifeq ($(strip $(WPA_SUPPLICANT_VERSION)),VER_0_8_X)
  include external/wpa_supplicant_8/wpa_supplicant/wpa_supplicant_conf.mk
else
ifeq ($(strip $(WPA_SUPPLICANT_VERSION)),VER_0_6_X)
  include external/wpa_supplicant_6/wpa_supplicant/wpa_supplicant_conf.mk
else
  include external/wpa_supplicant/wpa_supplicant_conf.mk
endif
endif

 

For WPA_SUPPLICANT_VERSION, herer comes the device/vendor/yourboard/BoardConfig.mk

BOARD_WLAN_DEVICE            := bcmdhd

#for bcm4330
ifeq ($(BOARD_WLAN_DEVICE),bcmdhd)
BOARD_WLAN_DEVICE_REV := bcm4330
WPA_SUPPLICANT_VERSION := VER_0_8_X
endif

 

For the error forementioned,

I will change

LOCAL_MODULE_CLASS := ETC

to

LOCAL_MODULE_CLASS := ETC_DHCPCD

in android/hardware/broadcom/wlan/bcmdhd/config/Android.mk

 

Ok, you get it, don‘t you?

 

[Android-Bluetooth] MODULE.TARGET.ETC.wpa_supplicant.conf already defined by xxxx error.

标签:android   style   color   os   io   strong   ar   for   sp   

相关板块推荐 iPhone WindowsPhone

广告服务联系QQ:1134687142 | 网站地图

版权所有: IT货架- 内容来自互联网,仅供用于技术学习,请遵循相关法律法规. 京ICP备11030978号-1