| # This file is included from device/qcom/<TARGET>/AndroidBoard.mk 1 |
| # This makefile is used to add make rules which need to be included |
| # before build/core/Makefile is included. |
| |
| LOCAL_PATH := $(call my-dir) |
| |
| #A/B builds require us to create the mount points at compile time. |
| #Just creating it for all cases since it does not hurt. |
| FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt |
| BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware |
| DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp |
| PERSIST_MOUNT_POINT := $(TARGET_ROOT_OUT)/persist |
| ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) \ |
| $(BT_FIRMWARE_MOUNT_POINT) \ |
| $(DSP_MOUNT_POINT) |
| |
| $(FIRMWARE_MOUNT_POINT): |
| @echo "Creating $(FIRMWARE_MOUNT_POINT)" |
| @mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt |
| ifneq ($(TARGET_MOUNT_POINTS_SYMLINKS),false) |
| @ln -sf /vendor/firmware_mnt $(TARGET_ROOT_OUT)/firmware |
| endif |
| |
| $(BT_FIRMWARE_MOUNT_POINT): |
| @echo "Creating $(BT_FIRMWARE_MOUNT_POINT)" |
| @mkdir -p $(TARGET_OUT_VENDOR)/bt_firmware |
| ifneq ($(TARGET_MOUNT_POINTS_SYMLINKS),false) |
| @ln -sf /vendor/bt_firmware $(TARGET_ROOT_OUT)/bt_firmware |
| endif |
| |
| $(DSP_MOUNT_POINT): |
| @echo "Creating $(DSP_MOUNT_POINT)" |
| @mkdir -p $(TARGET_OUT_VENDOR)/dsp |
| ifneq ($(TARGET_MOUNT_POINTS_SYMLINKS),false) |
| @ln -sf /vendor/dsp $(TARGET_ROOT_OUT)/dsp |
| endif |
| |
| $(PERSIST_MOUNT_POINT): |
| @echo "Creating $(PERSIST_MOUNT_POINT)" |
| ifneq ($(TARGET_MOUNT_POINTS_SYMLINKS),false) |
| @ln -sf /mnt/vendor/persist $(TARGET_ROOT_OUT)/persist |
| endif |
| |
| ifeq ($(TARGET_ENABLE_VM_SUPPORT),true) |
| VM_SYSTEM_MOUNT_POINT := $(TARGET_OUT_VENDOR)/vm-system |
| $(VM_SYSTEM_MOUNT_POINT): |
| @echo "Creating $(VM_SYSTEM_MOUNT_POINT)" |
| @mkdir -p $(TARGET_OUT_VENDOR)/vm-system |
| |
| ALL_DEFAULT_INSTALLED_MODULES += $(VM_SYSTEM_MOUNT_POINT) |
| endif |
| |
| # Defining BOARD_PREBUILT_DTBOIMAGE here as AndroidBoardCommon.mk |
| # is included before build/core/Makefile, where it is required to |
| # set the dependencies on prebuilt_dtbo.img based on definition of |
| # BOARD_PREBUILT_DTBOIMAGE |
| ifeq ($(strip $(BOARD_KERNEL_SEPARATED_DTBO)),true) |
| ifndef BOARD_PREBUILT_DTBOIMAGE |
| BOARD_PREBUILT_DTBOIMAGE := $(PRODUCT_OUT)/prebuilt_dtbo.img |
| endif |
| endif |
| |
| LIBION_HEADER_PATH_WRAPPER := $(LOCAL_PATH)/libion_header_paths/libion_path.mk |