
KBUILD_CFLAGS   += -Werror

include $(src)/version.mak
ccflags-y += -DGMAC_KERNEL_VERSION=\"$(GMAC_KERNEL_VERSION)\"
ccflags-y += -DGMAC_RELEASE_KERNEL_VERSION=\"$(GMAC_RELEASE_KERNEL_VERSION)\"

ifneq ($(CONFIG_SOCT_DRV_BUILDIN),)
 obj-$(CONFIG_SOCT_DRV_BUILDIN) += external_phy.o gmac.o
else
 obj-$(CONFIG_GMAC) += external_phy.o gmac.o
endif

gmac-objs := gmac.o board.o mdio.o autoeee.o phy_id_table.o phy_fix.o proc_dev.o pm.o gmac_fmea.o
