OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python |
| 2 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 __author__ = 'nsanders@chromium.org (Nick Sanders)' |
| 7 |
| 8 import os, common |
| 9 from autotest_lib.client.bin import utils |
| 10 |
| 11 version = 1 |
| 12 |
| 13 def setup(tarball, topdir): |
| 14 srcdir = os.path.join(topdir, 'src') |
| 15 utils.extract_tarball_to_dir(tarball, srcdir) |
| 16 # 'Add' arm support. |
| 17 os.chdir(srcdir) |
| 18 utils.system('patch -p0 < ../iotools.arm.patch') |
| 19 |
| 20 utils.system('CROSS_COMPILE=${CTARGET_default}- make') |
| 21 utils.system('cp iotools %s' % topdir) |
| 22 os.chdir(topdir) |
| 23 |
| 24 |
| 25 # The source is grabbed from |
| 26 # http://iotools.googlecode.com/files/iotools-1.2.tar.gz |
| 27 pwd = os.getcwd() |
| 28 tarball = os.path.join(pwd, 'iotools-1.2.tar.gz') |
| 29 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) |
OLD | NEW |