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