Print this page
HVM-785 kvm-cmd build should use CTFMERGE and CTFCONVERT

Split Close
Expand all
Collapse all
          --- old/./rules.mak
          +++ new/./rules.mak
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18          $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<,"  CC    $(TARGET_DIR)$@")
  19   19  
  20   20  %.o: %.S
  21   21          $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<,"  AS    $(TARGET_DIR)$@")
  22   22  
  23   23  %.o: %.m
  24   24          $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(QEMU_INCLUDES) $(QEMU_DGFLAGS) $(CFLAGS) -c -o $@ $<,"  OBJC  $(TARGET_DIR)$@")
  25   25  
  26   26  LINK = $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(1) $(LIBS),"  LINK  $(TARGET_DIR)$@")
  27   27  
  28      -CTFMERGE = $(call quiet-command, $$(which ctfmerge) -L VERSION -o $@ $(1),"  CTFMERGE  $(TARGET_DIR)$@")
       28 +CTFMERGE_CMD = $(call quiet-command, $(CTFMERGE) -L VERSION -o $@ $(1),"  CTFMERGE  $(TARGET_DIR)$@")
       29 +
       30 +CTFCONVERT_CMD = $(call quiet-command, CTFCONVERT=$(CTFCONVERT) find ../ -type f -name '*.o' -exec ../ctf.sh '{}' \;)
  29   31  
  30   32  ifeq ($(TRACE_BACKEND),dtrace)
  31   33  ifneq ($(strip $(CONFIG_SOLARIS)),)
  32   34  %$(EXESUF): %.o
  33   35          $(call quiet-command, dtrace $(CONFIG_DTRACE_FLAGS) -o trace-dtrace.o -s trace-dtrace.dtrace  -G $^,"  LINK  $(TARGET_DIR)$@.dtrace")
  34   36          $(call LINK,$^ trace-dtrace.o)
  35   37  else
  36   38  %$(EXESUF): %.o
  37   39          $(call LINK,$^)
  38   40  endif
↓ open down ↓ 39 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX