aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2015-09-02 20:52:30 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2015-09-04 17:57:52 +0200
commit62f63cb7706974eba2c34dbea425bf2e9ede0f9e (patch)
tree0fa03d8a94a6fa0b506cce8c332d5dabeeaeff63 /mk
parent66105926f3d748de827eb863913171efb9624165 (diff)
downloadsyslinux-62f63cb7706974eba2c34dbea425bf2e9ede0f9e.tar.gz
syslinux-62f63cb7706974eba2c34dbea425bf2e9ede0f9e.tar.xz
syslinux-62f63cb7706974eba2c34dbea425bf2e9ede0f9e.zip
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.
Diffstat (limited to 'mk')
-rw-r--r--mk/com32.mk8
1 files changed, 6 insertions, 2 deletions
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)