VirtualBox

Changeset 53983 in vbox for trunk/src/VBox/ExtPacks


Ignore:
Timestamp:
Jan 27, 2015 9:35:39 PM (10 years ago)
Author:
vboxsync
Message:

Checked in bison and flex output for VBoxDTrace so we can build on systems that doesn't have these tools..

Location:
trunk/src/VBox/ExtPacks/VBoxDTrace
Files:
4 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk

    r53981 r53983  
    2929VBOX_PATH_EXTPACK_VBOXDTRACE = $(PATH_STAGE)/$(INST_EXTPACK)$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)
    3030INST_EXTPACK_VBOXDTRACE = $(INST_EXTPACK)$(VBOX_EXTPACK_VBOXDTRACE_MANGLED_NAME)/
     31
     32VBOXDT_PATH                := $(PATH_ROOT)/src/VBox/ExtPacks/VBoxDTrace
     33VBOXDT_PATH_ONNV           := $(VBOXDT_PATH)/onnv
     34VBOXDT_PATH_UTS            := $(VBOXDT_PATH_ONNV)/uts
     35VBOXDT_PATH_CMD            := $(VBOXDT_PATH_ONNV)/cmd
     36VBOXDT_PATH_LIBCTF         := $(VBOXDT_PATH_ONNV)/lib/libctf
     37VBOXDT_PATH_CMN_CTF        := $(VBOXDT_PATH_ONNV)/common/ctf
     38VBOXDT_PATH_LIBDTRACE      := $(VBOXDT_PATH_ONNV)/lib/libdtrace
     39VBOXDT_PATH_CMN_DTRACE     := $(VBOXDT_PATH_ONNV)/common/dtrace
    3140
    3241
     
    151160        $(VBOXDT_PATH_LIBCTF)/common/ctf_lib.c
    152161
    153  if 1
     162 ifdef VBOX_HAVE_BISON
    154163  USES                   += yacc
    155164  VBoxDTraceCmd_USES     += yacc
     
    160169  VBoxDTraceCmd_INCS     += $(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
    161170 else
    162   # TODO: generate these.
    163  endif
    164 
    165  if 1
     171  VBoxDTraceCmd_SOURCES  += \
     172        $(VBOXDT_PATH)/generated/dt_grammar.c
     173  VBoxDTraceCmd_INCS     += \
     174        $(VBOXDT_PATH)/generated/
     175 endif
     176
     177 ifdef VBOX_HAVE_FLEX
    166178  USES                   += lex
    167179  VBoxDTraceCmd_USES     += lex
    168180  VBoxDTraceCmd_LEXTOOL   = FLEX
    169181  VBoxDTraceCmd_LEXFLAGS  = -l -B #-d -T
    170   VBoxDTraceCmd_DEFS     += USING_FLEX
    171182  VBoxDTraceCmd_SOURCES  += \
    172183        $(VBOXDT_PATH_LIBDTRACE)/common/dt_lex.l
    173184 else
    174   # TODO: generate this.
    175  endif
     185  VBoxDTraceCmd_SOURCES  += \
     186        $(VBOXDT_PATH)/generated/dt_lex.c
     187 endif
     188 VBoxDTraceCmd_DEFS      += USING_FLEX
    176189
    177190 VBoxDTraceCmd_LIBS = \
     
    194207        $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed --output $@ $<
    195208
    196 
    197209 #
    198210 # Source not used or wanted: \
     
    201213 #
    202214
     215 #
     216 # Updates the sources generated by flex and biosn.
     217 # The SED processing removes the paths the from #line statements.
     218 #
     219 vboxdtrace-update-generated-sources: \
     220                $$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_grammar.c \
     221                $$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_grammar.h \
     222                $$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_lex.c
     223        $(foreach file,dt_grammar.c dt_grammar.h dt_lex.c \
     224                ,$(NLTAB)$(SED)  -e 's,$(VBOXDT_PATH_LIBDTRACE)/common/,,g'\
     225                -e 's,$(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/,,g' \
     226                --output $(VBOXDT_PATH)/generated/$(file) \
     227                $(VBoxDTraceCmd_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/$(file))
    203228
    204229 #
     
    313338endif # VBOX_WITH_EXTPACK_VBOXDTRACE
    314339
     340
    315341include $(FILE_KBUILD_SUB_FOOTER)
    316342
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette