Patch for vhba-1.0.0 Makefile to use EXTRA_CFLAGS and correct MAKE value
If you see make prints warning like:
warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
then apply this patch.
(This only happen if this is a submake) [code]--- vhba-module-1.0.0/Makefile 2007-12-20 02:56:57.000000000 +0100
+++ vhba-module-new/Makefile 2008-01-10 21:59:56.000000000 +0100
@@ -1,21 +1,20 @@
VHBA_VERSION = 1.0.0
PACKAGE = vhba-module-$(VHBA_VERSION)
-CFLAGS += -DVHBA_VERSION=\"$(VHBA_VERSION)\"
+EXTRA_CFLAGS += -DVHBA_VERSION=\"$(VHBA_VERSION)\"
obj-m += vhba.o
PWD ?= `pwd`
KDIR := /lib/modules/`uname -r`/build
-KMAKE := $(MAKE) -C $(KDIR) M=$(PWD)
all: modules
modules:
- $(KMAKE) modules
+ $(MAKE) -C $(KDIR) M=$(PWD) modules
module_install:
- $(KMAKE) modules_install
+ $(MAKE) -C $(KDIR) M=$(PWD) modules_install
install: module_install
@@ -24,7 +23,7 @@
cp Makefile $(distdir)
clean:
- $(KMAKE) clean
+ $(MAKE) -C $(KDIR) M=$(PWD) clean
rm -fr $(PACKAGE)
dist: dist-gzip[/code]
Home
Patch for vhba-module-1.0.0 Makefile
- Details
- Written by Pham Ngoc Hai