Skip to content

Instantly share code, notes, and snippets.

@bebu
Created March 16, 2020 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bebu/0e3a2969edcb38d89d61eb8538a042a4 to your computer and use it in GitHub Desktop.
Save bebu/0e3a2969edcb38d89d61eb8538a042a4 to your computer and use it in GitHub Desktop.
--- a/Makefile 2020-03-16 08:42:15.227906329 +0100
+++ b/Makefile 2020-02-14 13:09:16.000000000 +0100
@@ -57,7 +57,7 @@
.PHONY: install bbanner ibanner
all: bbanner
- $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
+ $(MAKE) -C $(KDIR) M=$(PWD)
clean:
@rm -f *.o *.ko vers.c .*.cmd .*.d
@@ -65,17 +65,10 @@
@rm -rf .tmp_versions Module.markers modules.order
install: ibanner
- @if [ -e /etc/redhat-release ]; then \
- echo "performing Redhat install"; \
- (sh ./install_rh $(KVERS)); \
- elif [ -e /etc/SuSE-release ]; then \
- echo "performing SuSE install"; \
- (sh ./install_suse $(KVERS)); \
- else \
- echo "performing generic install"; \
- cp rcraid.ko /lib/modules/$(KVERS)/kernel/drivers/scsi; \
- depmod -a \
- fi
+ echo "performing generic install"
+ cp rcraid.ko /lib/modules/$(KVERS)/kernel/drivers/scsi
+ depmod -a
+
bbanner:
@echo ------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment