From 5dc4e78acf6352d9ae7c7d7062ee3fc4611a648b Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Fri, 7 Apr 2006 08:36:49 +0200 Subject: [PATCH] --- yaml --- r: 25646 b: refs/heads/master c: d9df92e22aca939857c5bc9ecb130ef22307ccc1 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/Kbuild.include | 5 +++++ trunk/scripts/Makefile.lib | 5 ----- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 5a8661474b4b..c705b4bd60ab 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7d2d8fe0cb88914d26219db51341d780a032b198 +refs/heads/master: d9df92e22aca939857c5bc9ecb130ef22307ccc1 diff --git a/trunk/scripts/Kbuild.include b/trunk/scripts/Kbuild.include index 59620b1554e0..b0d067be7390 100644 --- a/trunk/scripts/Kbuild.include +++ b/trunk/scripts/Kbuild.include @@ -87,6 +87,11 @@ cc-ifversion = $(shell if [ $(call cc-version, $(CC)) $(1) $(2) ]; then \ # $(Q)$(MAKE) $(build)=dir build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj +# Prefix -I with $(srctree) if it is not an absolute path +addtree = $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1))) $(1) +# Find all -I options and call addtree +flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o))) + # If quiet is set, only print short version of command cmd = @$(echo-cmd) $(cmd_$(1)) diff --git a/trunk/scripts/Makefile.lib b/trunk/scripts/Makefile.lib index 550798f57da5..2cb4935e85d1 100644 --- a/trunk/scripts/Makefile.lib +++ b/trunk/scripts/Makefile.lib @@ -99,11 +99,6 @@ __a_flags = $(_a_flags) __cpp_flags = $(_cpp_flags) else -# Prefix -I with $(srctree) if it is not an absolute path -addtree = $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1))) $(1) -# Find all -I options and call addtree -flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o))) - # -I$(obj) locates generated .h files # $(call addtree,-I$(obj)) locates .h files in srctree, from generated .c files # and locates generated .h files