[klibc] [PATCH] Add support for --param=name=value

Mike Pagano mpagano at gentoo.org
Thu Aug 4 06:29:41 PDT 2011


On Wed, Aug 03, 2011 at 06:32:05PM +0000, maximilian attems wrote:
> On Wed, Aug 03, 2011 at 01:07:38PM -0400, Mike Pagano wrote:
> <snipp previous sends>
> > That last patch did test successfully. 
> > 
> > I have recombined the two checks into one and tested this patch. It now checks the split as suggested. 
> > Thanks for the feedback, it's appreciated.
> > ---
> > 
> 
> please really test both cases and if you agree that this magic
> number is 2 then i can apply your patch with that change?
> 
> thank you.
> 
> -- 
> maks

Here are the test results of my script. The parameters appear to parse successfully.

my gcc parameters are: 
-march=prescott -O2 -pipe --param l1-cache-size=32 --param=omega-max-keys=64


And here is the result of a compilation that calls klcc with my patch in it.
I've surrounded a section with astericks which show the paramters were properly parsed.


 * v86d-0.1.10.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                      [ ok ]
 * checking ebuild checksums ;-) ...                                                                        [ ok ]
 * checking auxfile checksums ;-) ...                                                                       [ ok ]
 * checking miscfile checksums ;-) ...                                                                      [ ok ]
 * checking v86d-0.1.10.tar.bz2 ;-) ...                                                                     [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /usr/src/linux-3.0-gentoo
 * Found sources for kernel version:
 *     3.0.0-gentoo
>>> Unpacking source...
>>> Unpacking v86d-0.1.10.tar.bz2 to /var/tmp/portage/sys-apps/v86d-0.1.10/work
>>> Source unpacked in /var/tmp/portage/sys-apps/v86d-0.1.10/work
>>> Preparing source in /var/tmp/portage/sys-apps/v86d-0.1.10/work/v86d-0.1.10 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/v86d-0.1.10/work/v86d-0.1.10 ...
config.h successfully created.
You can run `make` now.
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/v86d-0.1.10/work/v86d-0.1.10 ...
make -j5 KDIR=/usr/src/linux 
make -e -w -C libs/lrmi-0.10 liblrmi.a

*******************************************************
klcc -march=prescott -O2 -pipe --param l1-cache-size=32 --param=omega-max-keys=64 -I/usr/src/linux/include -Ilibs/lrmi-0.10 -c -o v86_lrmi.o v86_lrmi.c

**********************************************************

klcc -march=prescott -O2 -pipe --param l1-cache-size=32 --param=omega-max-keys=64 -I/usr/src/linux/include -Ilibs/lrmi-0.10 -c -o v86_common.o v86_common.c
make[1]: Entering directory `/var/tmp/portage/sys-apps/v86d-0.1.10/work/v86d-0.1.10/libs/lrmi-0.10'
klcc -c  -march=prescott -O2 -pipe --param l1-cache-size=32 --param=omega-max-keys=64 -I/usr/src/linux/include -Ilibs/lrmi-0.10 -o lrmi.o lrmi.c
klcc -march=prescott -O2 -pipe --param l1-cache-size=32 --param=omega-max-keys=64 -I/usr/src/linux/include -Ilibs/lrmi-0.10 -c -o v86.o v86.c
ar -rs liblrmi.a lrmi.o
ar: creating liblrmi.a
make[1]: Leaving directory `/var/tmp/portage/sys-apps/v86d-0.1.10/work/v86d-0.1.10/libs/lrmi-0.10'
klcc -Wl,-O1 -Wl,--as-needed -Llibs/lrmi-0.10 -static -Wl,--section-start,vm86_ret=0x9000 v86_lrmi.o v86_common.o v86.o -llrmi -o v86d
>>> Source compiled.






More information about the klibc mailing list