https://github.com/torvalds/linux
Raw File
Tip revision: d72e90f33aa4709ebecc5005562f52335e106a60 authored by Linus Torvalds on 22 July 2018, 21:12:20 UTC
Linux 4.18-rc6
Tip revision: d72e90f
Build
hostprogs := jevents

jevents-y	+= json.o jsmn.o jevents.o
HOSTCFLAGS_jevents.o	= -I$(srctree)/tools/include
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)
back to top