1# Preset TARGET_USES_HARDWARE_QCOM_BOOTCTRL for existing platforms. 2ifneq ($(filter msm8996 msm8998 sdm710,$(TARGET_BOARD_PLATFORM)),) 3TARGET_USES_HARDWARE_QCOM_BOOTCTRL := true 4endif 5 6ifeq ($(strip $(TARGET_USES_HARDWARE_QCOM_BOOTCTRL)),true) 7# TODO: Find a better way to separate build configs for ADP vs non-ADP devices 8ifneq ($(BOARD_IS_AUTOMOTIVE),true) 9LOCAL_PATH := $(call my-dir) 10 11# HAL Shared library for the target. Used by libhardware. 12include $(CLEAR_VARS) 13LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/gpt-utils/inc 14LOCAL_CFLAGS += -Wall -Werror 15LOCAL_SHARED_LIBRARIES += liblog libgptutils libcutils 16LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers 17LOCAL_SRC_FILES := boot_control.cpp 18LOCAL_MODULE_RELATIVE_PATH := hw 19LOCAL_MODULE := bootctrl.$(TARGET_BOARD_PLATFORM) 20LOCAL_MODULE_OWNER := qcom 21LOCAL_PROPRIETARY_MODULE := true 22include $(BUILD_SHARED_LIBRARY) 23 24# Static library for the target. Used by update_engine_sideload from recovery. 25include $(CLEAR_VARS) 26LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/gpt-utils/inc 27LOCAL_CFLAGS += -Wall -Werror 28LOCAL_SHARED_LIBRARIES += liblog libgptutils libcutils 29LOCAL_HEADER_LIBRARIES := libhardware_headers libsystem_headers 30LOCAL_SRC_FILES := boot_control.cpp 31LOCAL_MODULE := bootctrl.$(TARGET_BOARD_PLATFORM) 32include $(BUILD_STATIC_LIBRARY) 33 34endif 35endif 36