spbx/roms/srcs/images/ethernet/gianfar_eth/Makefile

50 lines
1.1 KiB
Makefile

#KDIR :=/lib/modules/$(shell uname -r)/build
#KDIR_PREX := /opt
#KDIR_PREX := /opt/p1010
KDIR :=/mnt/data/kernel/p1010/linux-2.6-cloud
#KDIR := /mnt/winshare/source/linux-2.6-cloud/
EXTRA_CFLAGS +=-DUSED_1000M_HZ
#ifeq ($(USED_FSL_TIMER), TRUE)
#obj-m := timer_irq.o
#timer_irq-y := mpic_timer.o log.o
#EXTRA_CFLAGS += -DUSED_FSL_TIMER
#else
#obj-m := timer_irq.o
#timer_irq-y :=fpga_bus.o init_drv.o
#endif
obj-m += gfar_rtp.o
gfar_rtp-y := gianfar.o \
gianfar_ethtool.o \
gianfar_sysfs.o \
hook_p1010.o \
fpga_bus.o \
init_drv.o \
debug_info.o \
log.o
all:fpga_ext
gpt_timer:
make clean
make -j2 ARCH=powerpc KBUILD_VERBOSE=1 USED_FSL_TIMER=TRUE -C $(KDIR) SUBDIRS=`pwd`
cp *.ko /mnt/nfs/p1010
fpga_ext:
# make clean
make -j2 ARCH=powerpc KBUILD_VERBOSE=1 -C $(KDIR) SUBDIRS=`pwd`
mv gfar_rtp.ko gfar_rtp-mrs.ko
cp *.ko /mnt/nfs/p1010
clean:
find ./ -name "*.mod.c" -delete
find ./ -name "*.o.cmd" -delete
find ./ -name "*.ko.cmd" -delete
find ./ -name "*.o" -delete
find ./ -name "*.ko" -delete
find ./ -name "modules.order" -delete
find ./ -name "Module.symvers" -delete
find ./ -name ".tmp_versions" -print | xargs rm -rf