San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | include $(CLEAR_VARS) |
Chih-Hung Hsieh | 6fc3c74 | 2014-09-02 15:12:07 -0700 | [diff] [blame] | 4 | # clang cannot compile 'variable length array in structure' in ipxfrm.c |
| 5 | LOCAL_CLANG := false |
San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 6 | LOCAL_SRC_FILES := tc.c tc_qdisc.c q_cbq.c tc_util.c tc_class.c tc_core.c m_action.c \ |
| 7 | m_estimator.c tc_filter.c tc_monitor.c tc_stab.c tc_cbq.c \ |
San Mehat | 95e6324 | 2010-04-29 14:11:17 -0700 | [diff] [blame] | 8 | tc_estimator.c f_u32.c m_police.c q_ingress.c m_mirred.c q_htb.c |
San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 9 | |
Subash Abhinov Kasiviswanathan | 0b5eaaa | 2014-07-17 17:21:44 -0600 | [diff] [blame] | 10 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 11 | LOCAL_SRC_FILES += f_fw.c q_prio.c q_fifo.c |
| 12 | endif |
| 13 | |
San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 14 | LOCAL_MODULE := tc |
| 15 | |
| 16 | LOCAL_SYSTEM_SHARED_LIBRARIES := \ |
Doug Kwan | 87ebb23 | 2010-04-14 16:34:45 -0700 | [diff] [blame] | 17 | libc libm libdl |
San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 18 | |
| 19 | LOCAL_SHARED_LIBRARIES += libiprouteutil libnetlink |
| 20 | |
Subash Abhinov Kasiviswanathan | 0b5eaaa | 2014-07-17 17:21:44 -0600 | [diff] [blame] | 21 | ifeq ($(call is-vendor-board-platform,QCOM),true) |
| 22 | LOCAL_C_INCLUDES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include |
| 23 | LOCAL_C_INCLUDES += external/iproute2/include |
| 24 | LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr |
| 25 | LOCAL_CFLAGS := -DFEATURE_PRIO |
| 26 | else |
| 27 | LOCAL_C_INCLUDES := $(KERNEL_HEADERS) external/iproute2/include |
| 28 | endif |
San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 29 | |
Subash Abhinov Kasiviswanathan | 0b5eaaa | 2014-07-17 17:21:44 -0600 | [diff] [blame] | 30 | LOCAL_CFLAGS += -O2 -g -W -Wall -Wno-pointer-arith -Wno-sign-compare -Werror \ |
Chih-Hung Hsieh | 6fc3c74 | 2014-09-02 15:12:07 -0700 | [diff] [blame] | 31 | -Wno-unused-parameter \ |
| 32 | -Wno-missing-field-initializers |
San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 33 | |
Dmitriy Ivanov | 471688e | 2014-12-17 10:29:07 -0800 | [diff] [blame] | 34 | # This is a work around for b/18403920 |
| 35 | LOCAL_LDFLAGS := -Wl,--no-gc-sections |
| 36 | |
San Mehat | f1cbadf | 2010-04-07 09:44:54 -0700 | [diff] [blame] | 37 | include $(BUILD_EXECUTABLE) |
| 38 | |