summaryrefslogtreecommitdiff
path: root/device.mk
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2018-10-11 10:50:43 +0800
committerShawn Guo <shawn.guo@linaro.org>2018-10-23 09:24:44 +0800
commit67e14f015c3717827b8e89658289a543a5a8c06f (patch)
treee9593a432555d61330e6f778bf0b5ebe20255c2c /device.mk
parentd9bd822cf11ffa4c2813e6027b8172a400f93505 (diff)
downloadpoplar-67e14f015c3717827b8e89658289a543a5a8c06f.tar.gz
Build wifi support from source
Using prebuilt wifi binaries causes us maintenance problems. For example, we have to set BUILD_BROKEN_DUP_RULES:=true for Poplar build [1], and wifi framework update will likely break wifi support due to outdated prebuilt blobs. Let's drop the prebuilt wifi blobs and build required executables from source by defining BOARD_WLAN_DEVICE:=rtl. While at it, clean up the unnecessary explicit listing of wificond.rc and wpa_cli from PRODUCT_PACKAGES, so that we are better aligned with reference platforms like Hikey and Marlin. [1] https://android.googlesource.com/device/linaro/poplar/+/72c8cc0248497ce12fde025dc43b78032139b033 Change-Id: I3113aac59d30c724e31c2f1f35dc94d1bcc087da
Diffstat (limited to 'device.mk')
-rw-r--r--device.mk9
1 files changed, 3 insertions, 6 deletions
diff --git a/device.mk b/device.mk
index 63889e7..f9e5589 100644
--- a/device.mk
+++ b/device.mk
@@ -160,16 +160,13 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
android.hardware.wifi@1.0-service \
wificond \
- wificond.rc \
libwpa_client \
- wpa_cli
+ wpa_supplicant \
+ hostapd
## config files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/wpa_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant.conf \
- $(LOCAL_PATH)/wifi/p2p_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant.conf \
- $(LOCAL_PATH)/proprietary/bt-wifi/libwifi-hal.so:$(TARGET_COPY_OUT_VENDOR)/lib/libwifi-hal.so \
- $(LOCAL_PATH)/proprietary/bt-wifi/wpa_supplicant:$(TARGET_COPY_OUT_VENDOR)/bin/hw/wpa_supplicant \
- $(LOCAL_PATH)/proprietary/bt-wifi/hostapd:$(TARGET_COPY_OUT_VENDOR)/bin/hostapd
+ $(LOCAL_PATH)/wifi/p2p_supplicant.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant.conf
## service init.rc scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/wifi.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/wifi.rc