Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c7ab12e authored by Danny Baumann's avatar Danny Baumann
Browse files

Clean up FM define usage.

Avoid nested ifdefs, instead, if BOARD_FM_DEVICE is not defined, just
use BOARD_WLAN_DEVICE at its place.
parent 4b07670f
Loading
Loading
Loading
Loading
+19 −17
Original line number Diff line number Diff line
@@ -145,27 +145,29 @@ LOCAL_SRC_FILES:= \
    android_content_res_Configuration.cpp

ifeq ($(BOARD_HAVE_FM_RADIO),true)
    ifeq ($(BOARD_FM_DEVICE),)
        BOARD_FM_DEVICE := $(BOARD_WLAN_DEVICE)
    endif

    ifeq ($(BOARD_FM_DEVICE),si4709)
        LOCAL_SRC_FILES += android_hardware_fm_si4709.cpp
else
    endif
    ifeq ($(BOARD_FM_DEVICE),si4708)
        LOCAL_SRC_FILES += android_hardware_fm_si4708.cpp
    else
        ifeq ($(BOARD_WLAN_DEVICE),bcm4329)
    endif
    ifeq ($(BOARD_FM_DEVICE),bcm4329)
        LOCAL_SRC_FILES += android_hardware_fm_bcm4325.cpp
    endif
        ifeq ($(BOARD_WLAN_DEVICE),bcm4325)
    ifeq ($(BOARD_FM_DEVICE),bcm4325)
        LOCAL_SRC_FILES += android_hardware_fm_bcm4325.cpp
    endif
        ifeq ($(BOARD_WLAN_DEVICE),wl1251)
    ifeq ($(BOARD_FM_DEVICE),wl1251)
        LOCAL_SRC_FILES += android_hardware_fm_wl1271.cpp
    endif
        ifeq ($(BOARD_WLAN_DEVICE),wl1271)
    ifeq ($(BOARD_FM_DEVICE),wl1271)
        LOCAL_SRC_FILES += android_hardware_fm_wl1271.cpp
    endif
endif
endif
endif

LOCAL_C_INCLUDES += \
	$(JNI_H_INCLUDE) \