diff options
author | Len Brown <len.brown@intel.com> | 2005-12-06 17:31:30 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-12-06 17:31:30 -0500 |
commit | 3d5271f9883cba7b54762bc4fe027d4172f06db7 (patch) | |
tree | ab8a881a14478598a0c8bda0d26c62cdccfffd6d /Makefile | |
parent | 378b2556f4e09fa6f87ff0cb5c4395ff28257d02 (diff) | |
parent | 9115a6c787596e687df03010d97fccc5e0762506 (diff) |
Pull release into acpica branch
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 42 |
1 files changed, 26 insertions, 16 deletions
@@ -1,7 +1,7 @@ | |||
1 | VERSION = 2 | 1 | VERSION = 2 |
2 | PATCHLEVEL = 6 | 2 | PATCHLEVEL = 6 |
3 | SUBLEVEL = 14 | 3 | SUBLEVEL = 15 |
4 | EXTRAVERSION =-rc2 | 4 | EXTRAVERSION =-rc5 |
5 | NAME=Affluent Albatross | 5 | NAME=Affluent Albatross |
6 | 6 | ||
7 | # *DOCUMENTATION* | 7 | # *DOCUMENTATION* |
@@ -168,7 +168,8 @@ KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION) | |||
168 | 168 | ||
169 | SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ | 169 | SUBARCH := $(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 | |||
334 | PERL = perl | 335 | PERL = perl |
335 | CHECK = sparse | 336 | CHECK = sparse |
336 | 337 | ||
337 | CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ $(CF) | 338 | CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ -Wbitwise $(CF) |
338 | MODFLAGS = -DMODULE | 339 | MODFLAGS = -DMODULE |
339 | CFLAGS_MODULE = $(MODFLAGS) | 340 | CFLAGS_MODULE = $(MODFLAGS) |
340 | AFLAGS_MODULE = $(MODFLAGS) | 341 | AFLAGS_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 |
348 | LINUXINCLUDE := -Iinclude \ | 349 | LINUXINCLUDE := -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 | ||
351 | CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE) | 353 | CPPFLAGS := -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 | ||
374 | RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc -o -name .hg \) -prune -o | 376 | RCS_FIND_IGNORE := \( -name SCCS -o -name BitKeeper -o -name .svn -o -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o |
375 | RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CVS --exclude .pc --exclude .hg | 377 | export 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 | ||
408 | no-dot-config-targets := clean mrproper distclean \ | 410 | no-dot-config-targets := clean mrproper distclean \ |
409 | cscope TAGS tags help %docs check% | 411 | cscope TAGS tags help %docs check% kernelrelease |
410 | 412 | ||
411 | config-targets := 0 | 413 | config-targets := 0 |
412 | mixed-targets := 0 | 414 | mixed-targets := 0 |
@@ -582,7 +584,7 @@ export MODLIB | |||
582 | 584 | ||
583 | 585 | ||
584 | ifeq ($(KBUILD_EXTMOD),) | 586 | ifeq ($(KBUILD_EXTMOD),) |
585 | core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ | 587 | core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ |
586 | 588 | ||
587 | vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \ | 589 | vmlinux-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 | ||
664 | define rule_vmlinux__ | 667 | define 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)/ |
1190 | endif | 1194 | endif |
1191 | 1195 | ||
1196 | ifeq ($(ALLSOURCE_ARCHS),) | ||
1197 | ifeq ($(ARCH),um) | ||
1198 | ALLINCLUDE_ARCHS := $(ARCH) $(SUBARCH) | ||
1199 | else | ||
1200 | ALLINCLUDE_ARCHS := $(ARCH) | ||
1201 | endif | ||
1202 | else | ||
1203 | #Allow user to specify only ALLSOURCE_PATHS on the command line, keeping existing behaviour. | ||
1204 | ALLINCLUDE_ARCHS := $(ALLSOURCE_ARCHS) | ||
1205 | endif | ||
1206 | |||
1192 | ALLSOURCE_ARCHS := $(ARCH) | 1207 | ALLSOURCE_ARCHS := $(ARCH) |
1193 | 1208 | ||
1194 | define all-sources | 1209 | define 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 | ||
1250 | configcheck: | ||
1251 | find * $(RCS_FIND_IGNORE) \ | ||
1252 | -name '*.[hcS]' -type f -print | sort \ | ||
1253 | | xargs $(PERL) -w scripts/checkconfig.pl | ||
1254 | |||
1255 | includecheck: | 1265 | includecheck: |
1256 | find * $(RCS_FIND_IGNORE) \ | 1266 | find * $(RCS_FIND_IGNORE) \ |
1257 | -name '*.[hcS]' -type f -print | sort \ | 1267 | -name '*.[hcS]' -type f -print | sort \ |