@@ -203,26 +203,12 @@ CSRC = $(ALLCSRC) \
203203 $(PROJECT_DIR ) /ext/openblt/Target/Source/backdoor.c \
204204 $(PROJECT_DIR ) /ext/openblt/Target/Source/boot.c \
205205 $(PROJECT_DIR ) /ext/openblt/Target/Source/com.c \
206- $(PROJECT_DIR ) /ext/openblt/Target/Source/net.c \
207206 $(PROJECT_DIR ) /ext/openblt/Target/Source/xcp.c \
208207 $(PROJECT_DIR ) /ext/openblt/Target/Source/cop.c \
209208 $(PROJECT_DIR ) /bootloader/openblt_chibios/nvm.c \
210209 $(PROJECT_DIR ) /bootloader/openblt_chibios/clock-arch.c \
211210 $(PROJECT_DIR ) /hw_layer/openblt/hooks.c
212211
213- UIP_DIR = $(PROJECT_DIR ) /ext/openblt/Target/Source/third_party/uip
214-
215- # Collect UIP third party library files
216- UIP_CSRC = \
217- $(UIP_DIR ) /uip/uip.c \
218- $(UIP_DIR ) /uip/uip_arp.c \
219- $(UIP_DIR ) /uip/uip_timer.c \
220- $(UIP_DIR ) /uip/uiplib.c \
221- $(UIP_DIR ) /apps/dhcpc/dhcpc.c \
222- $(PROJECT_DIR ) /hw_layer/openblt/netdev.c
223-
224- CSRC += $(UIP_CSRC )
225-
226212# C++ sources that can be compiled in ARM or THUMB mode depending on the global
227213# todo: reduce code duplication with primary Makefile!!!
228214# setting.
@@ -312,6 +298,27 @@ INCDIR += $(ALLINC) \
312298 $(UIP_DIR ) /apps/dhcpc \
313299 config
314300
301+ ifeq ($(EFI_ETHERNET ) ,yes)
302+ UIP_DIR = $(PROJECT_DIR)/ext/openblt/Target/Source/third_party/uip
303+
304+ # Collect network and UIP third party library files
305+ UIP_CSRC = \
306+ $(UIP_DIR)/uip/uip.c \
307+ $(UIP_DIR)/uip/uip_arp.c \
308+ $(UIP_DIR)/uip/uip_timer.c \
309+ $(UIP_DIR)/uip/uiplib.c \
310+ $(UIP_DIR)/apps/dhcpc/dhcpc.c \
311+ $(PROJECT_DIR)/hw_layer/openblt/netdev.c
312+
313+ CSRC += \
314+ $(PROJECT_DIR)/ext/openblt/Target/Source/net.c \
315+ $(UIP_CSRC)
316+
317+ INCDIR += \
318+ $(UIP_DIR)/uip \
319+ $(UIP_DIR)/apps/dhcpc
320+ endif
321+
315322BUILDDIR =blbuild
316323
317324#
0 commit comments