- fixed test_emac_sim

git-svn-id: http://moon:8086/svn/mips@205 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2021-11-23 19:32:00 +00:00
parent 794bd38593
commit 30b0a4c619
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -442,8 +442,8 @@ $(BUILD_DIR)/test_gpio.elf: $(BUILD_DIR) test_gpio.c marvell_88e1111.c mii-bitba
cat $@.srec | $(PACKHEX) > $@.pack cat $@.srec | $(PACKHEX) > $@.pack
$(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex $(OBJCOPY) -O ihex -I binary $@.flash.bin $@.hex
$(BUILD_DIR)/test_emac_sim.elf: $(BUILD_DIR) test_emac_sim.c emac.c emac.h $(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 emac.c $(LIBS) >$@.map $(CC) $(CFLAGS) -o $@ -Os test_emac_sim.c common/network/emac.c $(LIBS) >$@.map
$(OBJDUMP) -d $@ > $@.dis $(OBJDUMP) -d $@ > $@.dis
$(OBJCOPY) $@ -O binary $@.bin $(OBJCOPY) $@ -O binary $@.bin
$(OBJCOPY) -O srec $@ $@.srec $(OBJCOPY) -O srec $@ $@.srec
+1 -1
View File
@@ -8,7 +8,7 @@
#include <libsys/irq.h> #include <libsys/irq.h>
#include <libsys/cop0.h> #include <libsys/cop0.h>
#include "emac.h" #include <network/emac.h>
volatile uint32_t g_rx_pkt_cnt; volatile uint32_t g_rx_pkt_cnt;
volatile uint32_t g_rx_byte_cnt; volatile uint32_t g_rx_byte_cnt;