diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-04-20 14:23:07 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-04-20 14:23:07 +0000 |
commit | 68ebb219420444aaa25cd533d9cb6e926db33c44 (patch) | |
tree | 005598418ff9efab6679630f7d0d323554061bca /Makefile | |
parent | 04cd57014c36e8cff7b47df8ce472486c63d8865 (diff) |
allow modules to be built and _installed_ against any installed kernel (bug #4054)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@628 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -72,7 +72,7 @@ BINS=ztcfg torisatool makefw ztmonitor ztspeed $(ZTTOOL) zttest fxotune PRIMARY=torisa #PRIMARY=wcfxo PWD=$(shell pwd) -KERNEL_SOURCE?=/lib/modules/`uname -r`/build +KERNEL_SOURCE?=/lib/modules/`uname -r` all: $(BUILDVER) $(LIBTONEZONE) @@ -81,7 +81,7 @@ linux24: $(MODULESO) $(BINS) linux26: linux26: prereq $(BINS) @if ! [ -d $(KERNEL_SOURCE) ]; then echo "You do not appear to have the kernel sources for your current kernel installed."; exit 1 ; fi - make -C $(KERNEL_SOURCE) SUBDIRS=$(PWD) modules + make -C $(KERNEL_SOURCE)/build SUBDIRS=$(PWD) modules obj-m := $(MODULESO) ztdummy.o @@ -284,20 +284,20 @@ install: all devices if [ -f zaptel.ko ]; then \ for x in $(MODULESKO) ztdummy.ko; do \ - install -D -m 644 $$x $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc/$$x ; \ + install -D -m 644 $$x $(INSTALL_PREFIX)/$(KERNEL_SOURCE)/misc/$$x ; \ done; \ if ! [ -f wcfxsusb.ko ]; then \ - rm -f $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc/wcfxsusb.ko; \ + rm -f $(INSTALL_PREFIX)/$(KERNEL_SOURCE)/misc/wcfxsusb.ko; \ fi; \ - rm -f $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc/wcfxs.ko; \ + rm -f $(INSTALL_PREFIX)/$(KERNEL_SOURCE)/misc/wcfxs.ko; \ else \ for x in $(MODULESO); do \ - install -D -m 644 $$x $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc/$$x ; \ + install -D -m 644 $$x $(INSTALL_PREFIX)/$(KERNEL_SOURCE)/misc/$$x ; \ done; \ if ! [ -f wcfxsusb.o ]; then \ - rm -f $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc/wcfxsusb.o; \ + rm -f $(INSTALL_PREFIX)/$(KERNEL_SOURCE)/misc/wcfxsusb.o; \ fi; \ - rm -f $(INSTALL_PREFIX)/lib/modules/`uname -r`/misc/wcfxs.o; \ + rm -f $(INSTALL_PREFIX)/$(KERNEL_SOURCE)/misc/wcfxs.o; \ fi install -D -m 755 $(LIBTONEZONE) $(INSTALL_PREFIX)/usr/lib/$(LIBTONEZONE) |