码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2014-09-03 19:47:17      阅读:1721      评论:0      收藏:0      [点我收藏+]

标签: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   

原文地址:http://www.cnblogs.com/lake-of-embedded-system/p/3954403.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!