- Timestamp:
- Jan 2, 2015 12:31:02 PM (10 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTrace/Makefile.kmk
r53657 r53658 76 76 $(VBOXDT_PATH_LIBDTRACE)/common/dt_xlator.c \ 77 77 \ 78 $(VBoxDTrace_0_OUTDIR)/dt_errtags.c \ 79 $(VBoxDTrace_0_OUTDIR)/dt_names.c \ 80 \ 78 81 $(VBOXDT_PATH_CMN_CTF)/ctf_create.c \ 79 82 $(VBOXDT_PATH_CMN_CTF)/ctf_error.c \ … … 110 113 VBoxDTrace_INCS += $(VBoxDTrace_0_OUTDIR)/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common 111 114 else 112 # fixme later115 # TODO: generate these. 113 116 endif 114 117 115 118 if 1 116 USES 117 VBoxDTrace_USES 119 USES += lex 120 VBoxDTrace_USES += lex 118 121 VBoxDTrace_LEXTOOL = FLEX 119 122 VBoxDTrace_LEXFLAGS = -l … … 122 125 $(VBOXDT_PATH_LIBDTRACE)/common/dt_lex.l 123 126 else 124 VBoxDTrace_SOURCES += \ 125 generated/dt_lex.c 126 VBoxDTrace_INCS.win += \ 127 generated/hdrhacks 127 # TODO: generate this. 128 128 endif 129 129 … … 131 131 $(LIB_RUNTIME) 132 132 133 134 # Generate sources 135 $$(VBoxDTrace_0_OUTDIR)/dt_errtags.c: \ 136 $(VBOXDT_PATH_LIBDTRACE)/common/dt_errtags.h \ 137 $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed \ 138 | $$(dir $$@) 139 $(MSG_GENERATE,VBoxDTrace,$@,$<) 140 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mkerrtags.sed --output $@ $< 141 142 $$(VBoxDTrace_0_OUTDIR)/dt_names.c: \ 143 $(VBOXDT_PATH_UTS)/common/sys/dtrace.h \ 144 $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed \ 145 | $$(dir $$@) 146 $(MSG_GENERATE,VBoxDTrace,$@,$<) 147 $(SED) -n -f $(VBOXDT_PATH_LIBDTRACE)/common/mknames.sed --output $@ $< 148 133 149 include $(KBUILD_PATH)/subfooter.kmk 134 150 -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/mkerrtags.sh
r53634 r53658 1 #!/ bin/sh1 #!/usr/bin/env kmk_ash 2 2 # 3 3 # CDDL HEADER START … … 27 27 #ident "%Z%%M% %I% %E% SMI" 28 28 29 29 30 echo "\ 30 31 /*\n\ … … 39 40 static const char *const _dt_errtags[] = {" 40 41 41 pattern='^ \(D_[A-Z0-9_]*\),*' 42 replace=' "\1",' 43 44 sed -n "s/$pattern/$replace/p" || exit 1 42 # WARNING: Tabs in expressions. 43 #pattern='^ \(D_[A-Z0-9_]*\),*' 44 #replace=' "\1",' 45 # 46 #sed -n "s/$pattern/$replace/p" || exit 1 47 set -x 48 kmk_sed --lang_c -n 's/^[[:space:]]*\(D_[A-Z0-9_]*\),*/ "\1",/p' $1 || exit 1 45 49 46 50 echo "\
Note:
See TracChangeset
for help on using the changeset viewer.