blob: 6f97da926d547f747a9c120ac944816c72194da8 [file] [log] [blame]
merothh54856102021-11-04 12:07:41 +05301#
Michael Bestas4e1ba2f2024-05-12 06:38:39 +03002# SPDX-FileCopyrightText: 2021-2024 The LineageOS Project
merothh54856102021-11-04 12:07:41 +05303# SPDX-License-Identifier: Apache-2.0
4#
5
6LOCAL_PATH := $(call my-dir)
7
Michael Bestas10374532023-08-29 19:41:38 +03008ifeq ($(TARGET_DEVICE),FP5)
merothh54856102021-11-04 12:07:41 +05309include $(call all-makefiles-under,$(LOCAL_PATH))
Ameya Thakurac5b3e02016-09-26 12:07:36 -070010
11include $(CLEAR_VARS)
12
13# A/B builds require us to create the mount points at compile time.
14# Just creating it for all cases since it does not hurt.
15FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt
16$(FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
17 @echo "Creating $(FIRMWARE_MOUNT_POINT)"
18 @mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt
19
20BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware
21$(BT_FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
22 @echo "Creating $(BT_FIRMWARE_MOUNT_POINT)"
23 @mkdir -p $(TARGET_OUT_VENDOR)/bt_firmware
24
25DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp
26$(DSP_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
27 @echo "Creating $(DSP_MOUNT_POINT)"
28 @mkdir -p $(TARGET_OUT_VENDOR)/dsp
29
30ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT)
merothh54856102021-11-04 12:07:41 +053031endif