2016-01-10 15:51:48 +01:00
|
|
|
#
|
2021-08-25 22:42:11 +02:00
|
|
|
# Copyright (C) 2012 The Android Open-Source Project
|
2016-01-10 15:51:48 +01:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
2021-08-25 22:42:11 +02:00
|
|
|
# WARNING: Everything listed here will be built on ALL platforms,
|
|
|
|
# including x86, the emulator, and the SDK. Modules must be uniquely
|
|
|
|
# named (liblights.tuna), and must build everywhere, or limit themselves
|
|
|
|
# to only building on ARM if they include assembly. Individual makefiles
|
|
|
|
# are responsible for having their own logic, for fine-grained control.
|
|
|
|
|
2016-01-10 15:51:48 +01:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
2019-10-28 10:00:21 +01:00
|
|
|
ifeq ($(TARGET_DEVICE),mondrianwifi)
|
2016-01-10 15:51:48 +01:00
|
|
|
include $(call all-subdir-makefiles,$(LOCAL_PATH))
|
2019-10-28 10:00:21 +01:00
|
|
|
|
2019-12-05 10:22:07 +01:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
ISDBT_IMAGES := \
|
|
|
|
isdbtmm.b00 isdbtmm.b01 isdbtmm.b02 isdbtmm.b03 isdbtmm.mdt
|
|
|
|
|
2020-07-02 18:16:32 +02:00
|
|
|
ISDBT_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(ISDBT_IMAGES)))
|
|
|
|
$(ISDBT_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
2019-12-05 10:22:07 +01:00
|
|
|
@echo "isdbt firmware link: $@"
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
@rm -rf $@
|
|
|
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
|
|
|
|
2020-07-02 18:16:32 +02:00
|
|
|
ALL_DEFAULT_INSTALLED_MODULES += $(ISDBT_SYMLINKS)
|
2019-12-05 10:22:07 +01:00
|
|
|
|
|
|
|
WCNSS_IMAGES := \
|
|
|
|
wcnss.b00 wcnss.b01 wcnss.b02 wcnss.b04 wcnss.b06 \
|
|
|
|
wcnss.b07 wcnss.b08 wcnss.b09 wcnss.mdt
|
|
|
|
|
2020-07-02 18:16:32 +02:00
|
|
|
WCNSS_SYMLINKS := $(addprefix $(TARGET_OUT_VENDOR)/firmware/,$(notdir $(WCNSS_IMAGES)))
|
|
|
|
$(WCNSS_SYMLINKS): $(LOCAL_INSTALLED_MODULE)
|
2019-12-05 10:22:07 +01:00
|
|
|
@echo "wcnss firmware link: $@"
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
@rm -rf $@
|
|
|
|
$(hide) ln -sf /firmware/image/$(notdir $@) $@
|
|
|
|
|
2020-07-02 18:16:32 +02:00
|
|
|
ALL_DEFAULT_INSTALLED_MODULES += $(WCNSS_SYMLINKS)
|
2019-12-05 10:22:07 +01:00
|
|
|
|
|
|
|
# Create a link for the WCNSS config file, which ends up as a writable
|
|
|
|
# version in /data/misc/wifi
|
|
|
|
$(shell mkdir -p $(TARGET_OUT)/etc/firmware/wlan/prima; \
|
|
|
|
ln -sf /data/misc/wifi/WCNSS_qcom_cfg.ini \
|
|
|
|
$(TARGET_OUT)/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini)
|
|
|
|
|
2016-01-10 15:51:48 +01:00
|
|
|
endif
|