ifneq ($(KERNELRELEASE),)
include $(M)/$(DK_ROOT)/pform/linux/build/common.inc
include $(M)/$(DK_ROOT)/pform/linux/build/os_sources.inc
+ include $(M)/$(DK_ROOT)/common/build/linux/drv_sources.inc
else
include $(DK_ROOT)/pform/linux/build/common.inc
include $(DK_ROOT)/pform/linux/build/os_sources.inc
+ include $(DK_ROOT)/common/build/linux/drv_sources.inc
endif
+#
+# List of platform independent OS files needed to be compiled
+#
+OS_SRCS = \
+ $(DK_ROOT)/pform/common/src/osCmd.c \
+ $(DK_ROOT)/pform/common/src/osUtil.c \
+ $(DK_ROOT)/pform/common/src/osClsfr.c \
+ $(DK_ROOT)/pform/common/src/osRgstry.c
+
#
# List of linux OS files needed to be compiled
#
# $(DK_ROOT)/pform/linux/src/iw_ioctl.c
-OS_SRCS = \
+OS_SRCS += \
$(DK_ROOT)/pform/linux/src/esta_drv.c \
$(DK_ROOT)/pform/linux/src/osapi.c \
$(DK_ROOT)/pform/linux/src/osmemapi.c \
#
# Adds the current directory as a prefix to all include directories.
#
- EXTRA_CFLAGS += $(addprefix -I$(M)/, $(OS_INCS))
+ EXTRA_CFLAGS += $(addprefix -I$(M)/, $(OS_INCS) $(DK_INCS))
#
# Intermediate object name - this should be renamed to the desired object name
#
# List of object files the kernel makefile needs to compile.
#
- linux-y = $(OS_OBJS) $(OS_AUXILIARY_LIBS)
+ linux-y = $(OS_OBJS) $(OS_AUXILIARY_LIBS) $(DK_OBJS)
else # ifneq ($(KERNELRELEASE),)
.PHONY: clean
clean:
$(MAKE) -C $(KERNEL_DIR) M=`pwd` ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) clean
- @rm -f *.o *.a *~ *.~* core .depend dep $(OS_OBJS) $(FW_SRCS) $(FW_OBJS)
+ @rm -f *.o *.a *~ *.~* core .depend dep $(OS_OBJS) $(DK_OBJS) $(FW_SRCS) $(FW_OBJS)
#