[syslinux] 0001-syslinux.mk-determine-where-tftpboot-actually-is.patch

Jim Cromie jim.cromie at gmail.com
Sat Jun 11 09:13:43 PDT 2011


On Sat, Jun 11, 2011 at 6:30 AM, Gene Cumm <gene.cumm at gmail.com> wrote:
> On Sat, Jun 11, 2011 at 02:12, Jim Cromie <jim.cromie at gmail.com> wrote:
>> On Fri, Jun 10, 2011 at 8:40 PM, Jeffrey Hutzelman <jhutz at cmu.edu> wrote:
>>> On Fri, 2011-06-10 at 11:19 -0600, Jim Cromie wrote:
>
>>>> patch 2 lets me install *.c32 to a subdir
>>>
>>> This one looks reasonable (though I don't really get a vote)
>>
>> thanks for taking a look.
>
> Would it be better to do
>
> NETMODS ?= .    # let user install *.c32 to subdir
> TFTPBOOTMODS = $(TFTPBOOT)/$(NETMODS)
>
> or
>
> ifdef NETMODS
> TFTPBOOTMODS = $(TFTPBOOT)/$(NETMODS)
> else
> TFTPBOOTMODS = $(TFTPBOOT)
> endif
>
> --
> -Gene

Dunno. It looks like a question of makefile portability.
mk/com32.mk is already using constructs I dimly recall as non-working
on Sun or HP boxes (>10yrs ago, no details)

include $(MAKEDIR)/syslinux.mk
GCCOPT := $(call gcc_ok,-std=gnu99,)
GCCOPT += $(call gcc_ok,-m32,)

OTOH, various bashisms arent available:
[ -d /var/lib/tftpboot ] && echo /var/lib/tftpboot
$(shell -vx ...)




More information about the Syslinux mailing list