diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-22 22:16:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-22 22:16:17 -0400 |
commit | 527da38d33f16da4c245da3a5a3858193f8a0261 (patch) | |
tree | 2ef190632d1f370e573f3f731e8051d7b9538c50 | |
parent | 5081dba6588a0c228821ede4635441f7758eb757 (diff) | |
parent | 631bcfbbc5be0d778a2513988a56e5bd53bfb495 (diff) |
Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild:
kbuild: cc-cross-prefix spelling
kbuild: allow depmod in cross builds again
kbuild: fix modules_install after a 'make vmlinux'
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 10 | ||||
-rw-r--r-- | Makefile | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 6166e2d7da76..7a7753321a26 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -519,17 +519,17 @@ more details, with real examples. | |||
519 | to the user why it stops. | 519 | to the user why it stops. |
520 | 520 | ||
521 | cc-cross-prefix | 521 | cc-cross-prefix |
522 | cc-cross-prefix is used to check if there exist a $(CC) in path with | 522 | cc-cross-prefix is used to check if there exists a $(CC) in path with |
523 | one of the listed prefixes. The first prefix where there exist a | 523 | one of the listed prefixes. The first prefix where there exist a |
524 | prefix$(CC) in the PATH is returned - and if no prefix$(CC) is found | 524 | prefix$(CC) in the PATH is returned - and if no prefix$(CC) is found |
525 | then nothing is returned. | 525 | then nothing is returned. |
526 | Additional prefixes are separated by a single space in the | 526 | Additional prefixes are separated by a single space in the |
527 | call of cc-cross-prefix. | 527 | call of cc-cross-prefix. |
528 | This functionality is usefull for architecture Makefile that try | 528 | This functionality is useful for architecture Makefiles that try |
529 | to set CROSS_COMPILE to well know values but may have several | 529 | to set CROSS_COMPILE to well-known values but may have several |
530 | values to select between. | 530 | values to select between. |
531 | It is recommended only to try to set CROSS_COMPILE is it is a cross | 531 | It is recommended only to try to set CROSS_COMPILE if it is a cross |
532 | build (host arch is different from target arch). And is CROSS_COMPILE | 532 | build (host arch is different from target arch). And if CROSS_COMPILE |
533 | is already set then leave it with the old value. | 533 | is already set then leave it with the old value. |
534 | 534 | ||
535 | Example: | 535 | Example: |
@@ -1505,15 +1505,16 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files)) | |||
1505 | # and we build for the host arch | 1505 | # and we build for the host arch |
1506 | quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) | 1506 | quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) |
1507 | cmd_depmod = \ | 1507 | cmd_depmod = \ |
1508 | if [ -r System.map -a -x $(DEPMOD) -a "$(SUBARCH)" = "$(ARCH)" ]; then \ | 1508 | if [ -r System.map -a -x $(DEPMOD) ]; then \ |
1509 | $(DEPMOD) -ae -F System.map \ | 1509 | $(DEPMOD) -ae -F System.map \ |
1510 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ | 1510 | $(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) -r) \ |
1511 | $(KERNELRELEASE); \ | 1511 | $(KERNELRELEASE); \ |
1512 | fi | 1512 | fi |
1513 | 1513 | ||
1514 | # Create temporary dir for module support files | 1514 | # Create temporary dir for module support files |
1515 | cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR); rm -f $(MODVERDIR)/* | 1515 | # clean it up only when building all modules |
1516 | 1516 | cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \ | |
1517 | $(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*) | ||
1517 | 1518 | ||
1518 | a_flags = -Wp,-MD,$(depfile) $(KBUILD_AFLAGS) $(AFLAGS_KERNEL) \ | 1519 | a_flags = -Wp,-MD,$(depfile) $(KBUILD_AFLAGS) $(AFLAGS_KERNEL) \ |
1519 | $(NOSTDINC_FLAGS) $(KBUILD_CPPFLAGS) \ | 1520 | $(NOSTDINC_FLAGS) $(KBUILD_CPPFLAGS) \ |