diff options
Diffstat (limited to 'scripts/Kbuild.include')
| -rw-r--r-- | scripts/Kbuild.include | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index cce31ee876b6..50cee534fd64 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -10,6 +10,7 @@ space := $(empty) $(empty) | |||
| 10 | space_escape := _-_SPACE_-_ | 10 | space_escape := _-_SPACE_-_ |
| 11 | right_paren := ) | 11 | right_paren := ) |
| 12 | left_paren := ( | 12 | left_paren := ( |
| 13 | pound := \# | ||
| 13 | 14 | ||
| 14 | ### | 15 | ### |
| 15 | # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o | 16 | # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o |
| @@ -322,11 +323,11 @@ endif | |||
| 322 | 323 | ||
| 323 | # Replace >$< with >$$< to preserve $ when reloading the .cmd file | 324 | # Replace >$< with >$$< to preserve $ when reloading the .cmd file |
| 324 | # (needed for make) | 325 | # (needed for make) |
| 325 | # Replace >#< with >\#< to avoid starting a comment in the .cmd file | 326 | # Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file |
| 326 | # (needed for make) | 327 | # (needed for make) |
| 327 | # Replace >'< with >'\''< to be able to enclose the whole string in '...' | 328 | # Replace >'< with >'\''< to be able to enclose the whole string in '...' |
| 328 | # (needed for the shell) | 329 | # (needed for the shell) |
| 329 | make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1))))) | 330 | make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1))))) |
| 330 | 331 | ||
| 331 | # Find any prerequisites that is newer than target or that does not exist. | 332 | # Find any prerequisites that is newer than target or that does not exist. |
| 332 | # PHONY targets skipped in both cases. | 333 | # PHONY targets skipped in both cases. |
