tools build: Use .s extension for preprocessed assembler code
authorMasahiro Yamada <[email protected]>
Sun, 31 Jan 2016 17:59:00 +0000 (02:59 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 3 Mar 2016 14:10:37 +0000 (11:10 -0300)
The "man gcc" says .i extension represents the file is C source code
that should not be preprocessed.  Here, .s should be used.

For clarification,
  .c  ---(preprocess)--->  .i
  .S  ---(preprocess)--->  .s

Signed-off-by: Masahiro Yamada <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Aaro Koskinen <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Lukas Wunner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/build/Makefile.build

index 4a96473b180f938b038d5e698f3578876eb7c70c..ee566e8bd1cff56efde9200bf4a76caa840669f1 100644 (file)
@@ -85,7 +85,7 @@ $(OUTPUT)%.i: %.c FORCE
        $(call rule_mkdir)
        $(call if_changed_dep,cc_i_c)
 
-$(OUTPUT)%.i: %.S FORCE
+$(OUTPUT)%.s: %.S FORCE
        $(call rule_mkdir)
        $(call if_changed_dep,cc_i_c)