Linux 4.19.133
[linux/fpc-iii.git] / tools / perf / pmu-events / Build
blob215ba30b85343ad1874b1fc52c05fccbd8948bb3
1 hostprogs := jevents
3 jevents-y       += json.o jsmn.o jevents.o
4 HOSTCFLAGS_jevents.o    = -I$(srctree)/tools/include
5 pmu-events-y    += pmu-events.o
6 JDIR            =  pmu-events/arch/$(SRCARCH)
7 JSON            =  $(shell [ -d $(JDIR) ] &&                            \
8                         find $(JDIR) -name '*.json' -o -name 'mapfile.csv')
11 # Locate/process JSON files in pmu-events/arch/
12 # directory and create tables in pmu-events.c.
14 $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JEVENTS)
15         $(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V)