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?