summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/x86/Build
blob: 132cf8beaca251c1f9cc6f46d633bf6921331154 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
perf-y += util/
perf-test-y += tests/

ifdef SHELLCHECK
  SHELL_TESTS := entry/syscalls/syscalltbl.sh
  TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log)
else
  SHELL_TESTS :=
  TEST_LOGS :=
endif

$(OUTPUT)%.shellcheck_log: %
	$(call rule_mkdir)
	$(Q)$(call echo-cmd,test)shellcheck -a -S warning "$<" > $@ || (cat $@ && rm $@ && false)

perf-test-y += $(TEST_LOGS)