kbuild: rename cmd_cc_i_c to cmd_cpp_i_c
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 8 Apr 2016 02:24:47 +0000 (11:24 +0900)
committerMichal Marek <mmarek@suse.com>
Wed, 20 Apr 2016 08:48:19 +0000 (10:48 +0200)
This command just preprocesses .c files into .i files, so cmd_cpp_i_c
seems more suitable.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
scripts/Makefile.build
tools/build/Makefile.build

index 12821d9eae85df6ea7cecb4bcd6efebb55e3ea72..13f606ba2a3b2211e3a615bb2b0256922d303d2a 100644 (file)
@@ -152,11 +152,11 @@ cmd_cc_s_c       = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $<
 $(obj)/%.s: $(src)/%.c FORCE
        $(call if_changed_dep,cc_s_c)
 
-quiet_cmd_cc_i_c = CPP $(quiet_modtag) $@
-cmd_cc_i_c       = $(CPP) $(c_flags)   -o $@ $<
+quiet_cmd_cpp_i_c = CPP $(quiet_modtag) $@
+cmd_cpp_i_c       = $(CPP) $(c_flags) -o $@ $<
 
 $(obj)/%.i: $(src)/%.c FORCE
-       $(call if_changed_dep,cc_i_c)
+       $(call if_changed_dep,cpp_i_c)
 
 cmd_gensymtypes =                                                           \
     $(CPP) -D__GENKSYMS__ $(c_flags) $< |                                   \
index ee566e8bd1cff56efde9200bf4a76caa840669f1..27f3583193e69d4f6cd310fa1c94d8883cdf5f1c 100644 (file)
@@ -58,8 +58,8 @@ quiet_cmd_mkdir = MKDIR    $(dir $@)
 quiet_cmd_cc_o_c = CC       $@
       cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<
 
-quiet_cmd_cc_i_c = CPP      $@
-      cmd_cc_i_c = $(CC) $(c_flags) -E -o $@ $<
+quiet_cmd_cpp_i_c = CPP      $@
+      cmd_cpp_i_c = $(CC) $(c_flags) -E -o $@ $<
 
 quiet_cmd_cc_s_c = AS       $@
       cmd_cc_s_c = $(CC) $(c_flags) -S -o $@ $<
@@ -83,11 +83,11 @@ $(OUTPUT)%.o: %.S FORCE
 
 $(OUTPUT)%.i: %.c FORCE
        $(call rule_mkdir)
-       $(call if_changed_dep,cc_i_c)
+       $(call if_changed_dep,cpp_i_c)
 
 $(OUTPUT)%.s: %.S FORCE
        $(call rule_mkdir)
-       $(call if_changed_dep,cc_i_c)
+       $(call if_changed_dep,cpp_i_c)
 
 $(OUTPUT)%.s: %.c FORCE
        $(call rule_mkdir)