Re: [PATCH 2.6.13 1/20] aic94xx: Makefile

From: viro
Date: Fri Sep 09 2005 - 15:15:04 EST


On Sat, Sep 10, 2005 at 12:18:34AM +0400, Alexey Dobriyan wrote:
> On Fri, Sep 09, 2005 at 03:32:05PM -0400, Luben Tuikov wrote:
> > --- linux-2.6.13-orig/drivers/scsi/aic94xx/Makefile
> > +++ linux-2.6.13/drivers/scsi/aic94xx/Makefile
>
> > +CHECK = sparse -Wbitwise
>
> make C=1 CHECK="sparse -Wbitwise"
> or
> make C=1
Or patch below and use make C=1 CF=-Wbitwise...

Allows to add to sparse arguments without mutilating makefiles - just
pass CF=<arguments> and they will be added to CHECKFLAGS.

Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
----
diff -urN RC13-git7-kconfig/Makefile RC13-git7-CHECKFLAGS/Makefile
--- RC13-git7-kconfig/Makefile 2005-09-07 13:54:44.000000000 -0400
+++ RC13-git7-CHECKFLAGS/Makefile 2005-09-07 13:54:46.000000000 -0400
@@ -333,7 +333,7 @@
PERL = perl
CHECK = sparse

-CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__
+CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ $(CF)
MODFLAGS = -DMODULE
CFLAGS_MODULE = $(MODFLAGS)
AFLAGS_MODULE = $(MODFLAGS)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/