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