[syslinux] Patch to port isohybrid.pl to isohybrid.c
Geert Stappers
stappers at stappers.nl
Mon Apr 12 23:27:11 PDT 2010
>Op 20100412 om 14:55 schreef P J P:
>> Hello all,
>>
>> Past few days I was working on porting the isohybrid Perl script to c.
>> (-> https://fedorahosted.org/fedora-engineering-services/ticket/15)
>>
>> The first patch towards the same could be accessed
>>
>> from: http://pjp.dgplug.org/tools/syslinux-3.86-isohybrid.patch
>
>--- syslinux-3.86/utils/Makefile 2010-03-31 21:54:25.000000000 +0530
>+++ syslinux-3.86.1/utils/Makefile 2010-04-11 23:29:41.633885260 +0530
>@@ -36,10 +36,8 @@
> $(PERL) bin2hex.pl < ../mbr/mbr.bin | cat mkdiskimage.in - > $@
> chmod a+x $@
>
>-isohybrid: isohybrid.in $(ISOHDPFX) bin2hex.pl
>- cp -f isohybrid.in $@
>- for f in $(ISOHDPFX) ; do $(PERL) bin2hex.pl < $$f >> $@ ; done
>- chmod a+x $@
>+isohybrid: isohybrid.c
>+ $(CC) $(UMAKEDEPS) $(CFLAGS) -o $@ $<
>
> gethostip: gethostip.o
> $(CC) $(LDFLAGS) -o $@ $^
>
>>
>> I would really appreciate it if somebody could have a look at it
>> and let me know the feedback.
$(ISOHDPFX) went as hexdata[] into the source file isohybrid.c a very
static way, it should be piggybacked to isohybrid, the executable.
The Makefile target will look something like
isohybrid: isohybrid.c $(ISOHDPFX)
$(CC) $(UMAKEDEPS) $(CFLAGS) -o $@ isohybrid.c
for f in $(ISOHDPFX) ; do cat $$f >> $@ ; done
>> Regards
>> -Prasad
>> PS: Please don't send me html/attachment/Fwd mails
>>
Groeten
Geert Stappers
More information about the Syslinux
mailing list