blob: 57237572f4c1770e28ecb25239f03723b61a881b [file] [log] [blame]
#!/usr/bin/python2
import os
import shutil
from autotest_lib.client.bin import utils
version = 1
def setup(topdir):
srcdir = os.path.join(topdir, 'src')
os.chdir(srcdir)
utils.configure('--with-elfutils=elfutils ' \
'--prefix=%s/systemtap' % topdir)
utils.make('-j %d' % utils.count_cpus())
utils.make('install')
os.chdir(topdir)
pwd = os.getcwd()
utils.update_version(pwd+'/src', True, version, setup, pwd)