From 31efe2ead3dce913d9ceb7fff331587aa6648cf3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Thu, 10 Aug 2006 13:58:10 +0000 Subject: [PATCH] Debian package was broken: the module was directly installed during the build process and was not in the package. Fix that ! --- Makefile | 7 ++++--- debian/rules | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7ac0208..52547e3 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ MODDIR = $(DESTDIR)/lib/modules KVERS = $(shell uname -r) KVER = $(KVERS) VMODDIR = $(MODDIR)/$(KVER) -INSTDIR = $(VMODDIR)/kernel/drivers/misc/omnibook +INSTDIR = extra #KSRC = /usr/src/linux KSRC = $(VMODDIR)/build KMODDIR = $(KSRC)/drivers/misc/omnibook @@ -68,9 +68,10 @@ clean: install: all - # Removing module from old location + # Removing module from old possible locations $(RM) $(VMODDIR)/kernel/drivers/char/$(MODULE_NAME).ko - make -C $(KSRC) M=$(PWD) modules_install + $(RM) $(VMODDIR)/kernel/drivers/misc/$(MODULE_NAME).ko + make INSTALL_MOD_PATH=$(DESTDIR) INSTALL_MOD_DIR=$(INSTDIR) -C $(KSRC) M=$(PWD) modules_install unload: $(RMMOD) $(MODULE_NAME) || : diff --git a/debian/rules b/debian/rules index bb43e5f..d9a4b5d 100755 --- a/debian/rules +++ b/debian/rules @@ -85,15 +85,15 @@ build-arch-stamp: binary-modules: prep-deb-files dh_testroot dh_clean -k - dh_installdirs lib/modules/$(KVERS)/kernel/drivers/misc/omnibook + dh_installdirs lib/modules/$(KVERS)/extra # Build the module #$(MAKE) -C drivers KERNEL_DIR=$(KSRC) KVERS=$(KVERS) $(MAKE) KSRC=$(KSRC) KVERS=$(KVERS) # Install the module - $(MAKE) install KSRC=$(KSRC) DESTDIR=$(CURDIR)/debian/$(PKGNAME) DEPMOD="" - + $(MAKE) install KSRC=$(KSRC) DESTDIR=$(CURDIR)/debian/$(PKGNAME) INSTDIR=extra DEPMOD="" + dh_installdocs dh_installchangelogs dh_compress -- 2.43.5