diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-01 21:06:48 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-01 21:07:37 +0300 |
commit | 4307c299bd8784c538aa212813f81eee6f34e3a2 (patch) | |
tree | 8da8c1a69ac7f590915b66d0507c2e7710482b4d /clovercon/Makefile | |
parent | 46901b2c198622f3ec5479255020720cacc2aeb2 (diff) |
clovercon update
Diffstat (limited to 'clovercon/Makefile')
-rw-r--r-- | clovercon/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clovercon/Makefile b/clovercon/Makefile index 829c670a..fdf7b022 100644 --- a/clovercon/Makefile +++ b/clovercon/Makefile @@ -2,6 +2,8 @@ CURRENT = $(shell uname -r) HMOD = ../mods/hmods/clovercon.hmod TARGET = clovercon TARGET_PATH = mod/lib/modules/3.4.112/extra +TARGET2 = clvcon +TARGET_PATH2 = mod/lib/modules/3.4.113/extra OBJS = clovercon.o KDIR = ~/nesmini-linux PWD = $(shell pwd) @@ -12,7 +14,11 @@ all: make -C $(KDIR) SUBDIRS=$(PWD) ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modinfo $(TARGET).ko arm-linux-gnueabihf-strip --strip-unneeded $(TARGET).ko + mkdir -p $(TARGET_PATH) + mkdir -p $(TARGET_PATH2) cp -f $(TARGET).ko $(TARGET_PATH)/$(TARGET).ko + hexdump -ve '1/1 "%.2X"' $(TARGET).ko | sed "s/332E342E313132/332E342E313133/g" | xxd -r -p > $(TARGET_PATH2)/$(TARGET2).ko + modinfo $(TARGET_PATH2)/$(TARGET2).ko cd mod && tar -czvf ../$(HMOD) * $(TARGET).o: $(OBJS) @@ -20,7 +26,7 @@ $(TARGET).o: $(OBJS) clean: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean - rm -f $(TARGET_PATH)/$(TARGET).ko $(HMOD) + rm -f $(TARGET_PATH)/$(TARGET).ko $(TARGET_PATH2)/$(TARGET2).ko $(HMOD) .PHONY: modules clean |