From: "Luis R. Rodriguez" <[email protected]>
Signed-off-by: Luis R. Rodriguez <[email protected]>
---
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 3e3d95e..0c238a6
--- 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(
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html