From 62f63cb7706974eba2c34dbea425bf2e9ede0f9e Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 2 Sep 2015 20:52:30 +0200 Subject: libupload: Reworking tftp support to use core functions The libupload was using the pxe_call() directly for doing the tftp uploading stuff. This was only working with pxelinux. Since we do have lpxelinux, the libupload should use the core functions to get rid of thoses direct PXE calls. This patch does - add a tftp_put() function which supports core functions. - implement the call from libupload making the code much more simplier As a result {l}pxelinux can upload data to a tftp server is a similar way. HDT is getting the benefit of such code. --- mk/com32.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/com32.mk b/mk/com32.mk index 9a3b19d3..90eb7edd 100644 --- a/mk/com32.mk +++ b/mk/com32.mk @@ -67,12 +67,16 @@ CFLAGS = $(GCCOPT) $(GCCWARN) \ -fomit-frame-pointer -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ \ -nostdinc -iwithprefix include \ -I$(com32)/libutil/include -I$(com32)/include \ - -I$(com32)/include/sys $(GPLINCLUDE) + -I$(com32)/include/sys $(GPLINCLUDE) \ + -I$(topdir)/core \ + -I$(topdir)/core/include SFLAGS = $(GCCOPT) $(GCCWARN) \ -fomit-frame-pointer -D__COM32__ -D__FIRMWARE_$(FIRMWARE)__ \ -nostdinc -iwithprefix include \ -I$(com32)/libutil/include -I$(com32)/include \ - -I$(com32)/include/sys $(GPLINCLUDE) + -I$(com32)/include/sys $(GPLINCLUDE) \ + -I$(topdir)/core \ + -I$(topdir)/core/include COM32LD = $(com32)/lib/$(ARCH)/elf.ld LDFLAGS = -m elf_$(ARCH) -shared --hash-style=gnu -T $(COM32LD) -- cgit v1.2.3