diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Kbuild.include | 4 | ||||
-rw-r--r-- | scripts/mod/Makefile | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index ce53639a864a..8aeb60eb6ee3 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include | |||
@@ -115,7 +115,9 @@ __cc-option = $(call try-run,\ | |||
115 | 115 | ||
116 | # Do not attempt to build with gcc plugins during cc-option tests. | 116 | # Do not attempt to build with gcc plugins during cc-option tests. |
117 | # (And this uses delayed resolution so the flags will be up to date.) | 117 | # (And this uses delayed resolution so the flags will be up to date.) |
118 | CC_OPTION_CFLAGS = $(filter-out $(GCC_PLUGINS_CFLAGS),$(KBUILD_CFLAGS)) | 118 | # In addition, do not include the asm macros which are built later. |
119 | CC_OPTION_FILTERED = $(GCC_PLUGINS_CFLAGS) $(ASM_MACRO_FLAGS) | ||
120 | CC_OPTION_CFLAGS = $(filter-out $(CC_OPTION_FILTERED),$(KBUILD_CFLAGS)) | ||
119 | 121 | ||
120 | # cc-option | 122 | # cc-option |
121 | # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) | 123 | # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) |
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile index 42c5d50f2bcc..a5b4af47987a 100644 --- a/scripts/mod/Makefile +++ b/scripts/mod/Makefile | |||
@@ -4,6 +4,8 @@ OBJECT_FILES_NON_STANDARD := y | |||
4 | hostprogs-y := modpost mk_elfconfig | 4 | hostprogs-y := modpost mk_elfconfig |
5 | always := $(hostprogs-y) empty.o | 5 | always := $(hostprogs-y) empty.o |
6 | 6 | ||
7 | CFLAGS_REMOVE_empty.o := $(ASM_MACRO_FLAGS) | ||
8 | |||
7 | modpost-objs := modpost.o file2alias.o sumversion.o | 9 | modpost-objs := modpost.o file2alias.o sumversion.o |
8 | 10 | ||
9 | devicetable-offsets-file := devicetable-offsets.h | 11 | devicetable-offsets-file := devicetable-offsets.h |