reform

MNT Reform: Open Source Portable Computer
Log (Feed) | Files | Refs (Tags) | README

Makefile (690B)


      1 KPATH := /usr/src/linux-headers-`uname -r`
      2 obj-m := ./src/reform2-lpc.o
      3 
      4 .PHONY: all clean doc
      5 
      6 all:
      7 	make -C $(KPATH) M=$(CURDIR) modules
      8 
      9 clean:
     10 	make -C $(KPATH) M=$(CURDIR) clean
     11 
     12 install:
     13 	mkdir -p /lib/modules/`uname -r`/misc
     14 	cp ./src/reform2-lpc.ko /lib/modules/`uname -r`/misc
     15 	depmod -a
     16 	modprobe -r reform2-lpc
     17 	modprobe reform2-lpc
     18 
     19 remove:
     20 	modprobe -r reform2-lpc
     21 	$(RM) /lib/modules/`uname -r`/misc/reform2-lpc.ko
     22 	depmod -a
     23 
     24 read:
     25 	cat /sys/bus/spi/drivers/reform2-lpc/spi1.0/status
     26 	@echo 
     27 	cat /sys/bus/spi/drivers/reform2-lpc/spi1.0/cells
     28 	@echo 
     29 	cat /sys/bus/spi/drivers/reform2-lpc/spi1.0/firmware
     30 	@echo 
     31 	cat /sys/bus/spi/drivers/reform2-lpc/spi1.0/capacity
     32 	@echo