# target name, the target name must have the same name of c source file TARGET=gfar_rtp # target # for linux module driver: DRV # for application: EXE # for dynamic library: DLL TARGET_TYPE = DRV # build by mcu or build by board BUILD_FOR_BOARD = TRUE #debug mode or release mode DEBUG = TRUE # platform select # freescale p1010 mcu platform PLAT_P1010 = TRUE # build for board ifeq ($(BUILD_FOR_BOARD), TRUE) # build driver for MRS board BOARD_MRS = TRUE endif # source code ifeq ($(BUILD_FOR_BOARD), TRUE) # set the source file, don't used .o because of ... # MRS Board Source Files MRS_SRCS = mod_entry.c \ fpga_bus.c \ init_drv.c \ gianfar.c \ gianfar_ethtool.c \ gianfar_sysfs.c \ hook_p1010.c \ debug_info.c \ log.c endif # gcc CFLAGS ifeq ($(BUILD_FOR_BOARD), TRUE) BOARD_MRS_CFLAGS := -DUSED_1000M_HZ BOARD_SG02_CFLAGS := BOARD_MSB_CFLAGS := BOARD_UMB_CFLAGS := else PLAT_P1010_CFLAGS := PLAT_MPC8309_CFLAGS := endif $(shell rm *.ko) # this line must be at below of thus, because of... include ../../../../../drivers/srcs/Makefile.0.95.cross