Alexander Martinz | 8663e47 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2021 SHIFT GmbH |
Bruno Martins | 352afff | 2024-06-23 12:29:15 +0100 | [diff] [blame] | 3 | # Copyright (C) 2021-2024 The LineageOS Project |
Alexander Martinz | 8663e47 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | # |
| 7 | |
| 8 | LOCAL_PATH := $(call my-dir) |
| 9 | |
| 10 | ifneq ($(filter axolotl,$(TARGET_DEVICE)),) |
Alexander Martinz | 8663e47 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 11 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| 12 | |
| 13 | include $(CLEAR_VARS) |
| 14 | |
| 15 | # A/B builds require us to create the mount points at compile time. |
| 16 | # Just creating it for all cases since it does not hurt. |
| 17 | FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt |
| 18 | $(FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE) |
| 19 | @echo "Creating $(FIRMWARE_MOUNT_POINT)" |
| 20 | @mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt |
| 21 | |
| 22 | BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware |
| 23 | $(BT_FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE) |
| 24 | @echo "Creating $(BT_FIRMWARE_MOUNT_POINT)" |
| 25 | @mkdir -p $(TARGET_OUT_VENDOR)/bt_firmware |
| 26 | |
| 27 | DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp |
| 28 | $(DSP_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE) |
| 29 | @echo "Creating $(DSP_MOUNT_POINT)" |
| 30 | @mkdir -p $(TARGET_OUT_VENDOR)/dsp |
| 31 | |
| 32 | ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT) |
Alexander Martinz | 8663e47 | 2021-08-26 17:27:03 +0200 | [diff] [blame] | 33 | endif |