1# Copyright 2013 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15LOCAL_PATH := $(call my-dir) 16 17ifeq ($(TARGET_DEVICE),deb) 18 19include $(CLEAR_VARS) 20LOCAL_MODULE := libacdbloader 21LOCAL_SRC_FILES := libacdbloader.so 22LOCAL_MODULE_SUFFIX := .so 23LOCAL_MODULE_CLASS := SHARED_LIBRARIES 24LOCAL_MODULE_PATH := $(TARGET_OUT)/lib 25LOCAL_MODULE_TAGS := optional 26LOCAL_MODULE_OWNER := qcom 27 28# Create symbolic link because user space can access persist directory, 29# while kernel ALSA drivers can only access the /system/etc/firmware directory 30LOCAL_POST_INSTALL_CMD := \ 31 mkdir -p $(TARGET_OUT_ETC)/firmware/wcd9310; \ 32 ln -sf /data/misc/audio/wcd9310_anc.bin \ 33 $(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_anc.bin; \ 34 ln -sf /data/misc/audio/mbhc.bin \ 35 $(TARGET_OUT_ETC)/firmware/wcd9310/wcd9310_mbhc.bin 36 37include $(BUILD_PREBUILT) 38 39include $(CLEAR_VARS) 40LOCAL_MODULE := tzapps.mdt 41LOCAL_MODULE_OWNER := qcom 42LOCAL_SRC_FILES := tzapps.mdt 43LOCAL_MODULE_TAGS := optional 44LOCAL_MODULE_CLASS := ETC 45LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/firmware 46LOCAL_POST_INSTALL_CMD := \ 47 mkdir -p $(TARGET_OUT)/etc/firmware/; \ 48 ln -sf /system/vendor/firmware/tzapps.b00 $(TARGET_OUT)/etc/firmware/tzapps.b00; \ 49 ln -sf /system/vendor/firmware/tzapps.b01 $(TARGET_OUT)/etc/firmware/tzapps.b01; \ 50 ln -sf /system/vendor/firmware/tzapps.b02 $(TARGET_OUT)/etc/firmware/tzapps.b02; \ 51 ln -sf /system/vendor/firmware/tzapps.b03 $(TARGET_OUT)/etc/firmware/tzapps.b03; \ 52 ln -sf /system/vendor/firmware/tzapps.mdt $(TARGET_OUT)/etc/firmware/tzapps.mdt; 53include $(BUILD_PREBUILT) 54 55endif 56