[Android-bluetooth] MODULE. TARGET. ETC.wpa_supplicant.conf already defined by XXXX error.

Source: Internet
Author: User

Hmmm, there is a 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, 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'll 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?

[Android-bluetooth] MODULE. TARGET. ETC.wpa_supplicant.conf already defined by XXXX error.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.