Re: [RFC PATCH 2/6] kbuild: let addtree result in absolute pathsonly

From: Jan Engelhardt
Date: Tue May 06 2008 - 03:37:05 EST



On Monday 2008-05-05 17:24, Peter Oberparleiter wrote:
>+++ linux-2.6.26-rc1/scripts/Kbuild.include
>@@ -144,7 +144,7 @@ ld-option = $(call try-run,\
> 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)
>+addtree = $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1)),$(1))

At least make it so that relative can be used whenever possible (e.g. on
!CONFIG_GCOV)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/