summaryrefslogtreecommitdiffstats
path: root/tools/perf/pmu-events/Build
blob: 999a4e8781621677821440e80ec8491689bbc6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
hostprogs := jevents

jevents-y	+= json.o jsmn.o jevents.o
pmu-events-y	+= pmu-events.o
JDIR		=  pmu-events/arch/$(SRCARCH)
JSON		=  $(shell [ -d $(JDIR) ] &&				\
			find $(JDIR) -name '*.json' -o -name 'mapfile.csv')
#
# Locate/process JSON files in pmu-events/arch/
# directory and create tables in pmu-events.c.
#
$(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JEVENTS)
	$(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V)