blob: 24f149b7cddab4456c4101e9aee9c7b63b41e43f [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001# Device control driver
2MOD_NAME = dev_ctrl
3MOD_DEPS = trmux keep_alive fld ll_pcie debug_common
4MOD_INC_DIRS = $(SRC_DIR)
5
6ifeq ("$(RELEASE_BUILD)", "y")
7 MOD_INC_DIRS += host_driver/sw_version host_driver/sw_error host_driver/mh_utils
8else
9 MOD_INC_DIRS += host/sw_version $(TOP_DIR)/common/sw_error $(TOP_DIR)/common/mh_utils
10endif
11
12ifeq ("$(OS_KERNEL)", "linux")
13MOD_TYPE = linux_lib
14else
15MOD_TYPE = lib
16endif
17
18srcs = bcmolt_dev_ctrl.c bcmolt_debug_ctrl.c
19
20# If called by linux kernel builder - add include paths manually.
21# It is not elegant, but we'll not have many linux modules
22ifneq ("$(KBUILD_SRC)", "")
23 -include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME)
24endif