mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Merge branch 'main' into fix/cpu-vlan-init
This commit is contained in:
191 files changed
+4925
-1825
No files matched your search
+12
-1
@@ -31,7 +31,9 @@ TESTS = $(BUILDDIR)/test_cmd_editor \
|
||||
$(BUILDDIR)/test_tick_gate \
|
||||
$(BUILDDIR)/test_cpu_vlan_full \
|
||||
$(BUILDDIR)/test_cpu_vlan_restricted \
|
||||
$(BUILDDIR)/test_cpu_vlan_8372
|
||||
$(BUILDDIR)/test_cpu_vlan_8372\
|
||||
$(BUILDDIR)/test_nic_rx \
|
||||
$(BUILDDIR)/test_lacp
|
||||
|
||||
# The table tests link the register mock and one environment file; stub/
|
||||
# stands in for the two headers a firmware build generates.
|
||||
@@ -54,9 +56,18 @@ $(BUILDDIR)/test_port_tables: test_port_tables.c $(TABLE_ENV) hw_mock.h | $(BUIL
|
||||
$(BUILDDIR)/test_tick_gate: test_tick_gate.c support.c $(SRCROOT)/cmd_editor.c | $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
|
||||
|
||||
# Exercise the production RX ring reader; only the hardware DMA edge is mocked.
|
||||
# Discard unused TX functions so this RX fixture needs no TX register mocks.
|
||||
$(BUILDDIR)/test_nic_rx: test_nic_rx.c $(SRCROOT)/rtl837x_nic.c $(SRCROOT)/rtl837x_nic.h | $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) -ffunction-sections -fdata-sections $(filter %.c,$^) -o $@ $(LDFLAGS) -Wl,--gc-sections
|
||||
|
||||
$(BUILDDIR)/test_page_json: test_page_json.c $(TABLE_ENV) hw_mock.h | $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) $(filter %.c,$^) -o $@ $(LDFLAGS)
|
||||
|
||||
# rtl837x_lacp.c is compiled UNMODIFIED from the firmware tree.
|
||||
$(BUILDDIR)/test_lacp: test_lacp.c $(SRCROOT)/rtl837x_lacp.c | $(BUILDDIR)
|
||||
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
|
||||
|
||||
# httpd/httpd.c and uip/uip.c are compiled UNMODIFIED from the firmware tree;
|
||||
# this test carries the environment below them itself.
|
||||
$(BUILDDIR)/test_httpd_tx: test_httpd_tx.c $(SRCROOT)/httpd/httpd.c $(SRCROOT)/uip/uip.c | $(BUILDDIR)
|
||||
|
||||
Reference in new issue
Block a user