From: Aurelio <sk...@us...> - 2006-07-20 18:24:12
|
Update of /cvsroot/zyxel630-11/amedyn/module In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv7211/module Modified Files: Makefile Log Message: By Mathias Gug (2004-01-24) https://sourceforge.net/tracker/index.php?func=detail&aid=883695&group_id=84006&atid=571424 This patch adds support for specifying an alternate root directory for the installation process. Also adds some new targets in the top level makefile, to make the compilation process completly independant from the installation process. Add support to configure against which kernel version module should be compiled. Index: Makefile =================================================================== RCS file: /cvsroot/zyxel630-11/amedyn/module/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Makefile 17 Jul 2006 14:46:57 -0000 1.4 --- Makefile 20 Jul 2006 18:24:10 -0000 1.5 *************** *** 3,11 **** # DEST_KERNEL = $(shell uname -r) DEST_KERNEL_MAIN = $(shell uname -r | cut -d'.' -f1-2) KERNEL_PATH = /lib/modules/$(DEST_KERNEL)/build #KERNEL_PATH = /usr/src/linux-2.6.0-0.test4.1.33 ! MODULE_PATH = /lib/modules/$(DEST_KERNEL)/kernel/drivers/usb # You need remove .config file from $(KERNEL_PATH) if you use CONFIG_PATH different of KERNEL_PATH or if you use CONFIG_NAME different of .config CONFIG_PATH = $(KERNEL_PATH) --- 3,18 ---- # + ifndef DEST_KERNEL DEST_KERNEL = $(shell uname -r) + endif + ifndef DEST_KERNEL_MAIN DEST_KERNEL_MAIN = $(shell uname -r | cut -d'.' -f1-2) + endif KERNEL_PATH = /lib/modules/$(DEST_KERNEL)/build #KERNEL_PATH = /usr/src/linux-2.6.0-0.test4.1.33 ! ifndef RPM_BUILD_ROOT ! RPM_BUILD_ROOT=/ ! endif ! MODULE_PATH = $(RPM_BUILD_ROOT)/lib/modules/$(DEST_KERNEL)/kernel/drivers/usb # You need remove .config file from $(KERNEL_PATH) if you use CONFIG_PATH different of KERNEL_PATH or if you use CONFIG_NAME different of .config CONFIG_PATH = $(KERNEL_PATH) |