From 9d2e2cc4665e9cf112c86d085faf372fc157f2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 26 Apr 2015 13:48:52 +0200 Subject: Remove checking for existence of programs Programs should exist if scripts are executed by root Makefile. --- conf.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/conf.py b/conf.py index 7d4874b..e45e5a7 100644 --- a/conf.py +++ b/conf.py @@ -5,13 +5,6 @@ def pf(rfile): "Relative patch of file is decoded to absolute acording to working tree." return os.path.dirname(os.path.realpath(__file__)) + '/' + rfile -def checkXf(f, message): - "Check if file is executable. If not, raise MissingFile exception." - if os.path.isfile(f) and os.access(f, os.X_OK): - return f - else: - raise MissingFile(f, message) - # Global configs SRCARCH = 'x86' # Kernel architecture ARCH = SRCARCH @@ -40,8 +33,8 @@ buildroot_initram = pf('scripts/buildroot/output/images/rootfs.cpio.gz') initram = build_folder + '/initram.gz' # Programs paths -parse_kconfig = checkXf(pf('scripts/parse_kconfig/parse'), 'You must build programs first.') -write_config = checkXf(pf('scripts/write_config/write'), 'You must build programs first.') +parse_kconfig = pf('scripts/parse_kconfig/parse') +write_config = pf('scripts/write_config/write') # Programs output show/hide parse_kconfig_output = False -- cgit v1.2.3