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