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_LAUNCHER := false |
| 52 | BUILD_WMT_LPBK := false |
| 53 | BUILD_WMT_CONCURRENCY := false |
| 54 | BUILD_STP_DUMP := false |
| 55 | LOCAL_PATH := $(call my-dir) |
| 56 | |
| 57 | |
| 58 | #ifneq ($(MTK_COMBO_CHIP), ) |
| 59 | BUILD_LAUNCHER := true |
| 60 | BUILD_WMT_LPBK := true |
| 61 | BUILD_WMT_CONCURRENCY := true |
| 62 | |
| 63 | #ifneq ($(filter MT6620E3,$(MTK_COMBO_CHIP)),) |
| 64 | BUILD_STP_DUMP := true |
| 65 | |
| 66 | #endif |
| 67 | #endif |
| 68 | |
| 69 | $(warning before build launcher) |
| 70 | ifeq ($(BUILD_LAUNCHER), true) |
| 71 | include $(CLEAR_VARS) |
| 72 | |
| 73 | $(warning after build launcher) |
| 74 | LOCAL_SRC_FILES := stp_uart_launcher.c |
| 75 | LOCAL_MODULE := 6620_launcher |
| 76 | LOCAL_MODULE_TAGS := optional |
| 77 | LOCAL_SHARED_LIBRARIES := libcutils |
| 78 | include $(BUILD_EXECUTABLE) |
| 79 | endif |
| 80 | |
| 81 | ifeq ($(BUILD_WMT_LPBK), true) |
| 82 | include $(CLEAR_VARS) |
| 83 | LOCAL_SRC_FILES := wmt_loopback.c |
| 84 | LOCAL_MODULE := 6620_wmt_lpbk |
| 85 | LOCAL_MODULE_TAGS := eng |
| 86 | include $(BUILD_EXECUTABLE) |
| 87 | endif |
| 88 | |
| 89 | |
| 90 | ifeq ($(BUILD_WMT_CONCURRENCY), true) |
| 91 | include $(CLEAR_VARS) |
| 92 | LOCAL_SRC_FILES := wmt_concurrency.c |
| 93 | LOCAL_MODULE := 6620_wmt_concurrency |
| 94 | LOCAL_MODULE_TAGS := eng |
| 95 | include $(BUILD_EXECUTABLE) |
| 96 | endif |
| 97 | |
| 98 | ifeq ($(BUILD_STP_DUMP), true) |
| 99 | include $(CLEAR_VARS) |
| 100 | LOCAL_SRC_FILES := \ |
| 101 | stp_dump/stp_dump.c \ |
| 102 | stp_dump/eloop.c \ |
| 103 | stp_dump/os_linux.c |
| 104 | LOCAL_SHARED_LIBRARIES := libc libcutils |
| 105 | LOCAL_MODULE := stp_dump3 |
| 106 | LOCAL_MODULE_TAGS := optional |
| 107 | include $(BUILD_EXECUTABLE) |
| 108 | endif |
| 109 | |