Build 472 B

1234567891011121314
  1. hostprogs := jevents
  2. jevents-y += json.o jsmn.o jevents.o
  3. pmu-events-y += pmu-events.o
  4. JDIR = pmu-events/arch/$(SRCARCH)
  5. JSON = $(shell [ -d $(JDIR) ] && \
  6. find $(JDIR) -name '*.json' -o -name 'mapfile.csv')
  7. #
  8. # Locate/process JSON files in pmu-events/arch/
  9. # directory and create tables in pmu-events.c.
  10. #
  11. $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JEVENTS)
  12. $(Q)$(call echo-cmd,gen)$(JEVENTS) $(SRCARCH) pmu-events/arch $(OUTPUT)pmu-events/pmu-events.c $(V)