From: Baoquan He Date: Mon, 13 Oct 2014 22:53:37 +0000 (-0700) Subject: arch/x86/purgatory/Makefile: try to use automatic variable in kexec purgatory makefile X-Git-Tag: v4.14-rc1~6659^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=887f4f8666960dcf8c13d516ff3e4311353f3206;p=platform%2Fkernel%2Flinux-rpi.git arch/x86/purgatory/Makefile: try to use automatic variable in kexec purgatory makefile Make the Makefile of kexec purgatory be consistent with others in linux src tree, and make it look generic and simple. Signed-off-by: Baoquan He Cc: Vivek Goyal Cc: H. Peter Anvin Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Stephen Rothwell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 899dd24..f52e033 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -18,8 +18,9 @@ $(obj)/purgatory.ro: $(PURGATORY_OBJS) FORCE targets += kexec-purgatory.c +CMD_BIN2C = $(objtree)/scripts/basic/bin2c quiet_cmd_bin2c = BIN2C $@ - cmd_bin2c = cat $(obj)/purgatory.ro | $(objtree)/scripts/basic/bin2c kexec_purgatory > $(obj)/kexec-purgatory.c + cmd_bin2c = $(CMD_BIN2C) kexec_purgatory < $< > $@ $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE $(call if_changed,bin2c)