Pham Ngoc Hai personal web site

Syndicate

Patch for vhba-module-1.0.0 Makefile
 
Written by Pham Ngoc Hai, on 11-01-2008 00:03

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)
--- 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

Last update: 15-03-2008 09:15

Published in : Computer stuff, *nix
Keywords : Patch for vhba-module Makefile, warning: jobserver unavailable: using -j1. Add `+' to parent make rule
Quote this article in website Favoured Print Send to friend Related articles Save this to del.icio.us

Users' Comments (0) RSS feed comment

No comment posted

Add your comment



mXcomment 1.0.9 © 2007-2010 - visualclinic.fr
License Creative Commons - Some rights reserved
< Prev


Search

Calendar

 Aug   September 2010   Oct

SMTWTFS
   1  2  3  4
  5  6  7  8  91011
12131415161718
19202122232425
2627282930 
Techies Resources High Level Synthesis

Random Photos






Donate

Enter Amount:

Sponsored Links

Copyright © 2007 Joomla Templates By Joomladesigns.  Modified By Pham Ngoc Hai