blob: 0b5b1c931e72cd1daea479c08b110415be6d6730 [file] [log] [blame]
Andrew Jeffery85985912018-02-22 10:20:31 +10301TEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp
2
3test_vpnor_create_pnor_partition_table_SOURCES = \
4 $(TEST_MBOX_VPNOR_SRCS) \
5 %reldir%/create_pnor_partition_table.cpp
6test_vpnor_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
7test_vpnor_create_pnor_partition_table_LDADD = -lstdc++fs \
8 $(SDBUSPLUS_LIBS) \
9 $(PHOSPHOR_LOGGING_LIBS) \
10 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
11
12test_vpnor_create_read_window_vpnor_SOURCES = \
13 $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \
14 mboxd_msg.c \
15 mboxd_windows.c \
16 mboxd_lpc.c \
17 mboxd_lpc_virtual.cpp \
18 mboxd_pnor_partition_table.cpp \
19 mboxd_flash_virtual.cpp \
20 pnor_partition.cpp \
21 %reldir%/create_read_window_vpnor.cpp
22test_vpnor_create_read_window_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
23test_vpnor_create_read_window_vpnor_LDADD = -lstdc++fs \
24 $(SDBUSPLUS_LIBS) \
25 $(PHOSPHOR_LOGGING_LIBS) \
26 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
27
28test_vpnor_write_flash_vpnor_SOURCES = \
29 $(TEST_MBOX_VPNOR_SRCS) \
30 mboxd_pnor_partition_table.cpp \
31 mboxd_flash_virtual.cpp \
32 mtd.c \
33 pnor_partition.cpp \
34 %reldir%/write_flash_vpnor.cpp
35test_vpnor_write_flash_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS)
36test_vpnor_write_flash_vpnor_LDADD = -lstdc++fs \
37 $(SDBUSPLUS_LIBS) \
38 $(PHOSPHOR_LOGGING_LIBS) \
39 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
40
41if VIRTUAL_PNOR_ENABLED
42check_PROGRAMS += \
43 %reldir%/create_pnor_partition_table \
44 %reldir%/create_read_window_vpnor \
45 %reldir%/write_flash_vpnor
46endif