Skip to contentSkip to conversation

try to use automatic variable in kexec purgatory makefile

PATCH New Baoquan He 1 participant 1 message Aug 29, 2014 x86

lore
Share & tools
lore

Baoquan He

author
#0 lore raw

PATCH 1/1 try to use automatic variable in kexec purgatory makefile

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

---
 arch/x86/purgatory/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/purgatory/Makefile +2 -1
index 7fde9ee..f44d1c5 100644
@@ -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)
Signature · 1 line
1.8.5.3