Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame^] | 1 | # FLD driver |
| 2 | # - low-level FLD driver (load functions) |
| 3 | # |
| 4 | MOD_NAME = fld |
| 5 | MOD_DEPS = model |
| 6 | |
| 7 | ifneq ("$(RELEASE_BUILD)", "y") |
| 8 | MOD_INC_DIRS = $(SRC_DIR) common/drivers/$(PLATFORM)/fld |
| 9 | endif |
| 10 | |
| 11 | ifeq ("$(ENABLE_TRACE)", "y") |
| 12 | MOD_DEFS += -DTX_ENABLE_EVENT_TRACE |
| 13 | ifeq ("$(DEBUG_TRACE_INIT)", "y") |
| 14 | MOD_DEFS += -DDEBUG_TRACE_INIT |
| 15 | endif |
| 16 | endif |
| 17 | |
| 18 | ifeq ("$(OS_KERNEL)", "linux") |
| 19 | MOD_TYPE = linux_lib |
| 20 | else |
| 21 | MOD_TYPE = lib |
| 22 | endif |
| 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 |
| 26 | ifneq ("$(KBUILD_SRC)", "") |
| 27 | -include $(OUT_DIR_BASE)/Makefile.config.$(MOD_NAME) |
| 28 | endif |
| 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. |
| 33 | EXTRA_CFLAGS += -Wno-error=cast-align |
| 34 | |
| 35 | srcs = bcmolt_fld.c |
| 36 | |
| 37 | USE_LINT = yes |
| 38 | |