180eeb67fSAndi Kleenhostprogs := jevents 280eeb67fSAndi Kleen 380eeb67fSAndi Kleenjevents-y += json.o jsmn.o jevents.o 480eeb67fSAndi Kleenpmu-events-y += pmu-events.o 580eeb67fSAndi KleenJDIR = pmu-events/arch/$(ARCH) 680eeb67fSAndi KleenJSON = $(shell [ -d $(JDIR) ] && \ 780eeb67fSAndi Kleen find $(JDIR) -name '*.json' -o -name 'mapfile.csv') 880eeb67fSAndi Kleen# 980eeb67fSAndi Kleen# Locate/process JSON files in pmu-events/arch/ 1080eeb67fSAndi Kleen# directory and create tables in pmu-events.c. 1180eeb67fSAndi Kleen# 1280eeb67fSAndi Kleen$(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JEVENTS) 1380eeb67fSAndi Kleen $(Q)$(call echo-cmd,gen)$(JEVENTS) $(ARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V) 14