spbx/roms/srcs/images/ethernet/freescale_eth/Makefile.cross

54 lines
979 B
Makefile

# target name, the target name must have the same name of c source file
TARGET=gfar
# 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 P1010 SG board
BOARD_SG02 = TRUE
endif
# source code
ifeq ($(BUILD_FOR_BOARD), TRUE)
# set the source file, don't used .o because of ...
# P1010 SG Board Source Files
SG02_SRCS = mod_entry.c \
gianfar.c \
gianfar_1588.c \
gianfar_ethtool.c \
gianfar_sysfs.c
endif
# gcc CFLAGS
ifeq ($(BUILD_FOR_BOARD), TRUE)
BOARD_MRS_CFLAGS :=
BOARD_SG02_CFLAGS :=
BOARD_MSB_CFLAGS :=
BOARD_UMB_CFLAGS :=
else
PLAT_P1010_CFLAGS :=
PLAT_MPC8309_CFLAGS :=
endif
# this line must be at below of thus, because of...
include ../Makefile.cross