From faf0fde11c977a22c74822260883d2968ac2cf97 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Thu, 1 May 2014 09:04:58 -0700 Subject: [PATCH] backports: add ckmake binary requirements Signed-off-by: Luis R. Rodriguez --- devel/ckmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) mode change 100644 => 100755 devel/ckmake diff --git a/devel/ckmake b/devel/ckmake old mode 100644 new mode 100755 index 3e3d95eeddfe..0c238a65de8d --- a/devel/ckmake +++ b/devel/ckmake @@ -25,6 +25,14 @@ from threading import Thread, Lock from shutil import copytree, ignore_patterns, rmtree, copyfileobj from time import sleep +# find self +source_dir = os.path.abspath(os.path.dirname(__file__)) +source_dir = os.path.dirname(source_dir) +# add parent directory to path to get to lib/ +sys.path.append(source_dir) +# import libraries we need +from lib import bpreqs as reqs + releases_processed = [] releases_baking = [] processed_lock = Lock() @@ -580,6 +588,11 @@ def build_krange(krange_list): return {} if __name__ == "__main__": + req = reqs.Req() + req.require('make') + req.require('gcc') + if not req.reqs_match(): + sys.exit(1) parser = argparse.ArgumentParser( description='compile against all kernels you have') parser.add_argument( -- 2.30.2