[syslinux] Patch to port isohybrid.pl to isohybrid.c

Geert Stappers stappers at stappers.nl
Wed Apr 14 14:28:32 PDT 2010


Op 20100413 om 18:24 schreef P J P:
> --- On Tue, 13/4/10, Geert Stappers <stappers at stappers.nl> wrote:
> > isohybrid: isohybrid.c.in $(ISOHDPFX) bin2hex.pl
> > cp -f isohybrid.c.in isohybrid.c
> > for f in $(ISOHDPFX); do $(PERL) bin2hex.pl < $$f >> isohybrid.c; done
> > $(CC) $(UMAKEDEPS) $(CFLAGS) -o $@ isohybrid.c
> 
> I tried this, bin2hex.pl outputs the data as it does in the original
> Perl script, that way it doesn't compile. May be I could edit the
> bin2hex.pl to output an C array, which will compile properly.

Make a 'bin2arry4c.pl' or something alike


Cheers
Geert Stappers
-- 
isohybrid: isohybrid.c.in $(ISOHDPFX) bin2array4c.pl
	cp -f isohybrid.c.in isohybrid.c
	for f in $(ISOHDPFX); do $(PERL) bin2array4c.pl < $$f >> isohybrid.c; done
	echo '} ; /* end of hex_data[] */' >> isohybrid.c
	$(CC) $(UMAKEDEPS) $(CFLAGS) -o $@ isohybrid.c




More information about the Syslinux mailing list