The output of makefile is as follows:
Code:
amit@ubuntu:~/Downloads/Linux Driver/rts_pstor$ sudo make sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h cp -f ./define.release ./define.h make -C /lib/modules/3.16.0-36-generic/build SUBDIRS=/home/amit/Downloads/Linux Driver/rts_pstor modules make[1]: Entering directory `/usr/src/linux-headers-3.16.0-36-generic' arch/x86/Makefile:136: CONFIG_X86_X32 enabled but no binutils support Makefile:652: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler make[1]: *** No rule to make target `Driver/rts_pstor'. Stop. make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-36-generic' make: *** [default] Error 2 amit@ubuntu:~/Downloads/Linux Driver/rts_pstor$
The make file for this driver is as follows:
Code:
TARGET_MODULE := rts_pstor EXTRA_CFLAGS := -Idrivers/scsi obj-m += $(TARGET_MODULE).o $(TARGET_MODULE)-objs := rtsx.o rtsx_chip.o rtsx_transport.o rtsx_scsi.o rtsx_card.o \ general.o sd.o xd.o ms.o spi.o default: sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h cp -f ./define.release ./define.h make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules debug: sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h cp -f ./define.debug ./define.h make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules install: cp $(TARGET_MODULE).ko /lib/modules/$(shell uname -r)/kernel/drivers/scsi -f clean: rm -f *.o *.ko rm -f $(TARGET_MODULE).mod.c
Please let me know any of your comments.
Thanks,
Amit