merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 1 | # |
Michael Bestas | 4e1ba2f | 2024-05-12 06:38:39 +0300 | [diff] [blame] | 2 | # SPDX-FileCopyrightText: 2021-2024 The LineageOS Project |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 3 | # SPDX-License-Identifier: Apache-2.0 |
| 4 | # |
| 5 | |
| 6 | LOCAL_PATH := $(call my-dir) |
| 7 | |
Michael Bestas | 9e3d0d6 | 2024-05-28 03:47:26 +0300 | [diff] [blame] | 8 | ifeq ($(TARGET_DEVICE),otter) |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 9 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Ameya Thakur | ac5b3e0 | 2016-09-26 12:07:36 -0700 | [diff] [blame] | 10 | |
| 11 | include $(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. |
| 15 | FIRMWARE_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 | |
| 20 | BT_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 | |
| 25 | DSP_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 | |
| 30 | ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) |
merothh | 5485610 | 2021-11-04 12:07:41 +0530 | [diff] [blame] | 31 | endif |