Makefile (98c45f51f767bfdd71d773cceaceb403352e51ae) Makefile (2679f63fe5e4bb1459a0c20859a99c70c15d5ea1)
1# SPDX-License-Identifier: GPL-2.0
2# The loops are all 64-bit code
3CFLAGS += -m64
4CFLAGS += -I$(CURDIR)
5CFLAGS += -D SELFTEST
6CFLAGS += -maltivec
7CFLAGS += -mcpu=power4
8
9# Use our CFLAGS for the implicit .S rule & set the asm machine type
10ASFLAGS = $(CFLAGS) -Wa,-mpower4
11
12TEST_GEN_PROGS := copyuser_64_t0 copyuser_64_t1 copyuser_64_t2 \
13 copyuser_p7_t0 copyuser_p7_t1 \
14 memcpy_64_t0 memcpy_64_t1 memcpy_64_t2 \
1# SPDX-License-Identifier: GPL-2.0
2# The loops are all 64-bit code
3CFLAGS += -m64
4CFLAGS += -I$(CURDIR)
5CFLAGS += -D SELFTEST
6CFLAGS += -maltivec
7CFLAGS += -mcpu=power4
8
9# Use our CFLAGS for the implicit .S rule & set the asm machine type
10ASFLAGS = $(CFLAGS) -Wa,-mpower4
11
12TEST_GEN_PROGS := copyuser_64_t0 copyuser_64_t1 copyuser_64_t2 \
13 copyuser_p7_t0 copyuser_p7_t1 \
14 memcpy_64_t0 memcpy_64_t1 memcpy_64_t2 \
15 memcpy_p7_t0 memcpy_p7_t1
15 memcpy_p7_t0 memcpy_p7_t1 \
16 copyuser_64_exc_t0 copyuser_64_exc_t1 copyuser_64_exc_t2
16
17
17EXTRA_SOURCES := validate.c ../harness.c
18EXTRA_SOURCES := validate.c ../harness.c stubs.S
18
19include ../../lib.mk
20
21$(OUTPUT)/copyuser_64_t%: copyuser_64.S $(EXTRA_SOURCES)
22 $(CC) $(CPPFLAGS) $(CFLAGS) \
23 -D COPY_LOOP=test___copy_tofrom_user_base \
24 -D SELFTEST_CASE=$(subst copyuser_64_t,,$(notdir $@)) \
25 -o $@ $^

--- 11 unchanged lines hidden (view full) ---

37 -D SELFTEST_CASE=$(subst memcpy_64_t,,$(notdir $@)) \
38 -o $@ $^
39
40$(OUTPUT)/memcpy_p7_t%: memcpy_power7.S $(EXTRA_SOURCES)
41 $(CC) $(CPPFLAGS) $(CFLAGS) \
42 -D COPY_LOOP=test_memcpy_power7 \
43 -D SELFTEST_CASE=$(subst memcpy_p7_t,,$(notdir $@)) \
44 -o $@ $^
19
20include ../../lib.mk
21
22$(OUTPUT)/copyuser_64_t%: copyuser_64.S $(EXTRA_SOURCES)
23 $(CC) $(CPPFLAGS) $(CFLAGS) \
24 -D COPY_LOOP=test___copy_tofrom_user_base \
25 -D SELFTEST_CASE=$(subst copyuser_64_t,,$(notdir $@)) \
26 -o $@ $^

--- 11 unchanged lines hidden (view full) ---

38 -D SELFTEST_CASE=$(subst memcpy_64_t,,$(notdir $@)) \
39 -o $@ $^
40
41$(OUTPUT)/memcpy_p7_t%: memcpy_power7.S $(EXTRA_SOURCES)
42 $(CC) $(CPPFLAGS) $(CFLAGS) \
43 -D COPY_LOOP=test_memcpy_power7 \
44 -D SELFTEST_CASE=$(subst memcpy_p7_t,,$(notdir $@)) \
45 -o $@ $^
46
47$(OUTPUT)/copyuser_64_exc_t%: copyuser_64.S exc_validate.c ../harness.c \
48 copy_tofrom_user_reference.S stubs.S
49 $(CC) $(CPPFLAGS) $(CFLAGS) \
50 -D COPY_LOOP=test___copy_tofrom_user_base \
51 -D SELFTEST_CASE=$(subst copyuser_64_exc_t,,$(notdir $@)) \
52 -o $@ $^