diff options
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r-- | scripts/Makefile.lib | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 2837adaa9850..95e6e0fbdbd0 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -86,7 +86,7 @@ modname_flags = $(if $(filter 1,$(words $(modname))),\ | |||
86 | 86 | ||
87 | _c_flags = $(KBUILD_CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(basetarget).o) | 87 | _c_flags = $(KBUILD_CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$(basetarget).o) |
88 | _a_flags = $(KBUILD_AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o) | 88 | _a_flags = $(KBUILD_AFLAGS) $(EXTRA_AFLAGS) $(AFLAGS_$(basetarget).o) |
89 | _cpp_flags = $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CPPFLAGS_$(@F)) | 89 | _cpp_flags = $(KBUILD_CPPFLAGS) $(EXTRA_CPPFLAGS) $(CPPFLAGS_$(@F)) |
90 | 90 | ||
91 | # If building the kernel in a separate objtree expand all occurrences | 91 | # If building the kernel in a separate objtree expand all occurrences |
92 | # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/'). | 92 | # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/'). |
@@ -106,11 +106,11 @@ __a_flags = $(call flags,_a_flags) | |||
106 | __cpp_flags = $(call flags,_cpp_flags) | 106 | __cpp_flags = $(call flags,_cpp_flags) |
107 | endif | 107 | endif |
108 | 108 | ||
109 | c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ | 109 | c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(KBUILD_CPPFLAGS) \ |
110 | $(__c_flags) $(modkern_cflags) \ | 110 | $(__c_flags) $(modkern_cflags) \ |
111 | -D"KBUILD_STR(s)=\#s" $(basename_flags) $(modname_flags) | 111 | -D"KBUILD_STR(s)=\#s" $(basename_flags) $(modname_flags) |
112 | 112 | ||
113 | a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ | 113 | a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(KBUILD_CPPFLAGS) \ |
114 | $(__a_flags) $(modkern_aflags) | 114 | $(__a_flags) $(modkern_aflags) |
115 | 115 | ||
116 | cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags) | 116 | cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags) |