Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 1 | TEST_MBOX_VPNOR_SRCS = \ |
| 2 | common.c \ |
| 3 | vpnor/pnor_partition_table.cpp \ |
| 4 | %reldir%/tmpd.cpp |
| 5 | |
| 6 | TEST_MBOX_VPNOR_INTEG_SRCS = \ |
| 7 | common.c \ |
Andrew Jeffery | 1e531af | 2018-08-07 13:32:57 +0930 | [diff] [blame] | 8 | protocol.c \ |
Andrew Jeffery | 457a6e5 | 2018-08-08 11:21:08 +0930 | [diff] [blame] | 9 | transport_mbox.c \ |
Andrew Jeffery | f593b1b | 2018-08-08 11:01:04 +0930 | [diff] [blame] | 10 | windows.c \ |
Andrew Jeffery | cd18611 | 2018-08-08 10:47:55 +0930 | [diff] [blame] | 11 | lpc.c \ |
| 12 | vpnor/lpc_reset.cpp \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 13 | vpnor/mboxd_pnor_partition_table.cpp \ |
Andrew Jeffery | eebc6bd | 2018-08-08 10:38:19 +0930 | [diff] [blame] | 14 | vpnor/flash.cpp \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 15 | vpnor/pnor_partition.cpp \ |
| 16 | vpnor/pnor_partition_table.cpp \ |
Andrew Jeffery | c7d1947 | 2018-08-08 11:43:08 +0930 | [diff] [blame] | 17 | vpnor/protocol.cpp \ |
| 18 | vpnor/protocol_negotiate_version.cpp \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 19 | %reldir%/tmpd.cpp |
| 20 | |
| 21 | VPNOR_LDADD = -lstdc++fs \ |
| 22 | $(SDBUSPLUS_LIBS) \ |
| 23 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 24 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 25 | |
| 26 | vpnor_test_create_pnor_partition_table_SOURCES = \ |
| 27 | $(TEST_MOCK_SRCS) \ |
| 28 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 29 | %reldir%/create_pnor_partition_table.cpp |
| 30 | vpnor_test_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 31 | vpnor_test_create_pnor_partition_table_LDADD = $(VPNOR_LDADD) |
| 32 | |
| 33 | vpnor_test_create_read_window_partition_exists_SOURCES = \ |
| 34 | $(TEST_MOCK_SRCS) \ |
| 35 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 36 | %reldir%/create_read_window_partition_exists.cpp |
| 37 | vpnor_test_create_read_window_partition_exists_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 38 | vpnor_test_create_read_window_partition_exists_LDADD = $(VPNOR_LDADD) |
| 39 | |
| 40 | vpnor_test_write_patch_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 41 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 42 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 43 | %reldir%/write_patch.cpp |
| 44 | vpnor_test_write_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 45 | vpnor_test_write_patch_LDADD = $(VPNOR_LDADD) |
| 46 | |
| 47 | vpnor_test_write_prsv_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 48 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 49 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 50 | %reldir%/write_prsv.cpp |
| 51 | vpnor_test_write_prsv_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 52 | vpnor_test_write_prsv_LDADD = $(VPNOR_LDADD) |
| 53 | |
| 54 | vpnor_test_write_ro_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 55 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 56 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 57 | %reldir%/write_ro.cpp |
| 58 | vpnor_test_write_ro_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 59 | vpnor_test_write_ro_LDADD = $(VPNOR_LDADD) |
| 60 | |
| 61 | vpnor_test_write_rw_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 62 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 63 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 64 | %reldir%/write_rw.cpp |
| 65 | vpnor_test_write_rw_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 66 | vpnor_test_write_rw_LDADD = $(VPNOR_LDADD) |
| 67 | |
| 68 | vpnor_test_toc_no_name_SOURCES = \ |
| 69 | common.c \ |
| 70 | vpnor/pnor_partition_table.cpp \ |
| 71 | %reldir%/toc_no_name.cpp |
| 72 | vpnor_test_toc_no_name_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 73 | vpnor_test_toc_no_name_LDADD = $(VPNOR_LDADD) |
| 74 | |
| 75 | vpnor_test_toc_start_gt_end_SOURCES = \ |
| 76 | common.c \ |
| 77 | vpnor/pnor_partition_table.cpp \ |
| 78 | %reldir%/toc_start_gt_end.cpp |
| 79 | vpnor_test_toc_start_gt_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 80 | vpnor_test_toc_start_gt_end_LDADD = $(VPNOR_LDADD) |
| 81 | |
| 82 | vpnor_test_toc_no_start_SOURCES = \ |
| 83 | common.c \ |
| 84 | vpnor/pnor_partition_table.cpp \ |
| 85 | %reldir%/toc_no_start.cpp |
| 86 | vpnor_test_toc_no_start_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 87 | vpnor_test_toc_no_start_LDADD = $(VPNOR_LDADD) |
| 88 | |
| 89 | vpnor_test_toc_no_end_SOURCES = \ |
| 90 | common.c \ |
| 91 | vpnor/pnor_partition_table.cpp \ |
| 92 | %reldir%/toc_no_end.cpp |
| 93 | vpnor_test_toc_no_end_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 94 | vpnor_test_toc_no_end_LDADD = $(VPNOR_LDADD) |
| 95 | |
| 96 | vpnor_test_toc_no_version_SOURCES = \ |
| 97 | common.c \ |
| 98 | vpnor/pnor_partition_table.cpp \ |
| 99 | %reldir%/toc_no_version.cpp |
| 100 | vpnor_test_toc_no_version_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 101 | vpnor_test_toc_no_version_LDADD = $(VPNOR_LDADD) |
| 102 | |
| 103 | vpnor_test_toc_flags_SOURCES = \ |
| 104 | common.c \ |
| 105 | vpnor/pnor_partition_table.cpp \ |
| 106 | %reldir%/toc_flags.cpp |
| 107 | vpnor_test_toc_flags_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 108 | vpnor_test_toc_flags_LDADD = $(VPNOR_LDADD) |
| 109 | |
| 110 | vpnor_test_toc_overlap_SOURCES = \ |
| 111 | $(TEST_MOCK_SRCS) \ |
| 112 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 113 | %reldir%/toc_overlap.cpp |
| 114 | vpnor_test_toc_overlap_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 115 | vpnor_test_toc_overlap_LDADD = $(VPNOR_LDADD) |
| 116 | |
| 117 | vpnor_test_toc_lookup_found_SOURCES = \ |
| 118 | $(TEST_MOCK_SRCS) \ |
| 119 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 120 | %reldir%/toc_lookup_found.cpp |
| 121 | vpnor_test_toc_lookup_found_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 122 | vpnor_test_toc_lookup_found_LDADD = $(VPNOR_LDADD) |
| 123 | |
| 124 | vpnor_test_toc_lookup_failed_SOURCES = \ |
| 125 | $(TEST_MOCK_SRCS) \ |
| 126 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 127 | %reldir%/toc_lookup_failed.cpp |
| 128 | vpnor_test_toc_lookup_failed_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 129 | vpnor_test_toc_lookup_failed_LDADD = $(VPNOR_LDADD) |
| 130 | |
| 131 | vpnor_test_toc_missing_file_SOURCES = \ |
| 132 | $(TEST_MOCK_SRCS) \ |
| 133 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 134 | %reldir%/toc_missing_file.cpp |
| 135 | vpnor_test_toc_missing_file_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 136 | vpnor_test_toc_missing_file_LDADD = $(VPNOR_LDADD) |
| 137 | |
| 138 | vpnor_test_create_read_window_oob_SOURCES = \ |
| 139 | $(TEST_MOCK_SRCS) \ |
| 140 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 141 | %reldir%/create_read_window_oob.cpp |
| 142 | vpnor_test_create_read_window_oob_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 143 | vpnor_test_create_read_window_oob_LDADD = $(VPNOR_LDADD) |
| 144 | |
| 145 | vpnor_test_create_read_window_toc_SOURCES = \ |
| 146 | $(TEST_MOCK_SRCS) \ |
| 147 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 148 | %reldir%/create_read_window_toc.cpp |
| 149 | vpnor_test_create_read_window_toc_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 150 | vpnor_test_create_read_window_toc_LDADD = $(VPNOR_LDADD) |
| 151 | |
| 152 | vpnor_test_create_read_window_straddle_partitions_SOURCES = \ |
| 153 | $(TEST_MOCK_SRCS) \ |
| 154 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 155 | %reldir%/create_read_window_straddle_partitions.cpp |
| 156 | vpnor_test_create_read_window_straddle_partitions_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 157 | vpnor_test_create_read_window_straddle_partitions_LDADD = $(VPNOR_LDADD) |
| 158 | |
| 159 | vpnor_test_create_read_window_partition_invalid_SOURCES = \ |
| 160 | $(TEST_MOCK_SRCS) \ |
| 161 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 162 | %reldir%/create_read_window_partition_invalid.cpp |
| 163 | vpnor_test_create_read_window_partition_invalid_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 164 | vpnor_test_create_read_window_partition_invalid_LDADD = $(VPNOR_LDADD) |
| 165 | |
| 166 | vpnor_test_read_patch_SOURCES = \ |
| 167 | $(TEST_MOCK_SRCS) \ |
| 168 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 169 | %reldir%/read_patch.cpp |
| 170 | vpnor_test_read_patch_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 171 | vpnor_test_read_patch_LDADD = $(VPNOR_LDADD) |
| 172 | |
| 173 | vpnor_test_write_patch_resize_SOURCES = \ |
Andrew Jeffery | 943aba0 | 2018-03-26 15:37:33 +1030 | [diff] [blame] | 174 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 175 | mtd.c \ |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 176 | %reldir%/write_patch_resize.cpp |
| 177 | vpnor_test_write_patch_resize_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 178 | vpnor_test_write_patch_resize_LDADD = $(VPNOR_LDADD) |
| 179 | |
| 180 | vpnor_test_dump_flash_SOURCES = \ |
| 181 | $(TEST_MOCK_SRCS) \ |
| 182 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 183 | %reldir%/dump_flash.cpp |
| 184 | vpnor_test_dump_flash_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 185 | vpnor_test_dump_flash_LDADD = $(VPNOR_LDADD) |
| 186 | |
| 187 | vpnor_test_create_read_window_size_SOURCES = \ |
| 188 | $(TEST_MOCK_SRCS) \ |
| 189 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 190 | %reldir%/create_read_window_size.cpp |
| 191 | vpnor_test_create_read_window_size_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 192 | vpnor_test_create_read_window_size_LDADD = $(VPNOR_LDADD) |
| 193 | |
| 194 | vpnor_test_create_read_window_remap_SOURCES = \ |
| 195 | $(TEST_MOCK_SRCS) \ |
| 196 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 197 | %reldir%/create_read_window_remap.cpp |
| 198 | vpnor_test_create_read_window_remap_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 199 | vpnor_test_create_read_window_remap_LDADD = $(VPNOR_LDADD) |
| 200 | |
| 201 | vpnor_test_create_write_window_ro_partition_SOURCES = \ |
| 202 | $(TEST_MOCK_SRCS) \ |
| 203 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 204 | %reldir%/create_write_window_ro_partition.cpp |
| 205 | vpnor_test_create_write_window_ro_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 206 | vpnor_test_create_write_window_ro_partition_LDADD = $(VPNOR_LDADD) |
| 207 | |
| 208 | vpnor_test_create_write_window_rw_partition_SOURCES = \ |
| 209 | $(TEST_MOCK_SRCS) \ |
| 210 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 211 | %reldir%/create_write_window_rw_partition.cpp |
| 212 | vpnor_test_create_write_window_rw_partition_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 213 | vpnor_test_create_write_window_rw_partition_LDADD = $(VPNOR_LDADD) |
| 214 | |
| 215 | vpnor_test_create_write_window_unmapped_SOURCES = \ |
| 216 | $(TEST_MOCK_SRCS) \ |
| 217 | $(TEST_MBOX_VPNOR_INTEG_SRCS) \ |
| 218 | %reldir%/create_write_window_unmapped.cpp |
| 219 | vpnor_test_create_write_window_unmapped_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
| 220 | vpnor_test_create_write_window_unmapped_LDADD = $(VPNOR_LDADD) |
| 221 | |
| 222 | if VIRTUAL_PNOR_ENABLED |
| 223 | check_PROGRAMS += \ |
| 224 | %reldir%/create_pnor_partition_table \ |
| 225 | %reldir%/create_read_window_partition_exists \ |
| 226 | %reldir%/write_prsv \ |
| 227 | %reldir%/write_ro \ |
| 228 | %reldir%/write_rw \ |
| 229 | %reldir%/write_patch \ |
| 230 | %reldir%/toc_no_name \ |
| 231 | %reldir%/toc_start_gt_end \ |
| 232 | %reldir%/toc_no_start \ |
| 233 | %reldir%/toc_no_end \ |
| 234 | %reldir%/toc_no_version \ |
| 235 | %reldir%/toc_flags \ |
| 236 | %reldir%/toc_overlap \ |
| 237 | %reldir%/toc_lookup_found \ |
| 238 | %reldir%/toc_lookup_failed \ |
| 239 | %reldir%/toc_missing_file \ |
| 240 | %reldir%/create_read_window_oob \ |
| 241 | %reldir%/create_read_window_toc \ |
| 242 | %reldir%/create_read_window_straddle_partitions \ |
| 243 | %reldir%/create_read_window_partition_invalid \ |
| 244 | %reldir%/read_patch \ |
| 245 | %reldir%/write_patch_resize \ |
| 246 | %reldir%/dump_flash \ |
| 247 | %reldir%/create_read_window_size \ |
| 248 | %reldir%/create_read_window_remap \ |
| 249 | %reldir%/create_write_window_ro_partition \ |
| 250 | %reldir%/create_write_window_rw_partition \ |
| 251 | %reldir%/create_write_window_unmapped |
Andrew Jeffery | 30bcf84 | 2018-03-26 12:13:20 +1030 | [diff] [blame] | 252 | endif |