mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] try to use automatic variable in kexec purgatory makefile
@ 2014-08-29  3:05 Baoquan He
  0 siblings, 0 replies; only message in thread
From: Baoquan He @ 2014-08-29  3:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: vgoyal, hpa, tglx, mingo, akpm, sfr, Baoquan He

This change makes the Makefile of kexec purgatory be consistent with
others in linux src tree, and makes it look generic and simple.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 arch/x86/purgatory/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile
index 7fde9ee..f44d1c5 100644
--- a/arch/x86/purgatory/Makefile
+++ b/arch/x86/purgatory/Makefile
@@ -17,8 +17,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)
-- 
1.8.5.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-29  3:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-29  3:05 [PATCH] try to use automatic variable in kexec purgatory makefile Baoquan He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®