diff options
Diffstat (limited to 'Documentation/kbuild/makefiles.txt')
| -rw-r--r-- | Documentation/kbuild/makefiles.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 048fc39a6b91..766355b1d221 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
| @@ -661,7 +661,7 @@ Both possibilities are described in the following. | |||
| 661 | 661 | ||
| 662 | When compiling host programs, it is possible to set specific flags. | 662 | When compiling host programs, it is possible to set specific flags. |
| 663 | The programs will always be compiled utilising $(HOSTCC) passed | 663 | The programs will always be compiled utilising $(HOSTCC) passed |
| 664 | the options specified in $(HOSTCFLAGS). | 664 | the options specified in $(KBUILD_HOSTCFLAGS). |
| 665 | To set flags that will take effect for all host programs created | 665 | To set flags that will take effect for all host programs created |
| 666 | in that Makefile, use the variable HOST_EXTRACFLAGS. | 666 | in that Makefile, use the variable HOST_EXTRACFLAGS. |
| 667 | 667 | ||
| @@ -1105,6 +1105,12 @@ When kbuild executes, the following steps are followed (roughly): | |||
| 1105 | target: source(s) FORCE | 1105 | target: source(s) FORCE |
| 1106 | #WRONG!# $(call if_changed, ld/objcopy/gzip/...) | 1106 | #WRONG!# $(call if_changed, ld/objcopy/gzip/...) |
| 1107 | 1107 | ||
| 1108 | Note: if_changed should not be used more than once per target. | ||
| 1109 | It stores the executed command in a corresponding .cmd | ||
| 1110 | file and multiple calls would result in overwrites and | ||
| 1111 | unwanted results when the target is up to date and only the | ||
| 1112 | tests on changed commands trigger execution of commands. | ||
| 1113 | |||
| 1108 | ld | 1114 | ld |
| 1109 | Link target. Often, LDFLAGS_$@ is used to set specific options to ld. | 1115 | Link target. Often, LDFLAGS_$@ is used to set specific options to ld. |
| 1110 | 1116 | ||
