Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: boot: do not include $(cpp_flags) for preprocessing ITS

$(CPP) is used here to perform macro replacement in ITS. Do not
pass $(cpp_flags) because it pulls in more options for dependency
file generation etc. but none of which is necessary here. ITS files
do not include any header file, so $(call if_change,...) is enough.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Patchwork: https://patchwork.linux-mips.org/patch/19093/
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: linux-kernel@vger.kernel.org

authored by

Masahiro Yamada and committed by
Paul Burton
321f95b6 902b923d

+6 -6
+6 -6
arch/mips/boot/Makefile
··· 125 125 $(call if_changed,its_cat) 126 126 127 127 quiet_cmd_cpp_its_S = ITS $@ 128 - cmd_cpp_its_S = $(CPP) $(cpp_flags) -P -C -o $@ $< \ 128 + cmd_cpp_its_S = $(CPP) -P -C -o $@ $< \ 129 129 -DKERNEL_NAME="\"Linux $(KERNELRELEASE)\"" \ 130 130 -DVMLINUX_BINARY="\"$(3)\"" \ 131 131 -DVMLINUX_COMPRESSION="\"$(2)\"" \ ··· 135 135 -DADDR_CELLS=$(itb_addr_cells) 136 136 137 137 $(obj)/vmlinux.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE 138 - $(call if_changed_dep,cpp_its_S,none,vmlinux.bin) 138 + $(call if_changed,cpp_its_S,none,vmlinux.bin) 139 139 140 140 $(obj)/vmlinux.gz.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE 141 - $(call if_changed_dep,cpp_its_S,gzip,vmlinux.bin.gz) 141 + $(call if_changed,cpp_its_S,gzip,vmlinux.bin.gz) 142 142 143 143 $(obj)/vmlinux.bz2.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE 144 - $(call if_changed_dep,cpp_its_S,bzip2,vmlinux.bin.bz2) 144 + $(call if_changed,cpp_its_S,bzip2,vmlinux.bin.bz2) 145 145 146 146 $(obj)/vmlinux.lzma.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE 147 - $(call if_changed_dep,cpp_its_S,lzma,vmlinux.bin.lzma) 147 + $(call if_changed,cpp_its_S,lzma,vmlinux.bin.lzma) 148 148 149 149 $(obj)/vmlinux.lzo.its: $(obj)/vmlinux.its.S $(VMLINUX) FORCE 150 - $(call if_changed_dep,cpp_its_S,lzo,vmlinux.bin.lzo) 150 + $(call if_changed,cpp_its_S,lzo,vmlinux.bin.lzo) 151 151 152 152 quiet_cmd_itb-image = ITB $@ 153 153 cmd_itb-image = \