Skip to contentSkip to conversation

tools/kvm: Add a .s file rule

PATCH Applied Borislav Petkov 2 participants 2 messages Oct 20, 2012 – Oct 21, 2012 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/kvm: Add a .s file rule

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

Cc Pekka Enberg <[email protected]>
Cc Sasha Levin <[email protected]>
Cc Asias He <[email protected]>
---
 tools/kvm/Makefile | 3 +++
 1 file changed, 3 insertions(+)
tools/kvm/Makefile +3 -0
index 903001e80951..64f2646e5966 100644
@@ -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
 
Signature · 1 line
1.8.0.rc2
Applied
#1 lore raw
Quoted 7 lines · Borislav Petkov

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

Cc Pekka Enberg <[email protected]>
Cc Sasha Levin <[email protected]>
Cc Asias He <[email protected]>

Applied, thanks Borislav!

Quoted 22 lines
---
 tools/kvm/Makefile | 3 +++
 1 file changed, 3 insertions(+)
tools/kvm/Makefile +3 -0
index 903001e80951..64f2646e5966 100644
@@ -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
 
Signature · 1 line
1.8.0.rc2