blob: b71e8e0e35453de1b41bfdee709f5d71a286e733 [file] [log] [blame]
Andrew Jeffery812923d2018-02-22 11:59:52 +10301TEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp \
2 %reldir%/tmpd.cpp
Andrew Jeffery85985912018-02-22 10:20:31 +10303
Andrew Jefferya6582532018-02-22 16:04:37 +10304VPNOR_LDADD = -lstdc++fs \
5 $(SDBUSPLUS_LIBS) \
6 $(PHOSPHOR_LOGGING_LIBS) \
7 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
8
Andrew Jeffery85985912018-02-22 10:20:31 +10309test_vpnor_create_pnor_partition_table_SOURCES = \
10 $(TEST_MBOX_VPNOR_SRCS) \
11 %reldir%/create_pnor_partition_table.cpp
12test_vpnor_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
Andrew Jefferya6582532018-02-22 16:04:37 +103013test_vpnor_create_pnor_partition_table_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103014
15test_vpnor_create_read_window_vpnor_SOURCES = \
16 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
17 mboxd_msg.c \
18 mboxd_windows.c \
19 mboxd_lpc.c \
20 mboxd_lpc_virtual.cpp \
21 mboxd_pnor_partition_table.cpp \
22 mboxd_flash_virtual.cpp \
23 pnor_partition.cpp \
24 %reldir%/create_read_window_vpnor.cpp
25test_vpnor_create_read_window_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
Andrew Jefferya6582532018-02-22 16:04:37 +103026test_vpnor_create_read_window_vpnor_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103027
Andrew Jeffery733cbe62018-02-22 22:10:16 +103028test_vpnor_write_patch_SOURCES = \
Andrew Jeffery85985912018-02-22 10:20:31 +103029 $(TEST_MBOX_VPNOR_SRCS) \
30 mboxd_pnor_partition_table.cpp \
31 mboxd_flash_virtual.cpp \
32 mtd.c \
33 pnor_partition.cpp \
Andrew Jeffery733cbe62018-02-22 22:10:16 +103034 %reldir%/write_patch.cpp
35test_vpnor_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
36test_vpnor_write_patch_LDADD = $(VPNOR_LDADD)
Andrew Jeffery85985912018-02-22 10:20:31 +103037
Andrew Jefferyad341a22018-02-22 17:13:15 +103038test_vpnor_write_prsv_SOURCES = \
39 $(TEST_MBOX_VPNOR_SRCS) \
40 mboxd_pnor_partition_table.cpp \
41 mboxd_flash_virtual.cpp \
42 mtd.c \
43 pnor_partition.cpp \
44 %reldir%/write_prsv.cpp
45test_vpnor_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
46test_vpnor_write_prsv_LDADD = $(VPNOR_LDADD)
47
Andrew Jefferyf050fcf2018-02-22 17:35:34 +103048test_vpnor_write_ro_SOURCES = \
49 $(TEST_MBOX_VPNOR_SRCS) \
50 mboxd_pnor_partition_table.cpp \
51 mboxd_flash_virtual.cpp \
52 mtd.c \
53 pnor_partition.cpp \
54 %reldir%/write_ro.cpp
55test_vpnor_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
56test_vpnor_write_ro_LDADD = $(VPNOR_LDADD)
57
Andrew Jeffery24f44592018-02-22 17:51:59 +103058test_vpnor_write_rw_SOURCES = \
59 $(TEST_MBOX_VPNOR_SRCS) \
60 mboxd_pnor_partition_table.cpp \
61 mboxd_flash_virtual.cpp \
62 mtd.c \
63 pnor_partition.cpp \
64 %reldir%/write_rw.cpp
65test_vpnor_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
66test_vpnor_write_rw_LDADD = $(VPNOR_LDADD)
67
Andrew Jeffery85985912018-02-22 10:20:31 +103068if VIRTUAL_PNOR_ENABLED
69check_PROGRAMS += \
70 %reldir%/create_pnor_partition_table \
71 %reldir%/create_read_window_vpnor \
Andrew Jefferyf050fcf2018-02-22 17:35:34 +103072 %reldir%/write_prsv \
Andrew Jeffery24f44592018-02-22 17:51:59 +103073 %reldir%/write_ro \
Andrew Jeffery733cbe62018-02-22 22:10:16 +103074 %reldir%/write_rw \
75 %reldir%/write_patch
Andrew Jeffery85985912018-02-22 10:20:31 +103076endif