From 30b0a4c61949e2cc144ccf705e11c2d5e870241c Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Tue, 23 Nov 2021 19:32:00 +0000 Subject: [PATCH] - fixed test_emac_sim git-svn-id: http://moon:8086/svn/mips@205 a8ebac50-d88d-4704-bea3-6648445a41b3 --- src/Makefile | 4 ++-- src/test_emac_sim.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index f36fcb7..89867a8 100644 --- a/src/Makefile +++ b/src/Makefile @@ -442,8 +442,8 @@ $(BUILD_DIR)/test_gpio.elf: $(BUILD_DIR) test_gpio.c marvell_88e1111.c mii-bitba cat $@.srec | $(PACKHEX) > $@.pack $(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex -$(BUILD_DIR)/test_emac_sim.elf: $(BUILD_DIR) test_emac_sim.c emac.c emac.h - $(CC) $(CFLAGS) -o $@ -Os test_emac_sim.c emac.c $(LIBS) >$@.map +$(BUILD_DIR)/test_emac_sim.elf: $(BUILD_DIR) test_emac_sim.c common/network/emac.c common/network/emac.h + $(CC) $(CFLAGS) -o $@ -Os test_emac_sim.c common/network/emac.c $(LIBS) >$@.map $(OBJDUMP) -d $@ > $@.dis $(OBJCOPY) $@ -O binary $@.bin $(OBJCOPY) -O srec $@ $@.srec diff --git a/src/test_emac_sim.c b/src/test_emac_sim.c index 8ff27e7..96447fd 100644 --- a/src/test_emac_sim.c +++ b/src/test_emac_sim.c @@ -8,7 +8,7 @@ #include #include -#include "emac.h" +#include volatile uint32_t g_rx_pkt_cnt; volatile uint32_t g_rx_byte_cnt;