blob: b4571ca4ba21ab6105949cd4ec0e1f0e46e3185a [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001# FLD driver
2# - low-level FLD driver (load functions)
3#
4MOD_NAME = fld
5MOD_DEPS = model
6
7ifneq ("$(RELEASE_BUILD)", "y")
8 MOD_INC_DIRS = $(SRC_DIR) common/drivers/$(PLATFORM)/fld
9endif
10
11ifeq ("$(ENABLE_TRACE)", "y")
12 MOD_DEFS += -DTX_ENABLE_EVENT_TRACE
13 ifeq ("$(DEBUG_TRACE_INIT)", "y")
14 MOD_DEFS += -DDEBUG_TRACE_INIT
15 endif
16endif
17
18ifeq ("$(OS_KERNEL)", "linux")
19MOD_TYPE = linux_lib
20else
21MOD_TYPE = lib
22endif
23
24# If called by linux kernel builder - add include paths manually.
25# It is not elegant, but we'll not have many linux modules
26ifneq ("$(KBUILD_SRC)", "")
27 -include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME)
28endif
29
30# Disable "cast increases required alignment of target type" warning.
31# There are places in the code with casting from (uint8_t *) to (uint32_t *), but in fact
32# the buffer is well-aligned.
33EXTRA_CFLAGS += -Wno-error=cast-align
34
35srcs = bcmolt_fld.c
36
37USE_LINT = yes
38