OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 import os | 3 import os |
| 4 import common |
4 from autotest_lib.client.bin import utils | 5 from autotest_lib.client.bin import utils |
5 | 6 |
6 # To use this, you have to set PERL5LIB to: | 7 # To use this, you have to set PERL5LIB to: |
7 # autodir+'deps/boottool/lib/perl' | 8 # autodir+'deps/boottool/lib/perl' |
8 # or on Ubuntu we also need | 9 # or on Ubuntu we also need |
9 # autodir+'deps/boottool/share/perl' | 10 # autodir+'deps/boottool/share/perl' |
10 # because it uses nonstandard locations | 11 # because it uses nonstandard locations |
11 | 12 |
12 version = 1 | 13 version = 1 |
13 | 14 |
14 def setup(tarball, topdir): | 15 def setup(tarball, topdir): |
15 srcdir = os.path.join(topdir, 'src') | 16 srcdir = os.path.join(topdir, 'src') |
16 utils.extract_tarball_to_dir(tarball, srcdir) | 17 utils.extract_tarball_to_dir(tarball, srcdir) |
17 os.chdir(srcdir) | 18 os.chdir(srcdir) |
18 utils.system('perl Makefile.PL PREFIX=' + topdir) | 19 utils.system ('perl Makefile.PL PREFIX=' + topdir) |
19 utils.make() | 20 utils.system ('make') |
20 utils.make('install') | 21 utils.system ('make install') |
21 os.chdir(topdir) | 22 os.chdir(topdir) |
22 | 23 |
23 | 24 |
24 pwd = os.getcwd() | 25 pwd = os.getcwd() |
25 tarball = os.path.join(pwd, 'Linux-Bootloader-1.2.tar.gz') | 26 tarball = os.path.join(pwd, 'Linux-Bootloader-1.2.tar.gz') |
26 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) | 27 utils.update_version(pwd+'/src', False, version, setup, tarball, pwd) |
OLD | NEW |