James Nelson | 3 May 2006 00:34
Picon

[PATCH] kbuild: Fix "make xconfig" failure in 2.4.33-pre2

diff -urpN linux-2.4.33-pre2-original/drivers/input/Config.in linux-2.4.33-pre2/drivers/input/Config.in
--- linux-2.4.33-pre2-original/drivers/input/Config.in	2006-04-22 15:52:47.000000000 -0400
+++ linux-2.4.33-pre2/drivers/input/Config.in	2006-04-22 15:53:32.000000000 -0400
 <at>  <at>  -8,7 +8,7  <at>  <at>  comment 'Input core support'
 tristate 'Input core support' CONFIG_INPUT
 dep_tristate '  Keyboard support' CONFIG_INPUT_KEYBDEV $CONFIG_INPUT

-if [ "$CONFIG_INPUT_KEYBDEV" == "n" ]; then
+if [ "$CONFIG_INPUT_KEYBDEV" = "n" ]; then
 	bool '  Use dummy keyboard driver' CONFIG_DUMMY_KEYB $CONFIG_INPUT
 fi

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Theodore Ts'o | 22 May 2006 01:06
Picon
Picon
Favicon
Gravatar

[PATCH, RFC] Add option for stripping modules while installing them


This function adds support for stripping modules while they are being
installed.  CONFIG_DEBUG_KERNEL (which will probably become more
popular as developers use kdump) causes the size of the installed
modules to grow by a factor of 9 or so.  

Some kernel package systems solve this problem by stripping the debug
information from /lib/modules after running "make modules_install",
but that may not work for people who are installing directly into
/lib/modules --- root partitions that were sized to handle 16 megs
worth of modules may not be quite so happy with 145 megs of modules,
so the "make modules_install" never succeeds.

This patch allows such users to request modules_install to strip the
modules as they are installed.

Signed-off-by: "Theodore Ts'o" <tytso <at> mit.edu>

Index: linux-2.6/Makefile
===================================================================
--- linux-2.6.orig/Makefile	2006-04-28 21:16:50.000000000 -0400
+++ linux-2.6/Makefile	2006-05-21 19:01:06.000000000 -0400
 <at>  <at>  -518,6 +518,23  <at>  <at> 
 MODLIB	= $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
 export MODLIB

+#
+#  INSTALL_MOD_STRIP, if defined, will cause modules to be
+#  stripped after they are installed.  If INSTALL_MOD_STRIP is '1', then
+#  the default option --strip-debug will be used.  Otherwise,
(Continue reading)

Dustin Kirkland | 23 May 2006 19:20
Picon
Favicon

[PATCH 1/1] Minor changes to allow static analysis checkers besides sparse

Minor changes to allow static analysis checkers besides sparse

This patch allows CHECK and CHECKFLAGS to be passed in on the make
invocation, such that one could specify a checker other than sparse,
and/or different flags.  The current values of CHECK and CHECKFLAGS
remain as defaults thereby preserving backwards compatibility with the
simple "make C=1" scenario.  

This is useful for several reasons:
        - using checkers besides sparse
        - specifying a different version of sparse
        - overriding sparse's flags with custom ones
        - passing a different checker's flags

Note that the CHECK assignment was easily replaced with ?= but the
CHECKFLAGS assigned used := for the $(CF) variable, and as there is
no ?:= assignment, an ifndef was used.

Signed-off-by: Dustin Kirkland <dustin.kirkland <at> us.ibm.com>
---

diff -urpN linux-2.6.17-rc4-mm3/Makefile linux-2.6.17-rc4-mm3-checker/Makefile
--- linux-2.6.17-rc4-mm3/Makefile	2006-05-22 14:12:38.000000000 -0500
+++ linux-2.6.17-rc4-mm3-checker/Makefile	2006-05-23 12:10:22.000000000 -0500
 <at>  <at>  -41,8 +41,9  <at>  <at>  ifndef KBUILD_VERBOSE
   KBUILD_VERBOSE = 0
 endif

-# Call sparse as part of compilation of C files
-# Use 'make C=1' to enable sparse checking
(Continue reading)

Sam Ravnborg | 23 May 2006 22:17
Gravatar

Re: [PATCH 1/1] Minor changes to allow static analysis checkers besides sparse

On Tue, May 23, 2006 at 12:20:46PM -0500, Dustin Kirkland wrote:
> Minor changes to allow static analysis checkers besides sparse
> 
> This patch allows CHECK and CHECKFLAGS to be passed in on the make
> invocation, such that one could specify a checker other than sparse,
> and/or different flags. 
This is alread possible.
Try 
make C=1 CHECK=checker_executable CHECKFLAGS=....
from your example and see that it works.

The assignment:
foo := bar
will be overrided if you do:
make foo=viggo

But it will not be overridded if you have foo=sammy in your environment.

	Sam

-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
Dustin Kirkland | 23 May 2006 22:57
Picon
Favicon

Re: [PATCH 1/1] Minor changes to allow static analysis checkers besides sparse

On Tue, 2006-05-23 at 22:17 +0200, Sam Ravnborg wrote:
> On Tue, May 23, 2006 at 12:20:46PM -0500, Dustin Kirkland wrote:
> > Minor changes to allow static analysis checkers besides sparse
> > 
> > This patch allows CHECK and CHECKFLAGS to be passed in on the make
> > invocation, such that one could specify a checker other than sparse,
> > and/or different flags. 
> This is alread possible.
> Try 
> make C=1 CHECK=checker_executable CHECKFLAGS=....
> from your example and see that it works.

No kidding, yep...I just tried that and it worked like a charm.  Thanks.

The inline documentation was misleading.

How about this simple patch to more clearly enunciate this in the inline
Makefile documentation?

---
Minor documentation change on allowing checkers besides sparse

This patch cleans up a couple of mentions of sparse in the inline
toplevel Makefile documentation such that it's clear that other checkers
besides sparse can override CHECK and CHECKFLAGS.

Signed-off-by: Dustin Kirkland <dustin.kirkland <at> us.ibm.com>
---

diff -burpN linux-2.6.17-rc4-mm3/Makefile linux-2.6.17-rc4-mm3-checker/Makefile
(Continue reading)


Gmane