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
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')
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest