rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # Copyright Statement: |
| 2 | # |
| 3 | # This software/firmware and related documentation ("MediaTek Software") are |
| 4 | # protected under relevant copyright laws. The information contained herein |
| 5 | # is confidential and proprietary to MediaTek Inc. and/or its licensors. |
| 6 | # Without the prior written permission of MediaTek inc. and/or its licensors, |
| 7 | # any reproduction, modification, use or disclosure of MediaTek Software, |
| 8 | # and information contained herein, in whole or in part, shall be strictly prohibited. |
| 9 | # |
| 10 | # MediaTek Inc. (C) 2010. All rights reserved. |
| 11 | # |
| 12 | # BY OPENING THIS FILE, RECEIVER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 13 | # THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 14 | # RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO RECEIVER ON |
| 15 | # AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 16 | # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 17 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 18 | # NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 19 | # SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 20 | # SUPPLIED WITH THE MEDIATEK SOFTWARE, AND RECEIVER AGREES TO LOOK ONLY TO SUCH |
| 21 | # THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. RECEIVER EXPRESSLY ACKNOWLEDGES |
| 22 | # THAT IT IS RECEIVER'S SOLE RESPONSIBILITY TO OBTAIN FROM ANY THIRD PARTY ALL PROPER LICENSES |
| 23 | # CONTAINED IN MEDIATEK SOFTWARE. MEDIATEK SHALL ALSO NOT BE RESPONSIBLE FOR ANY MEDIATEK |
| 24 | # SOFTWARE RELEASES MADE TO RECEIVER'S SPECIFICATION OR TO CONFORM TO A PARTICULAR |
| 25 | # STANDARD OR OPEN FORUM. RECEIVER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND |
| 26 | # CUMULATIVE LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 27 | # AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 28 | # OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY RECEIVER TO |
| 29 | # MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 30 | # |
| 31 | # The following software/firmware and/or related documentation ("MediaTek Software") |
| 32 | # have been modified by MediaTek Inc. All revisions are subject to any receiver's |
| 33 | # applicable license agreements with MediaTek Inc. |
| 34 | |
| 35 | |
| 36 | # Copyright (C) 2008 The Android Open Source Project |
| 37 | # |
| 38 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 39 | # you may not use this file except in compliance with the License. |
| 40 | # You may obtain a copy of the License at |
| 41 | # |
| 42 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 43 | # |
| 44 | # Unless required by applicable law or agreed to in writing, software |
| 45 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 46 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 47 | # See the License for the specific language governing permissions and |
| 48 | # limitations under the License. |
| 49 | |
| 50 | # Configuration |
| 51 | BUILD_LOADER := false |
| 52 | BUILD_MT6582_CONSYS := false |
| 53 | LOCAL_PATH := $(call my-dir) |
| 54 | |
| 55 | ifneq ($(MTK_COMBO_CHIP), ) |
| 56 | BUILD_LOADER := true |
| 57 | endif |
| 58 | |
| 59 | ifneq ($(filter CONSYS_6572,$(MTK_COMBO_CHIP)),) |
| 60 | BUILD_MT6582_CONSYS := true |
| 61 | endif |
| 62 | |
| 63 | ifneq ($(filter CONSYS_6582,$(MTK_COMBO_CHIP)),) |
| 64 | BUILD_MT6582_CONSYS := true |
| 65 | endif |
| 66 | |
| 67 | ifneq ($(filter CONSYS_6592,$(MTK_COMBO_CHIP)),) |
| 68 | BUILD_MT6582_CONSYS := true |
| 69 | endif |
| 70 | |
| 71 | ifneq ($(filter CONSYS_6735,$(MTK_COMBO_CHIP)),) |
| 72 | BUILD_MT6582_CONSYS := true |
| 73 | endif |
| 74 | |
| 75 | ifneq ($(filter CONSYS_6755,$(MTK_COMBO_CHIP)),) |
| 76 | BUILD_MT6582_CONSYS := true |
| 77 | endif |
| 78 | |
| 79 | ifneq ($(filter CONSYS_6797,$(MTK_COMBO_CHIP)),) |
| 80 | BUILD_MT6582_CONSYS := true |
| 81 | endif |
| 82 | |
| 83 | ifeq ($(BUILD_LOADER), true) |
| 84 | $(warning build loader) |
| 85 | include $(CLEAR_VARS) |
| 86 | |
| 87 | ifeq ($(BUILD_MT6582_CONSYS), true) |
| 88 | LOCAL_CFLAGS := -DMTK_SOC_CONSYS_SUPPORT |
| 89 | endif |
| 90 | |
| 91 | |
| 92 | LOCAL_SHARED_LIBRARIES := libcutils |
| 93 | LOCAL_SRC_FILES := loader.c \ |
| 94 | load_fm.c \ |
| 95 | load_wifi.c \ |
| 96 | load_ant.c \ |
| 97 | loader_pwr.c |
| 98 | LOCAL_MODULE := wmt_loader |
| 99 | LOCAL_MODULE_TAGS := optional |
| 100 | include $(BUILD_EXECUTABLE) |
| 101 | endif |