[Stgt-devel] use KERNELSRC from single Makefile
Ming Zhang
mingz at ele.uri.edu
Tue Sep 13 19:35:42 CEST 2005
--=-JukEufARRGDzVSD/1ziB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
use single KERNELSRC from one makefile.
Ming
--=-JukEufARRGDzVSD/1ziB
Content-Disposition: attachment; filename=tgt.make.patch
Content-Type: text/x-patch; name=tgt.make.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit
Index: kernel/Makefile
===================================================================
--- kernel/Makefile (revision 76)
+++ kernel/Makefile (working copy)
@@ -11,10 +11,6 @@
obj-m += tgt_vsd.o tgt_scsi.o
else
-ifeq ($(KERNELSRC),)
- KERNELSRC ?= /lib/modules/$(shell uname -r)/build
-endif
-
PWD := $(shell pwd)
default:
Index: iscsi/Makefile
===================================================================
--- iscsi/Makefile (revision 76)
+++ iscsi/Makefile (working copy)
@@ -7,14 +7,8 @@
#
# Note 2! The CFLAGS definitions are now in the main makefile.
-#export KERNELSRC := /usr/src/linux
-
SUBDIRS := $(shell pwd)
-ifeq ($(KERNELSRC),)
- KERNELSRC ?= /lib/modules/$(shell uname -r)/build
-endif
-
all: progs mods
mods:
Index: Makefile
===================================================================
--- Makefile (revision 76)
+++ Makefile (working copy)
@@ -1,3 +1,11 @@
+#KERNELSRC := /usr/src/linux
+
+ifeq ($(KERNELSRC),)
+ KERNELSRC ?= /lib/modules/$(shell uname -r)/build
+endif
+
+export KERNELSRC
+
all:
make -C usr
make -C kernel
--=-JukEufARRGDzVSD/1ziB--
More information about the stgt
mailing list