Andrew Jeffery | 812923d | 2018-02-22 11:59:52 +1030 | [diff] [blame] | 1 | TEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp \ |
| 2 | %reldir%/tmpd.cpp |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 3 | |
Andrew Jeffery | a658253 | 2018-02-22 16:04:37 +1030 | [diff] [blame] | 4 | VPNOR_LDADD = -lstdc++fs \ |
| 5 | $(SDBUSPLUS_LIBS) \ |
| 6 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 7 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 8 | |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 9 | test_vpnor_create_pnor_partition_table_SOURCES = \ |
| 10 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 11 | %reldir%/create_pnor_partition_table.cpp |
| 12 | test_vpnor_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
Andrew Jeffery | a658253 | 2018-02-22 16:04:37 +1030 | [diff] [blame] | 13 | test_vpnor_create_pnor_partition_table_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 14 | |
Andrew Jeffery | de90fdc | 2018-02-23 15:59:46 +1030 | [diff] [blame] | 15 | test_vpnor_create_read_window_partition_exists_SOURCES = \ |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 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 \ |
Andrew Jeffery | de90fdc | 2018-02-23 15:59:46 +1030 | [diff] [blame] | 24 | %reldir%/create_read_window_partition_exists.cpp |
| 25 | test_vpnor_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 26 | test_vpnor_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 27 | |
Andrew Jeffery | 733cbe6 | 2018-02-22 22:10:16 +1030 | [diff] [blame] | 28 | test_vpnor_write_patch_SOURCES = \ |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 29 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 30 | mboxd_pnor_partition_table.cpp \ |
| 31 | mboxd_flash_virtual.cpp \ |
| 32 | mtd.c \ |
| 33 | pnor_partition.cpp \ |
Andrew Jeffery | 733cbe6 | 2018-02-22 22:10:16 +1030 | [diff] [blame] | 34 | %reldir%/write_patch.cpp |
| 35 | test_vpnor_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 36 | test_vpnor_write_patch_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 37 | |
Andrew Jeffery | ad341a2 | 2018-02-22 17:13:15 +1030 | [diff] [blame] | 38 | test_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 |
| 45 | test_vpnor_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 46 | test_vpnor_write_prsv_LDADD = $(VPNOR_LDADD) |
| 47 | |
Andrew Jeffery | f050fcf | 2018-02-22 17:35:34 +1030 | [diff] [blame] | 48 | test_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 |
| 55 | test_vpnor_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 56 | test_vpnor_write_ro_LDADD = $(VPNOR_LDADD) |
| 57 | |
Andrew Jeffery | 24f4459 | 2018-02-22 17:51:59 +1030 | [diff] [blame] | 58 | test_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 |
| 65 | test_vpnor_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 66 | test_vpnor_write_rw_LDADD = $(VPNOR_LDADD) |
| 67 | |
Andrew Jeffery | b02ef43 | 2018-02-26 09:57:17 +1030 | [diff] [blame] | 68 | test_vpnor_toc_no_name_SOURCES = \ |
| 69 | common.c \ |
| 70 | pnor_partition_table.cpp \ |
| 71 | %reldir%/toc_no_name.cpp |
| 72 | test_vpnor_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 73 | test_vpnor_toc_no_name_LDADD = $(VPNOR_LDADD) |
| 74 | |
Andrew Jeffery | 17bbf45 | 2018-02-26 09:57:56 +1030 | [diff] [blame] | 75 | test_vpnor_toc_start_gt_end_SOURCES = \ |
| 76 | common.c \ |
| 77 | pnor_partition_table.cpp \ |
| 78 | %reldir%/toc_start_gt_end.cpp |
| 79 | test_vpnor_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 80 | test_vpnor_toc_start_gt_end_LDADD = $(VPNOR_LDADD) |
| 81 | |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 82 | if VIRTUAL_PNOR_ENABLED |
| 83 | check_PROGRAMS += \ |
| 84 | %reldir%/create_pnor_partition_table \ |
Andrew Jeffery | de90fdc | 2018-02-23 15:59:46 +1030 | [diff] [blame] | 85 | %reldir%/create_read_window_partition_exists \ |
Andrew Jeffery | f050fcf | 2018-02-22 17:35:34 +1030 | [diff] [blame] | 86 | %reldir%/write_prsv \ |
Andrew Jeffery | 24f4459 | 2018-02-22 17:51:59 +1030 | [diff] [blame] | 87 | %reldir%/write_ro \ |
Andrew Jeffery | 733cbe6 | 2018-02-22 22:10:16 +1030 | [diff] [blame] | 88 | %reldir%/write_rw \ |
Andrew Jeffery | b02ef43 | 2018-02-26 09:57:17 +1030 | [diff] [blame] | 89 | %reldir%/write_patch \ |
Andrew Jeffery | 17bbf45 | 2018-02-26 09:57:56 +1030 | [diff] [blame] | 90 | %reldir%/toc_no_name \ |
| 91 | %reldir%/toc_start_gt_end |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 92 | endif |