c05564c4d8
Android 13
16 lines
523 B
Plaintext
Executable file
16 lines
523 B
Plaintext
Executable file
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)
|