aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-26 13:48:52 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-26 13:48:52 +0200
commit9d2e2cc4665e9cf112c86d085faf372fc157f2a4 (patch)
tree654ea836fe8e3940b362c982238078e305646537
parent37e294e9f0a826b201fc6f70b396d1933f10bd97 (diff)
downloadlinux-conf-perf-9d2e2cc4665e9cf112c86d085faf372fc157f2a4.tar.gz
linux-conf-perf-9d2e2cc4665e9cf112c86d085faf372fc157f2a4.tar.bz2
linux-conf-perf-9d2e2cc4665e9cf112c86d085faf372fc157f2a4.zip
Remove checking for existence of programs
Programs should exist if scripts are executed by root Makefile.
-rw-r--r--conf.py11
1 files 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