blob: c1359e1db2fa9e958a6736cc632ed2c6eba68da3 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001# 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
51BUILD_LAUNCHER := false
52BUILD_WMT_LPBK := false
53BUILD_WMT_CONCURRENCY := false
54BUILD_STP_DUMP := false
55LOCAL_PATH := $(call my-dir)
56
57
58#ifneq ($(MTK_COMBO_CHIP), )
59BUILD_LAUNCHER := true
60BUILD_WMT_LPBK := true
61BUILD_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)
70ifeq ($(BUILD_LAUNCHER), true)
71include $(CLEAR_VARS)
72
73$(warning after build launcher)
74LOCAL_SRC_FILES := stp_uart_launcher.c
75LOCAL_MODULE := 6620_launcher
76LOCAL_MODULE_TAGS := optional
77LOCAL_SHARED_LIBRARIES := libcutils
78include $(BUILD_EXECUTABLE)
79endif
80
81ifeq ($(BUILD_WMT_LPBK), true)
82include $(CLEAR_VARS)
83LOCAL_SRC_FILES := wmt_loopback.c
84LOCAL_MODULE := 6620_wmt_lpbk
85LOCAL_MODULE_TAGS := eng
86include $(BUILD_EXECUTABLE)
87endif
88
89
90ifeq ($(BUILD_WMT_CONCURRENCY), true)
91include $(CLEAR_VARS)
92LOCAL_SRC_FILES := wmt_concurrency.c
93LOCAL_MODULE := 6620_wmt_concurrency
94LOCAL_MODULE_TAGS := eng
95include $(BUILD_EXECUTABLE)
96endif
97
98ifeq ($(BUILD_STP_DUMP), true)
99include $(CLEAR_VARS)
100LOCAL_SRC_FILES := \
101 stp_dump/stp_dump.c \
102 stp_dump/eloop.c \
103 stp_dump/os_linux.c
104LOCAL_SHARED_LIBRARIES := libc libcutils
105LOCAL_MODULE := stp_dump3
106LOCAL_MODULE_TAGS := optional
107include $(BUILD_EXECUTABLE)
108endif
109