forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/tools/testing/selftests/powerpc/pmu/Makefile
....@@ -2,7 +2,7 @@
22 noarg:
33 $(MAKE) -C ../
44
5
-TEST_GEN_PROGS := count_instructions l3_bank_test per_event_excludes
5
+TEST_GEN_PROGS := count_instructions count_stcx_fail l3_bank_test per_event_excludes
66 EXTRA_SOURCES := ../harness.c event.c lib.c ../utils.c
77
88 top_srcdir = ../../../../..
....@@ -13,8 +13,12 @@
1313 $(TEST_GEN_PROGS): $(EXTRA_SOURCES)
1414
1515 # loop.S can only be built 64-bit
16
+$(OUTPUT)/count_instructions: CFLAGS += -m64
1617 $(OUTPUT)/count_instructions: loop.S count_instructions.c $(EXTRA_SOURCES)
17
- $(CC) $(CFLAGS) -m64 -o $@ $^
18
+
19
+$(OUTPUT)/count_stcx_fail: CFLAGS += -m64
20
+$(OUTPUT)/count_stcx_fail: loop.S $(EXTRA_SOURCES)
21
+
1822
1923 $(OUTPUT)/per_event_excludes: ../utils.c
2024