rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | ifeq (y,$(CONFIG_MODULES)) |
| 2 | |
| 3 | ifeq ($(CONFIG_FTRACE),y) |
| 4 | ifeq ($(CONFIG_TRACING),y) |
| 5 | FTRACE_READY := y |
| 6 | endif |
| 7 | endif |
| 8 | |
| 9 | #PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM)) |
| 10 | PLATFORM := mt2712 |
| 11 | MET_COMMON_USE := yes |
| 12 | |
| 13 | $(info ******** Start to build met_drv for $(PLATFORM) ********) |
| 14 | |
| 15 | |
| 16 | ifeq ($(MET_COMMON_USE),yes) |
| 17 | # met common code structure, new build flow |
| 18 | MET_COMMON_DIR := $(src)/common |
| 19 | ifeq ($(FTRACE_READY),y) |
| 20 | include $(MET_COMMON_DIR)/Kbuild |
| 21 | ccflags-y += -DCONFIG_MET_MODULE -DMET_PLF_USE |
| 22 | ccflags-y += -I$(MET_COMMON_DIR)/ |
| 23 | else |
| 24 | $(warning Not building met.ko due to CONFIG_FTRACE/CONFIG_TRACING is not set) |
| 25 | endif |
| 26 | else |
| 27 | $(warning not support $(PLATFORM), build met default) |
| 28 | MET_DEF_DIR := $(src) |
| 29 | include $(MET_DEF_DIR)/default/Kbuild |
| 30 | endif |
| 31 | else |
| 32 | $(warning Not building met.ko due to CONFIG_MODULES is not set) |
| 33 | endif |