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 | |
| 15 | test_vpnor_create_read_window_vpnor_SOURCES = \ |
| 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 \ |
| 24 | %reldir%/create_read_window_vpnor.cpp |
| 25 | test_vpnor_create_read_window_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
Andrew Jeffery | a658253 | 2018-02-22 16:04:37 +1030 | [diff] [blame^] | 26 | test_vpnor_create_read_window_vpnor_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 27 | |
| 28 | test_vpnor_write_flash_vpnor_SOURCES = \ |
| 29 | $(TEST_MBOX_VPNOR_SRCS) \ |
| 30 | mboxd_pnor_partition_table.cpp \ |
| 31 | mboxd_flash_virtual.cpp \ |
| 32 | mtd.c \ |
| 33 | pnor_partition.cpp \ |
| 34 | %reldir%/write_flash_vpnor.cpp |
| 35 | test_vpnor_write_flash_vpnor_LDFLAGS = $(OESDK_TESTCASE_FLAGS) |
Andrew Jeffery | a658253 | 2018-02-22 16:04:37 +1030 | [diff] [blame^] | 36 | test_vpnor_write_flash_vpnor_LDADD = $(VPNOR_LDADD) |
Andrew Jeffery | 8598591 | 2018-02-22 10:20:31 +1030 | [diff] [blame] | 37 | |
| 38 | if VIRTUAL_PNOR_ENABLED |
| 39 | check_PROGRAMS += \ |
| 40 | %reldir%/create_pnor_partition_table \ |
| 41 | %reldir%/create_read_window_vpnor \ |
| 42 | %reldir%/write_flash_vpnor |
| 43 | endif |