Prev: TM6010 driver and firmware
Next: Winbond CIR driver for the WPCD376I chip (ACPI/PNP id WEC1022)
From: Vladimir Dronnikov on 6 Oct 2009 01:40 > Just a couple of little changes needed: Right. I've sent the updated patch. Please, take a look. Best regards, -- Vladimir -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Rob Landley on 5 Oct 2009 17:40 On Monday 05 October 2009 11:01:39 Vladimir Dronnikov wrote: > From: Vladimir Dronnikov <dronnikov(a)gmail.com> > > drivers/md/unroll.pl replaced by awk script to drop build-time dependency > on perl > > Signed-off-by: Vladimir Dronnikov <dronnikov(a)gmail.com> Acked-by: Rob Landley <rob(a)landley.net> We already discussed this on another mailing list, thread starts at: http://lists.impactlinux.com/pipermail/firmware-impactlinux.com/2009-October/000328.html I've added this as patch #4 in the perl removal series I've submitted during the last few merge windows. Thanks, Rob -- Latency is more important than throughput. It's that simple. - Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Neil Brown on 5 Oct 2009 19:10 On Monday October 5, dronnikov(a)gmail.com wrote: > From: Vladimir Dronnikov <dronnikov(a)gmail.com> > > drivers/md/unroll.pl replaced by awk script to drop build-time dependency on perl Thanks for the patch, and thanks to Rob Landley for the pointer to where this was discussed elsewhere. The change makes sense to me. Just a couple of little changes needed: > quiet_cmd_unroll = UNROLL $@ > - cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \ > + cmd_unroll = awk -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \ > < $< > $@ || ( rm -f $@ && exit 1 ) > The top level Makefile defines AWK = awk so I think $(AWK) should be used here, rather than a literal 'awk'. > --- linux-2.6.31.orig/drivers/md/raid6test/Makefile Wed Sep 9 22:13:59 2009 > +++ linux-2.6.31/drivers/md/raid6test/Makefile Mon Oct 5 20:10:15 2009 > @@ -7,7 +7,7 @@ > OPTFLAGS = -O2 # Adjust as desired > CFLAGS = -I.. -I ../../../include -g $(OPTFLAGS) > LD = ld > -PERL = perl > +AWK = awk > AR = ar > RANLIB = ranlib > > @@ -35,35 +35,35 @@ > raid6test: test.c raid6.a > $(CC) $(CFLAGS) -o raid6test $^ > > -raid6altivec1.c: raid6altivec.uc ../unroll.pl > - $(PERL) ../unroll.pl 1 < raid6altivec.uc > $@ > +raid6altivec1.c: raid6altivec.uc ../unroll.awk > + $(AWK) ../unroll.awk 1 < raid6altivec.uc > $@ In the md/Makefile, you pass the unroll count as -vN=$NUMBER in raid6test/Makefile you pass it as just $NUMBER one of these is wrong. Which one? Well..... > --- /dev/null Thu Jan 1 00:00:00 1970 > +++ linux-2.6.31/drivers/md/unroll.awk Mon Oct 5 20:12:24 2009 > @@ -0,0 +1,20 @@ > + > +# This filter requires one command line argument (n) which must be a > +# decimal number. According to the comment, "$NUMBER" is correct. But > +# > +# Repeat each input line containing $$ n times, replacing $$ with 0...n-1. > +# Replace each $# with n, and each $* with a single $. > + > +BEGIN { > + n = N + 0 > +} according to the code "-vN=$NUMBER" is correct. So you need to fix either the code or the comment, then fix one of the two Makefiles. You might like to try running the test in raid6test as well, just to triple check that it all still works. Thanks, NeilBrown > +{ > + if (/\$\$/) { rep = n } else { rep = 1 } > + for (i = 0; i < rep; ++i) { > + tmp = $0 > + gsub(/\$\$/, i, tmp) > + gsub(/\$\#/, n, tmp) > + gsub(/\$\*/, "$", tmp) > + print tmp > + } > +} > --- linux-2.6.31.orig/drivers/md/unroll.pl Wed Sep 9 22:13:59 2009 > +++ /dev/null Thu Jan 1 00:00:00 1970 > @@ -1,24 +0,0 @@ > -#!/usr/bin/perl > -# > -# Take a piece of C code and for each line which contains the sequence $$ > -# repeat n times with $ replaced by 0...n-1; the sequence $# is replaced > -# by the unrolling factor, and $* with a single $ > -# > - > -($n) = @ARGV; > -$n += 0; > - > -while ( defined($line = <STDIN>) ) { > - if ( $line =~ /\$\$/ ) { > - $rep = $n; > - } else { > - $rep = 1; > - } > - for ( $i = 0 ; $i < $rep ; $i++ ) { > - $tmp = $line; > - $tmp =~ s/\$\$/$i/g; > - $tmp =~ s/\$\#/$n/g; > - $tmp =~ s/\$\*/\$/g; > - print $tmp; > - } > -} -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: berk walker on 5 Oct 2009 20:30 Rob Landley wrote: > On Monday 05 October 2009 11:01:39 Vladimir Dronnikov wrote: >> From: Vladimir Dronnikov <dronnikov(a)gmail.com> >> >> drivers/md/unroll.pl replaced by awk script to drop build-time dependency >> on perl >> >> Signed-off-by: Vladimir Dronnikov <dronnikov(a)gmail.com> > > Acked-by: Rob Landley <rob(a)landley.net> > > We already discussed this on another mailing list, thread starts at: > > http://lists.impactlinux.com/pipermail/firmware-impactlinux.com/2009-October/000328.html > > I've added this as patch #4 in the perl removal series I've submitted > during the last few merge windows. > > Thanks, > > Rob Why is perl being removed? [I know that I have missed a lot] berk- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Rob Landley on 6 Oct 2009 01:00 On Monday 05 October 2009 18:57:14 berk walker wrote: > Rob Landley wrote: > > On Monday 05 October 2009 11:01:39 Vladimir Dronnikov wrote: > >> From: Vladimir Dronnikov <dronnikov(a)gmail.com> > >> > >> drivers/md/unroll.pl replaced by awk script to drop build-time > >> dependency on perl > >> > >> Signed-off-by: Vladimir Dronnikov <dronnikov(a)gmail.com> > > > > Acked-by: Rob Landley <rob(a)landley.net> > > > > We already discussed this on another mailing list, thread starts at: > > > > http://lists.impactlinux.com/pipermail/firmware-impactlinux.com/2009-Octo > >ber/000328.html > > > > I've added this as patch #4 in the perl removal series I've submitted > > during the last few merge windows. > > > > Thanks, > > > > Rob > > Why is perl being removed? [I know that I have missed a lot] > berk- Before 2.6.25 the kernel build had never used perl, and the first perl removal patches were submitted for 2.6.26, so the real question is "why was it added, and was it worth it?" There was a long thread on an earlier submission of the patches, which Alan Cox concluded (as far as I'm concerned, unless Linus, Andrew Morton, or maybe Al Viro want to weigh in) with this post: http://lkml.indiana.edu/hypermail/linux/kernel/0901.1/02108.html Archives are linked from there, you might have to check adjacent weeks too. Rob -- Latency is more important than throughput. It's that simple. - Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Next
|
Last
Pages: 1 2 Prev: TM6010 driver and firmware Next: Winbond CIR driver for the WPCD376I chip (ACPI/PNP id WEC1022) |