aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2005-12-06 17:31:30 -0500
committerLen Brown <len.brown@intel.com>2005-12-06 17:31:30 -0500
commit3d5271f9883cba7b54762bc4fe027d4172f06db7 (patch)
treeab8a881a14478598a0c8bda0d26c62cdccfffd6d /Makefile
parent378b2556f4e09fa6f87ff0cb5c4395ff28257d02 (diff)
parent9115a6c787596e687df03010d97fccc5e0762506 (diff)
Pull release into acpica branch
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 26 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 8cf6becf68dc..b1c458c2522d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 14 3SUBLEVEL = 15
4EXTRAVERSION =-rc2 4EXTRAVERSION =-rc5
5NAME=Affluent Albatross 5NAME=Affluent Albatross
6 6
7# *DOCUMENTATION* 7# *DOCUMENTATION*
@@ -168,7 +168,8 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)
168 168
169SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ 169SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
170 -e s/arm.*/arm/ -e s/sa110/arm/ \ 170 -e s/arm.*/arm/ -e s/sa110/arm/ \
171 -e s/s390x/s390/ -e s/parisc64/parisc/ ) 171 -e s/s390x/s390/ -e s/parisc64/parisc/ \
172 -e s/ppc64/powerpc/ )
172 173
173# Cross compiling and selecting different set of gcc/bin-utils 174# Cross compiling and selecting different set of gcc/bin-utils
174# --------------------------------------------------------------------------- 175# ---------------------------------------------------------------------------
@@ -334,7 +335,7 @@ KALLSYMS = scripts/kallsyms
334PERL = perl 335PERL = perl
335CHECK = sparse 336CHECK = sparse
336 337
337CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ $(CF) 338CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF)
338MODFLAGS = -DMODULE 339MODFLAGS = -DMODULE
339CFLAGS_MODULE = $(MODFLAGS) 340CFLAGS_MODULE = $(MODFLAGS)
340AFLAGS_MODULE = $(MODFLAGS) 341AFLAGS_MODULE = $(MODFLAGS)
@@ -346,7 +347,8 @@ AFLAGS_KERNEL =
346# Use LINUXINCLUDE when you must reference the include/ directory. 347# Use LINUXINCLUDE when you must reference the include/ directory.
347# Needed to be compatible with the O= option 348# Needed to be compatible with the O= option
348LINUXINCLUDE := -Iinclude \ 349LINUXINCLUDE := -Iinclude \
349 $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) 350 $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
351 -include include/linux/autoconf.h
350 352
351CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) 353CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
352 354
@@ -371,8 +373,8 @@ export MODVERDIR := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/).tmp_ve
371 373
372# Files to ignore in find ... statements 374# Files to ignore in find ... statements
373 375
374RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc -o -name .hg \) -prune -o 376RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
375RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg 377export RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg --exclude .git
376 378
377# =========================================================================== 379# ===========================================================================
378# Rules shared between *config targets and build targets 380# Rules shared between *config targets and build targets
@@ -406,7 +408,7 @@ outputmakefile:
406# of make so .config is not included in this case either (for *config). 408# of make so .config is not included in this case either (for *config).
407 409
408no-dot-config-targets := clean mrproper distclean \ 410no-dot-config-targets := clean mrproper distclean \
409 cscope TAGS tags help %docs check% 411 cscope TAGS tags help %docs check% kernelrelease
410 412
411config-targets := 0 413config-targets := 0
412mixed-targets := 0 414mixed-targets := 0
@@ -582,7 +584,7 @@ export MODLIB
582 584
583 585
584ifeq ($(KBUILD_EXTMOD),) 586ifeq ($(KBUILD_EXTMOD),)
585core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ 587core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/
586 588
587vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ 589vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
588 $(core-y) $(core-m) $(drivers-y) $(drivers-m) \ 590 $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
@@ -660,8 +662,10 @@ quiet_cmd_sysmap = SYSMAP
660# Link of vmlinux 662# Link of vmlinux
661# If CONFIG_KALLSYMS is set .version is already updated 663# If CONFIG_KALLSYMS is set .version is already updated
662# Generate System.map and verify that the content is consistent 664# Generate System.map and verify that the content is consistent
663 665# Use + in front of the vmlinux_version rule to silent warning with make -j2
666# First command is ':' to allow us to use + in front of the rule
664define rule_vmlinux__ 667define rule_vmlinux__
668 :
665 $(if $(CONFIG_KALLSYMS),,+$(call cmd,vmlinux_version)) 669 $(if $(CONFIG_KALLSYMS),,+$(call cmd,vmlinux_version))
666 670
667 $(call cmd,vmlinux__) 671 $(call cmd,vmlinux__)
@@ -1189,6 +1193,17 @@ else
1189__srctree = $(srctree)/ 1193__srctree = $(srctree)/
1190endif 1194endif
1191 1195
1196ifeq ($(ALLSOURCE_ARCHS),)
1197ifeq ($(ARCH),um)
1198ALLINCLUDE_ARCHS := $(ARCH) $(SUBARCH)
1199else
1200ALLINCLUDE_ARCHS := $(ARCH)
1201endif
1202else
1203#Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behaviour.
1204ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS)
1205endif
1206
1192ALLSOURCE_ARCHS := $(ARCH) 1207ALLSOURCE_ARCHS := $(ARCH)
1193 1208
1194define all-sources 1209define all-sources
@@ -1204,7 +1219,7 @@ define all-sources
1204 find $(__srctree)include $(RCS_FIND_IGNORE) \ 1219 find $(__srctree)include $(RCS_FIND_IGNORE) \
1205 \( -name config -o -name 'asm-*' \) -prune \ 1220 \( -name config -o -name 'asm-*' \) -prune \
1206 -o -name '*.[chS]' -print; \ 1221 -o -name '*.[chS]' -print; \
1207 for ARCH in $(ALLSOURCE_ARCHS) ; do \ 1222 for ARCH in $(ALLINCLUDE_ARCHS) ; do \
1208 find $(__srctree)include/asm-$${ARCH} $(RCS_FIND_IGNORE) \ 1223 find $(__srctree)include/asm-$${ARCH} $(RCS_FIND_IGNORE) \
1209 -name '*.[chS]' -print; \ 1224 -name '*.[chS]' -print; \
1210 done ; \ 1225 done ; \
@@ -1247,11 +1262,6 @@ tags: FORCE
1247# Scripts to check various things for consistency 1262# Scripts to check various things for consistency
1248# --------------------------------------------------------------------------- 1263# ---------------------------------------------------------------------------
1249 1264
1250configcheck:
1251 find * $(RCS_FIND_IGNORE) \
1252 -name '*.[hcS]' -type f -print | sort \
1253 | xargs $(PERL) -w scripts/checkconfig.pl
1254
1255includecheck: 1265includecheck:
1256 find * $(RCS_FIND_IGNORE) \ 1266 find * $(RCS_FIND_IGNORE) \
1257 -name '*.[hcS]' -type f -print | sort \ 1267 -name '*.[hcS]' -type f -print | sort \