Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.7 /Makefile

Filename:/Makefile
Lines Added:24
Lines Deleted:12
Also changed in: (Previous) 2.6.7-rc3-bk7  2.6.7-rc3-bk6  2.6.7-rc3-bk5  2.6.7-rc3-bk4  2.6.7-rc3-bk3  2.6.7-rc3-bk2 
(Following) 2.6.7-bk1  2.6.7-bk2  2.6.7-bk3  2.6.7-bk4  2.6.7-bk5  2.6.7-bk6 

Location
[  2.6.7
   o  Makefile

Patch

diff -Nru a/Makefile b/Makefile
--- a/Makefile   Tue Jun 15 22:20:42 2004
+++ b/Makefile   Tue Jun 15 22:20:42 2004
@@ -1,6 +1,6 @@
 VERSION = 2
 PATCHLEVEL = 6
-SUBLEVEL = 6
+SUBLEVEL = 7
 EXTRAVERSION =
 NAME=Zonked Quokka
 
@@ -110,7 +110,7 @@
 $(filter-out _all,$(MAKECMDGOALS)) _all:
    $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT)      \
    KBUILD_SRC=$(CURDIR)        KBUILD_VERBOSE=$(KBUILD_VERBOSE)   \
-   KBUILD_CHECK=$(KBUILD_CHECK) KBUILD_EXTMOD=$(KBUILD_EXTMOD)     \
+   KBUILD_CHECK=$(KBUILD_CHECK) KBUILD_EXTMOD="$(KBUILD_EXTMOD)"   \
         -f $(CURDIR)/Makefile $@
 
 # Leave processing to above invocation of make
@@ -325,7 +325,7 @@
 # When compiling out-of-tree modules, put MODVERDIR in the module
 # tree rather than in the kernel tree. The kernel tree might
 # even be read-only.
-export MODVERDIR := $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/).tmp_versions
+export MODVERDIR := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/).tmp_versions
 
 # The temporary file to save gcc -MD generated dependencies must not
 # contain a comma
@@ -567,7 +567,7 @@
 kallsyms.o := .tmp_kallsyms2.o
 
 quiet_cmd_kallsyms = KSYM    $@
-cmd_kallsyms = $(NM) -n $< | $(KALLSYMS) > $@
+cmd_kallsyms = $(NM) -n $< | $(KALLSYMS) $(foreach x,$(CONFIG_KALLSYMS_ALL),--all-symbols) > $@
 
 .tmp_kallsyms1.o .tmp_kallsyms2.o: %.o: %.S scripts FORCE
    $(call if_changed_dep,as_o_S)
@@ -680,7 +680,7 @@
 uts_len := 64
 
 define filechk_version.h
-   if ((`echo -n "$(KERNELRELEASE)" | wc -c ` > $(uts_len))); then \
+   if [ `echo -n "$(KERNELRELEASE)" | wc -c ` -gt $(uts_len) ]; then \
      echo '"$(KERNELRELEASE)" exceeds $(uts_len) characters' >&2; \
      exit 1; \
    fi; \
@@ -904,6 +904,7 @@
    @echo  '  rpm        - Build a kernel as an RPM package'
    @echo  '  tags/TAGS     - Generate tags file for editors'
    @echo  '  cscope     - Generate cscope index'
+   @echo  '  checkstack      - Generate a list of stack hogs'
    @echo  ''
    @echo  'Documentation targets:'
    @$(MAKE) -f $(srctree)/Documentation/DocBook/Makefile dochelp
@@ -952,15 +953,15 @@
 # We are always building modules
 KBUILD_MODULES := 1
 .PHONY: crmodverdir
-crmodverdir: FORCE
+crmodverdir:
    $(Q)mkdir -p $(MODVERDIR)
 
-.PHONY: $(KBUILD_EXTMOD)
-$(KBUILD_EXTMOD): crmodverdir FORCE
-   $(Q)$(MAKE) $(build)=$@
+module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD))
+.PHONY: $(module-dirs) modules
+$(module-dirs): crmodverdir
+   $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@)
 
-.PHONY: modules
-modules: $(KBUILD_EXTMOD)
+modules: $(module-dirs)
    @echo '  Building modules, stage 2.';
    $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modpost
 
@@ -968,7 +969,7 @@
 modules_install:
    $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modinst
 
-clean-dirs := _clean_$(KBUILD_EXTMOD)
+clean-dirs := $(addprefix _clean_,$(KBUILD_EXTMOD))
 
 .PHONY: $(clean-dirs) clean
 $(clean-dirs):
@@ -1001,6 +1002,8 @@
           -name '*.[chS]' -print; \
      find arch/$(ARCH) $(RCS_FIND_IGNORE) \
           -name '*.[chS]' -print; \
+     find security/selinux/include $(RCS_FIND_IGNORE) \
+          -name '*.[chS]' -print; \
      find include $(RCS_FIND_IGNORE) \
           \( -name config -o -name 'asm-*' \) -prune \
           -o -name '*.[chS]' -print; \
@@ -1057,8 +1060,17 @@
       -name '*.[hcS]' -type f -print | sort \
       | xargs $(PERL) -w scripts/checkversion.pl
 
+buildcheck:
+   $(PERL) scripts/reference_discarded.pl
+   $(PERL) scripts/reference_init.pl
+
 endif #ifeq ($(config-targets),1)
 endif #ifeq ($(mixed-targets),1)
+
+.PHONY: checkstack
+checkstack:
+   $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
+   $(PERL) scripts/checkstack.pl $(ARCH)
 
 # FIXME Should go into a make.lib or something 
 # ===========================================================================


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.