Martin,

Ping?

On Wed, Feb 17, 2010 at 10:06 PM, Eric Li(李咏竹) <[email protected]> wrote:

> resending, adding --build as well.
>
>
> Index: client/tests/dbench/dbench.py
> ===================================================================
> --- client/tests/dbench/dbench.py       (revision 4249)
> +++ client/tests/dbench/dbench.py       (working copy)
> @@ -12,7 +12,14 @@
>
>          os.chdir(self.srcdir)
>
>          utils.system('patch -p1 < ../dbench_startup.patch')
> -        utils.system('./configure')
> +        # CBUILD and CHOST is env vars used inside Chromium OS build
> environment
> +        # for cross compiling.
> +        if 'CBUILD' in os.environ and 'CHOST' in os.environ:
> +            config_params = '--build=%s --host=%s' %
> (os.environ['CBUILD'],
> +                                                      os.environ['CHOST'])
>
> +        else:
> +            config_params = ''
> +        utils.system('./configure %s' % config_params)
>          utils.system('make')
>
>
> On Wed, Feb 17, 2010 at 7:14 PM, Eric Li(李咏竹) <[email protected]> wrote:
>
>> Patch for dbench.py for cross compiling.  The purpose of this change is to
>> make dbench cross-compilable for Chromium OS arm build.
>>
>> Should not impact any existing dbench testers.
>>
>> Index: client/tests/dbench/dbench.py
>> ===================================================================
>> --- client/tests/dbench/dbench.py       (revision 4249)
>> +++ client/tests/dbench/dbench.py       (working copy)
>> @@ -12,7 +12,13 @@
>>          os.chdir(self.srcdir)
>>
>>          utils.system('patch -p1 < ../dbench_startup.patch')
>> -        utils.system('./configure')
>> +        # CHOST is an env var used in Chromium OS build environment for
>> +        # cross compiling.
>> +        if 'CHOST' in os.environ:
>> +            config_params = '--host=%s' % os.environ['CHOST']
>> +        else:
>> +            config_params = ''
>> +        utils.system('./configure %s' % config_params)
>>          utils.system('make')
>>
>> --
>> Eric Li
>> 李咏竹
>> Google Kirkland
>>
>>
>>
>
>
> --
> Eric Li
> 李咏竹
> Google Kirkland
>
>
>


-- 
Eric Li
李咏竹
Google Kirkland
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to