From e5d868637b9447994cad03568e9fa248759f7e24 Mon Sep 17 00:00:00 2001 From: Dimitry Ishenko Date: Fri, 10 Feb 2012 10:36:36 -0500 Subject: [PATCH 1/2] Revert "Add: make install" This reverts commit 26295f86eb6d207231042beccea47f29e10cd8f9. --- Makefile | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Makefile b/Makefile index 5c803e7..0e5a272 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,8 @@ -#! /usr/bin/make -f - -package=acpi_call - obj-m := acpi_call.o KVERSION := $(shell uname -r) KDIR := /lib/modules/$(KVERSION)/build PWD := $(shell pwd) -INSTALLDIR?=${DESTDIR}/lib/modules/${KVERSION}/kernel/extra/ - default: $(MAKE) -C $(KDIR) M=$(PWD) modules @@ -19,8 +13,3 @@ clean: load: -/sbin/rmmod acpi_call /sbin/insmod acpi_call.ko - -install: ${package}.ko - install -d ${INSTALLDIR} - install $< ${INSTALLDIR} - From f7efca4a74c5cdbf12d829890d1db33c546f6cee Mon Sep 17 00:00:00 2001 From: Dimitry Ishenko Date: Fri, 10 Feb 2012 10:38:19 -0500 Subject: [PATCH 2/2] Add install target to Makefile Use kernel's modules_install target, instead of directly installing the module --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 0e5a272..f9fe03d 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ default: clean: $(MAKE) -C $(KDIR) M=$(PWD) clean +install: + $(MAKE) -C $(KDIR) M=$(PWD) modules_install + load: -/sbin/rmmod acpi_call /sbin/insmod acpi_call.ko