1*5345c51eSAndrew JefferyAM_LIBS = $(CODE_COVERAGE_LIBS) 2*5345c51eSAndrew JefferyAM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) 3*5345c51eSAndrew JefferyAM_CFLAGS = $(CODE_COVERAGE_CFLAGS) 4*5345c51eSAndrew JefferyAM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) 5*5345c51eSAndrew Jeffery 6*5345c51eSAndrew Jefferytest_sanity_SOURCES = %reldir%/sanity.c 7*5345c51eSAndrew Jeffery 8*5345c51eSAndrew Jefferytest_copy_flash_SOURCES = \ 9*5345c51eSAndrew Jeffery %reldir%/copy_flash.c \ 10*5345c51eSAndrew Jeffery mboxd_flash_physical.c \ 11*5345c51eSAndrew Jeffery common.c mtd.c \ 12*5345c51eSAndrew Jeffery %reldir%/tmpf.c 13*5345c51eSAndrew Jeffery 14*5345c51eSAndrew Jefferytest_erase_flash_SOURCES = \ 15*5345c51eSAndrew Jeffery %reldir%/erase_flash.c \ 16*5345c51eSAndrew Jeffery mboxd_flash_physical.c \ 17*5345c51eSAndrew Jeffery common.c \ 18*5345c51eSAndrew Jeffery %reldir%/tmpf.c 19*5345c51eSAndrew Jeffery 20*5345c51eSAndrew Jefferytest_write_flash_SOURCES = \ 21*5345c51eSAndrew Jeffery %reldir%/write_flash.c \ 22*5345c51eSAndrew Jeffery mboxd_flash_physical.c \ 23*5345c51eSAndrew Jeffery common.c \ 24*5345c51eSAndrew Jeffery %reldir%/tmpf.c 25*5345c51eSAndrew Jeffery 26*5345c51eSAndrew JefferyTEST_MBOX_SRCS = \ 27*5345c51eSAndrew Jeffery mboxd_msg.c \ 28*5345c51eSAndrew Jeffery mboxd_windows.c \ 29*5345c51eSAndrew Jeffery mboxd_lpc.c \ 30*5345c51eSAndrew Jeffery mboxd_lpc_physical.c \ 31*5345c51eSAndrew Jeffery common.c \ 32*5345c51eSAndrew Jeffery mboxd_flash_physical.c 33*5345c51eSAndrew Jeffery 34*5345c51eSAndrew JefferyTEST_MOCK_SRCS = %reldir%/tmpf.c %reldir%/mbox.c %reldir%/system.c 35*5345c51eSAndrew Jeffery 36*5345c51eSAndrew Jefferytest_get_mbox_info_v2_SOURCES = %reldir%/get_mbox_info_v2.c \ 37*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 38*5345c51eSAndrew Jeffery 39*5345c51eSAndrew Jefferytest_reset_state_SOURCES = %reldir%/reset_state.c \ 40*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 41*5345c51eSAndrew Jeffery 42*5345c51eSAndrew Jefferytest_get_flash_info_v2_SOURCES = %reldir%/get_flash_info_v2.c \ 43*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 44*5345c51eSAndrew Jeffery 45*5345c51eSAndrew Jefferytest_create_read_window_v2_SOURCES = %reldir%/create_read_window_v2.c \ 46*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 47*5345c51eSAndrew Jeffery 48*5345c51eSAndrew Jefferytest_create_write_window_v2_SOURCES = %reldir%/create_write_window_v2.c \ 49*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 50*5345c51eSAndrew Jeffery 51*5345c51eSAndrew Jefferytest_close_window_v2_SOURCES = %reldir%/close_window_v2.c \ 52*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 53*5345c51eSAndrew Jeffery 54*5345c51eSAndrew Jefferytest_mark_write_dirty_v2_SOURCES = %reldir%/mark_write_dirty_v2.c \ 55*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 56*5345c51eSAndrew Jeffery 57*5345c51eSAndrew Jefferytest_write_flush_v2_SOURCES = %reldir%/write_flush_v2.c \ 58*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 59*5345c51eSAndrew Jeffery 60*5345c51eSAndrew Jefferytest_mark_write_erased_v2_SOURCES = %reldir%/mark_write_erased_v2.c \ 61*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 62*5345c51eSAndrew Jeffery 63*5345c51eSAndrew Jefferytest_bmc_event_ack_v2_SOURCES = %reldir%/bmc_event_ack_v2.c \ 64*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 65*5345c51eSAndrew Jeffery 66*5345c51eSAndrew Jefferytest_create_oversize_window_SOURCES = %reldir%/create_oversize_window.c \ 67*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 68*5345c51eSAndrew Jeffery 69*5345c51eSAndrew Jefferytest_create_zero_size_window_SOURCES = %reldir%/create_zero_size_window.c \ 70*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 71*5345c51eSAndrew Jeffery 72*5345c51eSAndrew Jefferytest_implicit_flush_SOURCES = %reldir%/implicit_flush.c \ 73*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 74*5345c51eSAndrew Jeffery 75*5345c51eSAndrew Jefferytest_request_high_version_SOURCES = %reldir%/request_high_version.c \ 76*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 77*5345c51eSAndrew Jeffery 78*5345c51eSAndrew Jefferytest_request_low_version_SOURCES = %reldir%/request_low_version.c \ 79*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 80*5345c51eSAndrew Jeffery 81*5345c51eSAndrew Jefferytest_mark_read_dirty_SOURCES = %reldir%/mark_read_dirty.c \ 82*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 83*5345c51eSAndrew Jeffery 84*5345c51eSAndrew Jefferytest_read_window_write_flush_SOURCES = %reldir%/read_window_write_flush.c \ 85*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 86*5345c51eSAndrew Jeffery 87*5345c51eSAndrew Jefferytest_read_window_mark_write_erased_SOURCES = %reldir%/read_window_mark_write_erased.c \ 88*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 89*5345c51eSAndrew Jeffery 90*5345c51eSAndrew Jefferytest_write_window_dirty_erase_SOURCES = %reldir%/write_window_dirty_erase.c \ 91*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 92*5345c51eSAndrew Jeffery 93*5345c51eSAndrew Jefferytest_invalid_command_SOURCES = %reldir%/invalid_command.c \ 94*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 95*5345c51eSAndrew Jeffery 96*5345c51eSAndrew Jefferytest_read_window_cycle_SOURCES = %reldir%/read_window_cycle.c \ 97*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 98*5345c51eSAndrew Jeffery 99*5345c51eSAndrew Jefferytest_sequence_numbers_SOURCES = %reldir%/sequence_numbers.c \ 100*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 101*5345c51eSAndrew Jeffery 102*5345c51eSAndrew Jefferytest_get_mbox_info_v2_timeout_SOURCES = %reldir%/get_mbox_info_v2_timeout.c \ 103*5345c51eSAndrew Jeffery $(TEST_MBOX_SRCS) $(TEST_MOCK_SRCS) 104*5345c51eSAndrew Jeffery 105*5345c51eSAndrew JefferyTEST_MBOX_VPNOR_SRCS = common.c pnor_partition_table.cpp 106*5345c51eSAndrew Jeffery 107*5345c51eSAndrew Jefferytest_create_pnor_partition_table_SOURCES = \ 108*5345c51eSAndrew Jeffery $(TEST_MBOX_VPNOR_SRCS) \ 109*5345c51eSAndrew Jeffery %reldir%/create_pnor_partition_table.cpp 110*5345c51eSAndrew Jefferytest_create_pnor_partition_table_LDFLAGS = $(OESDK_TESTCASE_FLAGS) 111*5345c51eSAndrew Jefferytest_create_pnor_partition_table_LDADD = -lstdc++fs \ 112*5345c51eSAndrew Jeffery $(SDBUSPLUS_LIBS) \ 113*5345c51eSAndrew Jeffery $(PHOSPHOR_LOGGING_LIBS) \ 114*5345c51eSAndrew Jeffery $(PHOSPHOR_DBUS_INTERFACES_LIBS) 115*5345c51eSAndrew Jeffery 116*5345c51eSAndrew Jefferytest_create_read_window_vpnor_SOURCES = \ 117*5345c51eSAndrew Jeffery $(TEST_MBOX_VPNOR_SRCS) $(TEST_MOCK_SRCS) \ 118*5345c51eSAndrew Jeffery mboxd_msg.c \ 119*5345c51eSAndrew Jeffery mboxd_windows.c \ 120*5345c51eSAndrew Jeffery mboxd_lpc.c \ 121*5345c51eSAndrew Jeffery mboxd_lpc_virtual.cpp \ 122*5345c51eSAndrew Jeffery mboxd_pnor_partition_table.cpp \ 123*5345c51eSAndrew Jeffery mboxd_flash_virtual.cpp \ 124*5345c51eSAndrew Jeffery pnor_partition.cpp \ 125*5345c51eSAndrew Jeffery %reldir%/create_read_window_vpnor.cpp 126*5345c51eSAndrew Jefferytest_create_read_window_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS) 127*5345c51eSAndrew Jefferytest_create_read_window_vpnor_LDADD = -lstdc++fs \ 128*5345c51eSAndrew Jeffery $(SDBUSPLUS_LIBS) \ 129*5345c51eSAndrew Jeffery $(PHOSPHOR_LOGGING_LIBS) \ 130*5345c51eSAndrew Jeffery $(PHOSPHOR_DBUS_INTERFACES_LIBS) 131*5345c51eSAndrew Jeffery 132*5345c51eSAndrew Jefferytest_write_flash_vpnor_SOURCES = \ 133*5345c51eSAndrew Jeffery $(TEST_MBOX_VPNOR_SRCS) \ 134*5345c51eSAndrew Jeffery mboxd_pnor_partition_table.cpp \ 135*5345c51eSAndrew Jeffery mboxd_flash_virtual.cpp \ 136*5345c51eSAndrew Jeffery mtd.c \ 137*5345c51eSAndrew Jeffery pnor_partition.cpp \ 138*5345c51eSAndrew Jeffery %reldir%/write_flash_vpnor.cpp 139*5345c51eSAndrew Jefferytest_write_flash_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS) 140*5345c51eSAndrew Jefferytest_write_flash_vpnor_LDADD = -lstdc++fs \ 141*5345c51eSAndrew Jeffery $(SDBUSPLUS_LIBS) \ 142*5345c51eSAndrew Jeffery $(PHOSPHOR_LOGGING_LIBS) \ 143*5345c51eSAndrew Jeffery $(PHOSPHOR_DBUS_INTERFACES_LIBS) 144*5345c51eSAndrew Jeffery 145*5345c51eSAndrew Jefferycheck_PROGRAMS = %reldir%/sanity \ 146*5345c51eSAndrew Jeffery %reldir%/copy_flash \ 147*5345c51eSAndrew Jeffery %reldir%/erase_flash \ 148*5345c51eSAndrew Jeffery %reldir%/write_flash \ 149*5345c51eSAndrew Jeffery %reldir%/get_mbox_info_v2 \ 150*5345c51eSAndrew Jeffery %reldir%/reset_state \ 151*5345c51eSAndrew Jeffery %reldir%/get_flash_info_v2 \ 152*5345c51eSAndrew Jeffery %reldir%/create_read_window_v2 \ 153*5345c51eSAndrew Jeffery %reldir%/create_write_window_v2 \ 154*5345c51eSAndrew Jeffery %reldir%/close_window_v2 \ 155*5345c51eSAndrew Jeffery %reldir%/mark_write_dirty_v2 \ 156*5345c51eSAndrew Jeffery %reldir%/write_flush_v2 \ 157*5345c51eSAndrew Jeffery %reldir%/mark_write_erased_v2 \ 158*5345c51eSAndrew Jeffery %reldir%/bmc_event_ack_v2 \ 159*5345c51eSAndrew Jeffery %reldir%/create_oversize_window \ 160*5345c51eSAndrew Jeffery %reldir%/create_zero_size_window \ 161*5345c51eSAndrew Jeffery %reldir%/implicit_flush \ 162*5345c51eSAndrew Jeffery %reldir%/request_high_version \ 163*5345c51eSAndrew Jeffery %reldir%/request_low_version \ 164*5345c51eSAndrew Jeffery %reldir%/mark_read_dirty \ 165*5345c51eSAndrew Jeffery %reldir%/read_window_write_flush \ 166*5345c51eSAndrew Jeffery %reldir%/read_window_mark_write_erased \ 167*5345c51eSAndrew Jeffery %reldir%/write_window_dirty_erase \ 168*5345c51eSAndrew Jeffery %reldir%/invalid_command \ 169*5345c51eSAndrew Jeffery %reldir%/read_window_cycle \ 170*5345c51eSAndrew Jeffery %reldir%/sequence_numbers \ 171*5345c51eSAndrew Jeffery %reldir%/get_mbox_info_v2_timeout 172*5345c51eSAndrew Jeffery 173*5345c51eSAndrew Jefferyif VIRTUAL_PNOR_ENABLED 174*5345c51eSAndrew Jefferycheck_PROGRAMS += \ 175*5345c51eSAndrew Jeffery %reldir%/create_pnor_partition_table \ 176*5345c51eSAndrew Jeffery %reldir%/create_read_window_vpnor \ 177*5345c51eSAndrew Jeffery %reldir%/write_flash_vpnor 178*5345c51eSAndrew Jefferyendif 179