ifeq ($(PRODUCT_PLATFORM_SOD),true)

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    macaddrsetup.c

ifeq ($(WIFI_DRIVER_BUILT),qca_cld3)
LOCAL_CFLAGS += -DQCA_CLD3_WIFI
endif

ifeq ($(WIFI_DRIVER_BUILT),brcmfmac)
LOCAL_CFLAGS += -DBRCMFMAC
endif

ifeq ($(BOARD_HAS_MIRROR_MACADDRESS),true)
LOCAL_CFLAGS += -DMIRROR_MAC_ADDRESS
endif

LOCAL_SHARED_LIBRARIES := \
    liblog \
    libcutils

LOCAL_MODULE := macaddrsetup
ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 29),)
LOCAL_MODULE_OWNER := sony
LOCAL_INIT_RC_64   := vendor/etc/init/macaddrsetup.rc
LOCAL_PROPRIETARY_MODULE := true
else
ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 25),)
LOCAL_MODULE_OWNER := sony
LOCAL_INIT_RC_64   := vendor/etc/init/macaddrsetup_sdk25.rc
LOCAL_PROPRIETARY_MODULE := true
endif
endif

LOCAL_MODULE_TAGS := optional

include $(BUILD_EXECUTABLE)

endif

ifeq ($(PRODUCT_PLATFORM_SOD),true)

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    macaddrsetup.c

ifeq ($(WIFI_DRIVER_BUILT),qca_cld3)
LOCAL_CFLAGS += -DQCA_CLD3_WIFI
endif

ifeq ($(WIFI_DRIVER_BUILT),brcmfmac)
LOCAL_CFLAGS += -DBRCMFMAC
endif

ifeq ($(BOARD_HAS_MIRROR_MACADDRESS),true)
LOCAL_CFLAGS += -DMIRROR_MAC_ADDRESS
endif

LOCAL_SHARED_LIBRARIES := \
    liblog \
    libcutils

LOCAL_MODULE := macaddrsetup
ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 29),)
LOCAL_MODULE_OWNER := sony
LOCAL_INIT_RC      := vendor/etc/init/macaddrsetup.rc
LOCAL_PROPRIETARY_MODULE := true
else
ifneq ($(call math_gt_or_eq, $(PLATFORM_SDK_VERSION), 25),)
LOCAL_MODULE_OWNER := sony
LOCAL_INIT_RC      := vendor/etc/init/macaddrsetup_sdk25.rc
LOCAL_PROPRIETARY_MODULE := true
endif
endif

LOCAL_MODULE_TAGS := optional

include $(BUILD_EXECUTABLE)

endif

Build macaddrsetup.rc for all targets
macaddrsetup: Build macaddrsetup.rc for all targets

Change-Id: I697a761a928b7c8322d2070c8a8573af6e478fcc
