blob: 45c5c31b24190fefed92a81ec0768661871c6678 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001# Makefile for building system model as linux module
2#
3ifeq ("$(OS_KERNEL)", "linux")
4
5MOD_NAME = sysmodel
6MOD_DEPS = utils common_api
7MOD_TYPE = linux_lib
8SRC_DIR = $(MODEL_OUT_DIR)/linux
9srcs = bcmolt_model_types.c bcmolt_msg_pack.c
10
11$(shell mkdir -p $(SRC_DIR); ln -s $(MODEL_OUT_DIR)/*.[ch] $(SRC_DIR)/ 2> /dev/null)
12
13# If called by linux kernel builder - add include paths manually.
14# It is not elegant, but we'll not have many linux modules
15ifneq ("$(KBUILD_SRC)", "")
16 -include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME)
17endif
18
19endif