|
@@ -381,17 +381,31 @@ export INSTALL SHELL_PATH
|
|
|
|
|
|
SHELL = $(SHELL_PATH)
|
|
SHELL = $(SHELL_PATH)
|
|
|
|
|
|
-drm_ioctl_outdir := $(OUTPUT)trace/beauty/generated/ioctl
|
|
|
|
-drm_ioctl_array := $(drm_ioctl_outdir)/drm_ioctl_array.c
|
|
|
|
|
|
+beauty_ioctl_outdir := $(OUTPUT)trace/beauty/generated/ioctl
|
|
|
|
+drm_ioctl_array := $(beauty_ioctl_outdir)/drm_ioctl_array.c
|
|
drm_hdr_dir := $(srctree)/tools/include/uapi/drm
|
|
drm_hdr_dir := $(srctree)/tools/include/uapi/drm
|
|
drm_ioctl_tbl := $(srctree)/tools/perf/trace/beauty/drm_ioctl.sh
|
|
drm_ioctl_tbl := $(srctree)/tools/perf/trace/beauty/drm_ioctl.sh
|
|
|
|
|
|
# Create output directory if not already present
|
|
# Create output directory if not already present
|
|
-_dummy := $(shell [ -d '$(drm_ioctl_outdir)' ] || mkdir -p '$(drm_ioctl_outdir)')
|
|
|
|
|
|
+_dummy := $(shell [ -d '$(beauty_ioctl_outdir)' ] || mkdir -p '$(beauty_ioctl_outdir)')
|
|
|
|
|
|
$(drm_ioctl_array): $(drm_hdr_dir)/drm.h $(drm_hdr_dir)/i915_drm.h $(drm_ioctl_tbl)
|
|
$(drm_ioctl_array): $(drm_hdr_dir)/drm.h $(drm_hdr_dir)/i915_drm.h $(drm_ioctl_tbl)
|
|
$(Q)$(SHELL) '$(drm_ioctl_tbl)' $(drm_hdr_dir) > $@
|
|
$(Q)$(SHELL) '$(drm_ioctl_tbl)' $(drm_hdr_dir) > $@
|
|
|
|
|
|
|
|
+sndrv_ctl_ioctl_array := $(beauty_ioctl_outdir)/sndrv_ctl_ioctl_array.c
|
|
|
|
+sndrv_ctl_hdr_dir := $(srctree)/tools/include/uapi/sound
|
|
|
|
+sndrv_ctl_ioctl_tbl := $(srctree)/tools/perf/trace/beauty/sndrv_ctl_ioctl.sh
|
|
|
|
+
|
|
|
|
+$(sndrv_ctl_ioctl_array): $(sndrv_ctl_hdr_dir)/asound.h $(sndrv_ctl_ioctl_tbl)
|
|
|
|
+ $(Q)$(SHELL) '$(sndrv_ctl_ioctl_tbl)' $(sndrv_ctl_hdr_dir) > $@
|
|
|
|
+
|
|
|
|
+sndrv_pcm_ioctl_array := $(beauty_ioctl_outdir)/sndrv_pcm_ioctl_array.c
|
|
|
|
+sndrv_pcm_hdr_dir := $(srctree)/tools/include/uapi/sound
|
|
|
|
+sndrv_pcm_ioctl_tbl := $(srctree)/tools/perf/trace/beauty/sndrv_pcm_ioctl.sh
|
|
|
|
+
|
|
|
|
+$(sndrv_pcm_ioctl_array): $(sndrv_pcm_hdr_dir)/asound.h $(sndrv_pcm_ioctl_tbl)
|
|
|
|
+ $(Q)$(SHELL) '$(sndrv_pcm_ioctl_tbl)' $(sndrv_pcm_hdr_dir) > $@
|
|
|
|
+
|
|
all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS)
|
|
all: shell_compatibility_test $(ALL_PROGRAMS) $(LANG_BINDINGS) $(OTHER_PROGRAMS)
|
|
|
|
|
|
$(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) $(LIBTRACEEVENT_DYNAMIC_LIST)
|
|
$(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) $(LIBTRACEEVENT_DYNAMIC_LIST)
|
|
@@ -486,7 +500,7 @@ endif
|
|
__build-dir = $(subst $(OUTPUT),,$(dir $@))
|
|
__build-dir = $(subst $(OUTPUT),,$(dir $@))
|
|
build-dir = $(if $(__build-dir),$(__build-dir),.)
|
|
build-dir = $(if $(__build-dir),$(__build-dir),.)
|
|
|
|
|
|
-prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h archheaders $(drm_ioctl_array)
|
|
|
|
|
|
+prepare: $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)common-cmds.h archheaders $(drm_ioctl_array) $(sndrv_pcm_ioctl_array) $(sndrv_ctl_ioctl_array)
|
|
|
|
|
|
$(OUTPUT)%.o: %.c prepare FORCE
|
|
$(OUTPUT)%.o: %.c prepare FORCE
|
|
$(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
|
|
$(Q)$(MAKE) -f $(srctree)/tools/build/Makefile.build dir=$(build-dir) $@
|
|
@@ -752,7 +766,9 @@ clean:: $(LIBTRACEEVENT)-clean $(LIBAPI)-clean $(LIBBPF)-clean $(LIBSUBCMD)-clea
|
|
$(OUTPUT)util/intel-pt-decoder/inat-tables.c \
|
|
$(OUTPUT)util/intel-pt-decoder/inat-tables.c \
|
|
$(OUTPUT)tests/llvm-src-{base,kbuild,prologue,relocation}.c \
|
|
$(OUTPUT)tests/llvm-src-{base,kbuild,prologue,relocation}.c \
|
|
$(OUTPUT)pmu-events/pmu-events.c \
|
|
$(OUTPUT)pmu-events/pmu-events.c \
|
|
- $(OUTPUT)$(drm_ioctl_array)
|
|
|
|
|
|
+ $(OUTPUT)$(drm_ioctl_array) \
|
|
|
|
+ $(OUTPUT)$(sndrv_ctl_ioctl_array) \
|
|
|
|
+ $(OUTPUT)$(sndrv_pcm_ioctl_array)
|
|
$(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean
|
|
$(QUIET_SUBDIR0)Documentation $(QUIET_SUBDIR1) clean
|
|
$(python-clean)
|
|
$(python-clean)
|
|
|
|
|