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

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?

时间: 2024-10-17 13:29:38

[Android-Bluetooth] MODULE.TARGET.ETC.wpa_supplicant.conf already defined by xxxx error.的相关文章

android bluetooth蓝牙移植

http://blog.csdn.net/zhengmeifu/article/details/7705172 前段时间移植神念系统需要使用到bluetooth功能,现将移植过程中碰到的问题简要列一下,备忘而已. 1.内核增加配置make menuconfig -> Networking support -> Bluetooth subsystem support -->进行选择BT选项,至少选择如下几项:CONFIG_BT=yCONFIG_BT_RFCOMM=y## Bluetooth

Android Bluetooth 文件接收路径修改方法

修改文件: packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppReceiveFileInfo.java 相关代码片段: public static BluetoothOppReceiveFileInfo generateFileInfo(Context context, int id) { ContentResolver contentResolver = context.getContentResolver();

Android Bluetooth How To--Based on Android L Bluedroid

Android Bluetooth How To(Based on Android L Bluedroid) 持续更新中… 1.How to enable btsnoop log? a) UI Settings--> b)  Developer Options--> c)  reboot Tablet, then snoop log will locate in /sdcard/btsnoop_hci.log(this path can be configured in /etc/blueto

如何读取wpa_supplicant.conf文件

root后,如何复制wpa_supplicant.conf文件 如何做: 首先通过单独的system进程,拷贝该文件到data分区,任意一个包名下面:/data/data/com.XXXX.android/ 下面 再在主线程里面从该data分区目录下来,拷贝到sdcard下面. 为什么这样做: 同时设置了:android:sharedUserId="android.uid.system"   android:process="system"   是不可以访问sdca

Android Bluetooth Stack: Bluedroid(五):The analysis of A2DP Source

1. A2DP Introduction The Advanced Audio Distribution Profile (A2DP) defines the protocols and procedures that realize distribution of audio content of high-quality in mono or stereo on ACL channels. As indicated in the diagram of 'Protocol Model', A2

Android Bluetooth 4.0深入学习

Android平台包含了对蓝牙网络协议栈的支持,它允许一个蓝牙设备跟其他的蓝牙设备进行无线的数据交换.应用程序可以通过Android蓝牙的API所提供访问蓝牙的功能.这些API会把应用程序无线连接到其他的蓝牙设备上,接下来让我们慢慢来走进 Android Bluetooth 4.0 , 希望对大家有一定 的帮助. 蓝牙API,Android应用程序能够执行以下功能: 1. 扫描其他蓝牙设备 2. 查询本地已经配对的蓝牙适配器 3. 建立RFCOMM通道 4. 通过服务发现来连接其他设备 5. 在

正则表达式匹配/data/misc/wifi/wpa_supplicant.conf的WiFi名称与密码

正则表达式匹配/data/misc/wifi/wpa_supplicant.conf的WiFi名称与密码: String regex_name="ssid=\"(.*?)\""; String regex_psk="psk=\"(.*?)\""; 核心代码: Pattern p_name=Pattern.compile(regex_name); Pattern p_psk=Pattern.compile(regex_psk);

Android bluetooth介绍(一):基本概念及硬件接口

关键词:蓝牙硬件接口 UART  PCM  blueZ 版本:基于android4.2之前版本 bluez内核:linux/linux3.08系统:android/android4.1.3.4作者:xubin341719(欢迎转载,请注明作者,请尊重版权谢谢)欢迎指正错误,共同学习.共同进步!! 一.基本概念补充 1.AP:ApplicationProcessor应用处理器 采用ARM架构的CPU,通常负责运行OS和一些特定设置和载入开机预设.比如一个没有电话功能的平板电脑,只跑android或

Android bluetooth介绍(二): android 蓝牙代码架构及其uart 到rfcomm流程

关键词:蓝牙blueZ  UART  HCI_UART H4  HCI  L2CAP RFCOMM  版本:基于android4.2之前版本 bluez内核:linux/linux3.08系统:android/android4.1.3.4作者:xubin341719(欢迎转载,请注明作者,请尊重版权谢谢)欢迎指正错误,共同学习.共同进步!!一.Android Bluetooth Architecture蓝牙代码架构部分(google 官方蓝牙框架) Android的蓝牙系统,自下而上包括以下一些