diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-26 13:48:52 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-26 13:48:52 +0200 |
commit | 9d2e2cc4665e9cf112c86d085faf372fc157f2a4 (patch) | |
tree | 654ea836fe8e3940b362c982238078e305646537 | |
parent | 37e294e9f0a826b201fc6f70b396d1933f10bd97 (diff) | |
download | linux-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.py | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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 |