blob: 0ddaaabfd0a7fe0de0eed93245706b255e55f8ed [file] [log] [blame]
Alexander Martinz8663e472021-08-26 17:27:03 +02001#
2# Copyright (C) 2021 SHIFT GmbH
Bruno Martins352afff2024-06-23 12:29:15 +01003# Copyright (C) 2021-2024 The LineageOS Project
Alexander Martinz8663e472021-08-26 17:27:03 +02004#
5# SPDX-License-Identifier: Apache-2.0
6#
7
8LOCAL_PATH := $(call my-dir)
9
10ifneq ($(filter axolotl,$(TARGET_DEVICE)),)
Alexander Martinz8663e472021-08-26 17:27:03 +020011include $(call all-makefiles-under,$(LOCAL_PATH))
12
13include $(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.
17FIRMWARE_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
22BT_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
27DSP_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
32ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT)
Alexander Martinz8663e472021-08-26 17:27:03 +020033endif