mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tools/kvm: Add a .s file rule
@ 2012-10-20 18:19 Borislav Petkov
  2012-10-21 15:19 ` Pekka Enberg
  0 siblings, 1 reply; 2+ messages in thread
From: Borislav Petkov @ 2012-10-20 18:19 UTC (permalink / raw)
  To: LKML; +Cc: Borislav Petkov, Pekka Enberg, Sasha Levin, Asias He

Add a rule to the kvm tool Makefile to build .asm versions of the files.
This is good for debugging purposes.

Cc: Pekka Enberg <penberg@kernel.org>
Cc: Sasha Levin <levinsasha928@gmail.com>
Cc: Asias He <asias.hejun@gmail.com>
Signed-off-by: Borislav Petkov <bp@alien8.de>
---
 tools/kvm/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile
index 903001e80951..64f2646e5966 100644
--- a/tools/kvm/Makefile
+++ b/tools/kvm/Makefile
@@ -314,6 +314,9 @@ util/rbtree.d: ../../lib/rbtree.c
 %.d: %.c
 	$(Q) $(CC) -M -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
 
+%.s: %.c
+	$(Q) $(CC) -o $@ -S $(CFLAGS) -fverbose-asm $<
+
 # The header file common-cmds.h is needed for compilation of builtin-help.c.
 builtin-help.d: $(KVM_INCLUDE)/common-cmds.h
 
-- 
1.8.0.rc2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-21 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-20 18:19 [PATCH] tools/kvm: Add a .s file rule Borislav Petkov
2012-10-21 15:19 ` Pekka Enberg

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®