X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=scripts%2FMakefile.lib;h=2cb4935e85d1b0a8d3638783a8bd964489f984c1;hb=1d31a4ea8cf7a2afc7299d1d3d8732ca54a5934e;hp=550798f57da5028401f05f67f9e483c6e6a2beda;hpb=9fdb62af92c741addbea15545f214a6e89460865;p=powerpc.git diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 550798f57d..2cb4935e85 100644 --- a/scripts/Makefile.lib +++ b/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