]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Move directory creation from .py to Makefile
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 17 Oct 2015 13:44:31 +0000 (15:44 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 17 Oct 2015 13:44:31 +0000 (15:44 +0200)
It is much simpler there.

Makefile
scripts/initialize.py

index 8b3902b07333cbd59159df0ac5ef4ba78da6e421..70e1a7828ac17a766e402fdd81dd734afc35a7a5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,8 @@ test: scripts/parse_kconfig/parse .stamp/initram_cyclictest
 HELP+="run         - Executes loop of kernel building, booting and benchmark execution.\n"
 .PHONY: run
 run: all
+       mkdir -p $(CONF_BUILD_FOLDER)
+       mkdir -p $(CONF_LOG_FOLDER)
        scripts/loop.py
 
 .PHONY: evaluate
index 877aeba100c634d2bf3162acbe8f07fa1d47e4cf..1847a04174e136a66ef1e2c370dfc26ba2e23743 100755 (executable)
@@ -16,23 +16,11 @@ def all():
                utils.dirtycheck()
        except exceptions.DirtyRepository as e:
                print("Warning: " + str(e))
-       base()
        parse_kconfig()
        gen_fixed()
        checkmeasure()
        database.database() # check if database is initialized
 
-def base():
-       print('Initialize base...')
-       try:
-               os.mkdir(sf(conf.build_folder))
-       except FileExistsError:
-               pass
-       try:
-               os.mkdir(sf(conf.log_folder))
-       except FileExistsError:
-               pass
-
 def parse_kconfig():
        "Execute parse_kconfig in linux_sources directory."
        if os.path.isfile(sf(conf.symbol_map_file)) and \