path: root/mk
diff options
authorMatt Fleming <matt.fleming@intel.com>2013-03-22 14:54:09 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-04-23 15:30:17 +0100
commitfe283b78c973268f2d1f0309826ceeb5c9e8978d (patch)
treede90b141427ab9222bb3e82afef6f880778b3cf2 /mk
parentbb229372b2c3f9fbb0cdd0a7221a6cc4aba5d2ed (diff)
efi: Add network supportsyslinux-6.00-pre5
Add TCP and UDP support to the EFI firmware backend. This necessitated moving all tcp functions to a core_tcp_* prefix so that they could be implemented differently for BIOS+lwip and EFI. Unfortunately, the tcp_* prefix is already in use by the lwip code. To maintain symmetry, the UDP functions were also moved from net_core_* to core_udp_*. The net_core API was introduced in 5.x to allow the legacy PXE and lwip stacks to live side by side, and the intention was that net_core_init() would take a protocol argument to build a protocol-specific object. It turned out to be easier to call either udp or tcp functions directly because the semantics of read/write differ between protocols. Booting an IPv4 EFI PXE stack using tftp and http has been tested. There are a couple of TODO items left, o dns resolve code is missing o ftp hasn't been tested Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'mk')
2 files changed, 3 insertions, 3 deletions
diff --git a/mk/efi.mk b/mk/efi.mk
index 02817953..24cca8c1 100644
--- a/mk/efi.mk
+++ b/mk/efi.mk
@@ -39,7 +39,7 @@ CFLAGS = -I$(EFIINC) -I$(EFIINC)/$(EFI_SUBARCH) \
-Wall -I$(com32)/include -I$(com32)/include/sys \
-I$(core)/include -I$(core)/ $(CARCHOPT) \
-I$(com32)/lib/ -I$(com32)/libutil/include -std=gnu99 \
$(GCCWARN) -D__COM32__ -mno-red-zone
# gnuefi sometimes installs these under a gnuefi/ directory, and sometimes not
diff --git a/mk/lib.mk b/mk/lib.mk
index c39b0c9e..596e9284 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -63,7 +63,7 @@ LIBOTHER_OBJS = \
lrand48.o stack.o memccpy.o memchr.o \
mempcpy.o memmem.o memmove.o memswap.o \
perror.o qsort.o seed48.o \
- srand48.o sscanf.o strcasecmp.o \
+ srand48.o sscanf.o \
strerror.o errlist.o \
strnlen.o \
strncat.o strndup.o \
@@ -185,7 +185,7 @@ CORELIBOBJS = \
memcpy.o memset.o memcmp.o printf.o strncmp.o vfprintf.o \
strlen.o vsnprintf.o snprintf.o stpcpy.o strcmp.o strdup.o \
strcpy.o strncpy.o setjmp.o fopen.o fread.o fread2.o puts.o \
- strtoul.o strntoumax.o \
+ strtoul.o strntoumax.o strcasecmp.o \
sprintf.o strlcat.o strchr.o strlcpy.o strncasecmp.o ctypes.o \
fputs.o fwrite2.o fwrite.o fgetc.o fclose.o lmalloc.o \
sys/err_read.o sys/err_write.o sys/null_read.o \