diff options
| -rw-r--r-- | scripts/Kbuild.include | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 0f82314621f2..f8b45eb47ed3 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
| @@ -202,7 +202,7 @@ hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj | |||
| 202 | # Prefix -I with $(srctree) if it is not an absolute path. | 202 | # Prefix -I with $(srctree) if it is not an absolute path. |
| 203 | # skip if -I has no parameter | 203 | # skip if -I has no parameter |
| 204 | addtree = $(if $(patsubst -I%,%,$(1)), \ | 204 | addtree = $(if $(patsubst -I%,%,$(1)), \ |
| 205 | $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1))) $(1)) | 205 | $(if $(filter-out -I/% -I../%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1))) $(1)) |
| 206 | 206 | ||
| 207 | # Find all -I options and call addtree | 207 | # Find all -I options and call addtree |
| 208 | flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o))) | 208 | flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o))) |
