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