* [PATCH] kbuild: Add the source tree path to the Makefile.gcc-plugins path
@ 2017-02-06 6:57 Matti Aaltonen
2017-03-11 5:41 ` Masahiro Yamada
0 siblings, 1 reply; 2+ messages in thread
From: Matti Aaltonen @ 2017-02-06 6:57 UTC (permalink / raw)
To: linux-kbuild; +Cc: mmarek, Matti Aaltonen
Make sure that the Makefile.gcc-plugins is found also when
the build is not started from the kernel root directory.
Signed-off-by: Matti Aaltonen <matti.aaltonen@darkmatter.ae>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 96b27a8..d085504 100644
--- a/Makefile
+++ b/Makefile
@@ -651,7 +651,7 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
# Tell gcc to never replace conditional load with a non-conditional one
KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
-include scripts/Makefile.gcc-plugins
+include $(srctree)/scripts/Makefile.gcc-plugins
ifdef CONFIG_READABLE_ASM
# Disable optimizations that make assembler listings hard to read.
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kbuild: Add the source tree path to the Makefile.gcc-plugins path
2017-02-06 6:57 [PATCH] kbuild: Add the source tree path to the Makefile.gcc-plugins path Matti Aaltonen
@ 2017-03-11 5:41 ` Masahiro Yamada
0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2017-03-11 5:41 UTC (permalink / raw)
To: Matti Aaltonen; +Cc: Linux Kbuild mailing list, Michal Marek, Matti Aaltonen
Hi Matti,
2017-02-06 15:57 GMT+09:00 Matti Aaltonen <matti.aaltonen@unikie.com>:
> Make sure that the Makefile.gcc-plugins is found also when
> the build is not started from the kernel root directory.
>
> Signed-off-by: Matti Aaltonen <matti.aaltonen@darkmatter.ae>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index 96b27a8..d085504 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -651,7 +651,7 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
> # Tell gcc to never replace conditional load with a non-conditional one
> KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
>
> -include scripts/Makefile.gcc-plugins
> +include $(srctree)/scripts/Makefile.gcc-plugins
>
> ifdef CONFIG_READABLE_ASM
> # Disable optimizations that make assembler listings hard to read.
> --
Kbuild does not require $(srctree) for include directives.
Please see the following line in the top-level Makefile.
# o Look for make include files relative to root of kernel src
MAKEFLAGS += -rR --include-dir=$(CURDIR)
Or, do you have any problem without this patch?
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-11 5:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-06 6:57 [PATCH] kbuild: Add the source tree path to the Makefile.gcc-plugins path Matti Aaltonen
2017-03-11 5:41 ` Masahiro Yamada
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.